libgpac
Documentation of the core library of GPAC
|
#include <gpac/filters.h>
#include <gpac/constants.h>
#include <gpac/crypt_tools.h>
#include <gpac/crypt.h>
#include <gpac/base_coding.h>
#include <gpac/download.h>
#include <gpac/xml.h>
#include <gpac/internal/isomedia_dev.h>
#include <gpac/internal/media_dev.h>
Data Structures | |
struct | CENC_MKey |
struct | OBURange |
struct | GF_CENCStream |
struct | GF_CENCEncCtx |
Macros | |
#define | OFFS(_n) #_n, offsetof(GF_CENCEncCtx, _n) |
Enumerations | |
enum | { ISMAEA_STATE_ERROR , ISMAEA_STATE_SETUP , ISMAEA_STATE_PLAY } |
enum | CENCCodecMode { CENC_FULL_SAMPLE =1 , CENC_AVC , CENC_HEVC , CENC_AV1 , CENC_VPX , CENC_VVC } |
Functions | |
static GF_Err | isma_enc_configure (GF_CENCEncCtx *ctx, GF_CENCStream *cstr, Bool is_isma, const char *scheme_uri, const char *kms_uri) |
static GF_Err | adobe_enc_configure (GF_CENCEncCtx *ctx, GF_CENCStream *cstr) |
static GF_Err | cenc_parse_pssh (GF_CENCEncCtx *ctx, GF_CENCStream *cstr, const char *cfile_name) |
static void | cenc_pid_reset_codec_states (GF_CENCStream *cstr) |
static GF_Err | cenc_enc_configure (GF_CENCEncCtx *ctx, GF_CENCStream *cstr, const char *cfile_name) |
static void | cenc_free_pid_context (GF_CENCStream *cstr) |
void | cenc_gen_bin128 (bin128 data) |
static GF_Err | cenc_enc_configure_pid (GF_Filter *filter, GF_FilterPid *pid, Bool is_remove) |
static GF_Err | isma_process (GF_CENCEncCtx *ctx, GF_CENCStream *cstr, GF_FilterPacket *pck) |
static GF_Err | adobe_process (GF_CENCEncCtx *ctx, GF_CENCStream *cstr, GF_FilterPacket *pck) |
static void | increase_counter (char *x, int x_size) |
static void | cenc_resync_IV (GF_Crypt *mc, char IV[16], u8 IV_size) |
static u32 | cenc_get_clear_bytes (GF_CENCStream *cstr, GF_BitStream *plaintext_bs, char *samp_data, u32 nal_size, u32 bytes_in_nalhr) |
static GF_Err | cenc_encrypt_packet (GF_CENCEncCtx *ctx, GF_CENCStream *cstr, GF_FilterPacket *pck) |
static GF_Err | cenc_process (GF_CENCEncCtx *ctx, GF_CENCStream *cstr, GF_FilterPacket *pck) |
static GF_Err | cenc_enc_process (GF_Filter *filter) |
static GF_Err | cenc_enc_initialize (GF_Filter *filter) |
static void | cenc_enc_finalize (GF_Filter *filter) |
const GF_FilterRegister * | cecrypt_register (GF_FilterSession *session) |
Variables | |
static const GF_FilterCapability | CENCEncCaps [] |
static const GF_FilterArgs | GF_CENCEncArgs [] |
GF_FilterRegister | CENCEncRegister |
struct GF_CENCStream |
Data Fields | ||
---|---|---|
Bool | passthrough | |
GF_CryptInfo * | cinfo | |
GF_FilterPid * | ipid | |
GF_FilterPid * | opid | |
GF_TrackCryptInfo * | tci | |
u32 | crypt_byte_block | |
u32 | skip_byte_block | |
u32 | nb_keys | |
CENC_MKey * | keys | |
Bool | multi_key | |
u32 | codec_id | |
u32 | nb_pck | |
u32 | nalu_size_length | |
u32 | dsi_crc | |
Bool | isma_oma | |
u64 | BSO | |
u64 | range_end | |
Bool | prev_pck_encrypted | |
u32 | KI_length | |
u32 | isma_IV_size | |
Bool | has_crypted_pck | |
Bool | is_adobe | |
CENCCodecMode | cenc_codec | |
u32 | bytes_in_nal_hdr | |
Bool | use_subsamples | |
Bool | cenc_init | |
u32 | nb_pck_encrypted | |
u32 | kidx | |
u32 | nb_saps | |
u32 | nb_segments | |
u32 | nb_periods | |
Bool | ctr_mode | |
Bool | is_saes | |
Bool | rap_roll | |
Bool | warned_clear | |
AVCState * | avc_state | |
HEVCState * | hevc_state | |
AV1State * | av1_state | |
OBURange * | av1_vpx_ranges | |
GF_VPConfig * | vp9_cfg | |
u32 * | vpx_frame_sizes | |
VVCState * | vvc_state | |
Bool | slice_header_clear | |
GF_PropUIntList | mkey_indices | |
u32 | pssh_template_plus_one | |
GF_List * | pssh_templates | |
u64 | num_block_crypted |
struct GF_CENCEncCtx |
Data Fields | ||
---|---|---|
const char * | cfile | |
Bool | allc | |
Bool | bk_stats | |
Bool | bk_skip | |
GF_CryptInfo * | cinfo | |
GF_List * | streams | |
GF_BitStream * | bs_w | |
GF_BitStream * | bs_r |
#define OFFS | ( | _n | ) | #_n, offsetof(GF_CENCEncCtx, _n) |
enum CENCCodecMode |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
void cenc_gen_bin128 | ( | bin128 | data | ) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
const GF_FilterRegister* cecrypt_register | ( | GF_FilterSession * | session | ) |
|
static |
|
static |
GF_FilterRegister CENCEncRegister |