libgpac
Documentation of the core library of GPAC
|
#include <gpac/filters.h>
#include <gpac/constants.h>
#include <gpac/list.h>
#include <gpac/xml.h>
#include <gpac/internal/media_dev.h>
#include <gpac/internal/isomedia_dev.h>
Data Structures | |
struct | PidCtx |
struct | GF_InspectCtx |
struct | tag_to_name |
struct | InspectLogCbk |
Macros | |
#define | DUMP_ATT_STR(_name, _val) |
#define | DUMP_ATT_LLU(_name, _val) |
#define | DUMP_ATT_U(_name, _val) |
#define | DUMP_ATT_D(_name, _val) |
#define | DUMP_ATT_X(_name, _val) |
#define | DUMP_ATT_BOOL(_name, _val) |
#define | DUMP_ATT_FRAC(_name, _val) |
#define | DUMP_OBU_INT(_v) inspect_printf(dump, #_v"=\"%d\" ", av1->_v); |
#define | DUMP_OBU_INT2(_n, _v) inspect_printf(dump, _n"=\"%d\" ", _v); |
#define | get_and_print(name, bits) |
#define | DUMP_ARRAY(arr, name, loc, _is_svc) |
#define | get_and_print(name, bits) |
#define | OFFS(_n) #_n, offsetof(GF_InspectCtx, _n) |
Enumerations | |
enum | { INSPECT_MODE_PCK =0 , INSPECT_MODE_BLOCK , INSPECT_MODE_REFRAME , INSPECT_MODE_RAW } |
enum | { INSPECT_TEST_NO =0 , INSPECT_TEST_NOPROP , INSPECT_TEST_NETWORK , INSPECT_TEST_NETX , INSPECT_TEST_ENCODE , INSPECT_TEST_ENCX , INSPECT_TEST_NOCRC , INSPECT_TEST_NOBR } |
enum | { INSPECT_ANALYZE_OFF =0 , INSPECT_ANALYZE_ON , INSPECT_ANALYZE_BS , INSPECT_ANALYZE_BS_BITS } |
enum | { MHAS_FILLER = 0 , MHAS_CONFIG , MHAS_FRAME , MHAS_SCENE_INFO , MHAS_RES4 , MHAS_RES5 , MHAS_SYNC , MHAS_SYNC_GAP , MHAS_MARKER , MHAS_CRC16 , MHAS_CRC32 , MHAS_DESCRIPTOR , MHAS_INTERACTION , MHAS_LOUDNESS_CRC , MHAS_BUFFER_INFO , MHAS_GLOBAL_CRC16 , MHAS_GLOBAL_CRC32 , MHAS_AUDIO_TRUNCATION , MHAS_GEN_DATA } |
Functions | |
static void | format_duration (s64 dur, u64 timescale, FILE *dump, Bool skip_name) |
GF_Err | gf_bs_set_logger (GF_BitStream *bs, void(*on_bs_log)(void *udta, const char *field_name, u32 nb_bits, u64 field_val, s32 idx1, s32 idx2, s32 idx3), void *udta) |
static void | inspect_printf (FILE *dump, const char *fmt,...) |
static u32 | inspect_get_nal_size (char *ptr, u32 nalh_size) |
static const char * | get_sei_name (u32 sei_type) |
static const char * | get_hevc_nal_name (u32 nal_type) |
static const char * | get_vvc_nal_name (u32 nal_type) |
static const char * | get_avc_nal_name (u32 nal_type) |
static void | inspect_log_bs (Bool is_nalu, void *udta, const char *field_name, u32 nb_bits, u64 field_val, s32 idx1, s32 idx2, s32 idx3) |
static void | shifted_bs_log (void *udta, const char *field_name, u32 nb_bits, u64 field_val, s32 idx1, s32 idx2, s32 idx3) |
static void | regular_bs_log (void *udta, const char *field_name, u32 nb_bits, u64 field_val, s32 idx1, s32 idx2, s32 idx3) |
static void | dump_clli (FILE *dump, GF_BitStream *bs) |
static void | dump_mdcv (FILE *dump, GF_BitStream *bs, Bool isMPEG) |
static void | dump_t35 (FILE *dump, GF_BitStream *bs, u32 sei_size) |
static u32 | dump_udta_m2v (FILE *dump, u8 *data, u32 sei_size) |
static void | dump_time_code (FILE *dump, GF_BitStream *bs, int i) |
static void | dump_time_code_hevc (FILE *dump, GF_BitStream *bs) |
static u32 | gf_bs_inspect_int (GF_BitStream *bs, FILE *dump, char *name, int idx, int nbits) |
static void | dump_avc_pic_timing (FILE *dump, GF_BitStream *bs, AVCState *avc) |
static void | dump_sei (FILE *dump, GF_BitStream *bs, AVCState *avc, HEVCState *hevc, VVCState *vvc) |
static void | gf_inspect_dump_nalu_internal (FILE *dump, u8 *ptr, u32 ptr_size, Bool is_svc, HEVCState *hevc, AVCState *avc, VVCState *vvc, u32 nalh_size, Bool dump_crc, Bool is_encrypted, u32 full_bs_dump, PidCtx *pctx) |
static u32 | inspect_get_analyze_mode () |
GF_EXPORT void | gf_inspect_dump_nalu (FILE *dump, u8 *ptr, u32 ptr_size, Bool is_svc, HEVCState *hevc, AVCState *avc, VVCState *vvc, u32 nalh_size, Bool dump_crc, Bool is_encrypted) |
static void | av1_dump_tile (FILE *dump, u32 idx, AV1Tile *tile) |
static u64 | gf_inspect_dump_obu_internal (FILE *dump, AV1State *av1, u8 *obu_ptr, u64 obu_ptr_length, ObuType obu_type, u64 obu_size, u32 hdr_size, Bool dump_crc, PidCtx *pctx, u32 full_dump) |
GF_EXPORT void | gf_inspect_dump_obu (FILE *dump, AV1State *av1, u8 *obu_ptr, u64 obu_ptr_length, ObuType obu_type, u64 obu_size, u32 hdr_size, Bool dump_crc) |
static void | gf_inspect_dump_prores_internal (FILE *dump, u8 *ptr, u64 frame_size, Bool dump_crc, PidCtx *pctx) |
GF_EXPORT void | gf_inspect_dump_prores (FILE *dump, u8 *ptr, u64 frame_size, Bool dump_crc) |
static void | gf_inspect_dump_opus_internal (FILE *dump, u8 *ptr, u32 size, u32 channel_count, Bool dump_crc, PidCtx *pctx) |
GF_EXPORT void | gf_inspect_dump_opus (FILE *dump, u8 *ptr, u64 size, u32 channel_count, Bool dump_crc) |
static void | dump_mha_config (FILE *dump, GF_BitStream *bs, const char *indent) |
static void | gf_inspect_dump_mha_frame (FILE *dump, GF_BitStream *bs, const char *indent) |
static void | gf_inspect_dump_mhas (FILE *dump, u8 *ptr, u64 frame_size, Bool dump_crc, PidCtx *pctx) |
static void | finalize_dump (GF_InspectCtx *ctx, u32 streamtype, Bool concat) |
static void | inspect_dump_stats (GF_InspectCtx *ctx) |
static void | inspect_finalize (GF_Filter *filter) |
static void | dump_temi_loc (GF_InspectCtx *ctx, PidCtx *pctx, FILE *dump, const char *pname, const GF_PropertyValue *att) |
static void | dump_temi_time (GF_InspectCtx *ctx, PidCtx *pctx, FILE *dump, const char *pname, const GF_PropertyValue *att) |
static void | scte35_parse_splice_time (GF_InspectCtx *ctx, FILE *dump, GF_BitStream *bs) |
static void | scte35_parse_segmentation_descriptor (FILE *dump, GF_BitStream *bs) |
static Bool | scte35_parse_splice_descriptor (FILE *dump, GF_BitStream *bs) |
static void | scte35_dump (GF_InspectCtx *ctx, FILE *dump, GF_BitStream *bs) |
void | scte35_dump_xml (FILE *dump, GF_BitStream *bs) |
static void | dump_scte35_info_m2ts_section (GF_InspectCtx *ctx, PidCtx *pctx, FILE *dump, const char *pname, const GF_PropertyValue *att) |
static void | gf_inspect_dump_truehd_frame (FILE *dump, GF_BitStream *bs) |
static void | inspect_dump_property (GF_InspectCtx *ctx, FILE *dump, u32 p4cc, const char *pname, const GF_PropertyValue *att, PidCtx *pctx) |
static void | inspect_dump_packet_fmt (GF_Filter *filter, GF_InspectCtx *ctx, FILE *dump, GF_FilterPacket *pck, PidCtx *pctx, u64 pck_num) |
void | gf_m4v_parser_set_inspect (GF_M4VParser *m4v) |
u32 | gf_m4v_parser_get_obj_type (GF_M4VParser *m4v) |
static const char * | get_frame_type_name (u32 ftype) |
static void | inspect_dump_mpeg124 (PidCtx *pctx, char *data, u32 size, FILE *dump) |
static void | inspect_format_tmcd_internal (const u8 *data, u32 size, u32 tmcd_flags, u32 tc_num, u32 tc_den, u32 tmcd_fpt, char szFmt[100], GF_BitStream *bs, Bool force_ff, FILE *dump) |
GF_EXPORT void | gf_inspect_format_timecode (const u8 *data, u32 size, u32 tmcd_flags, u32 tc_num, u32 tc_den, u32 tmcd_fpt, char szFmt[100]) |
static void | inspect_dump_tmcd (GF_InspectCtx *ctx, PidCtx *pctx, const u8 *data, u32 size, FILE *dump) |
static void | inspect_dump_boxes (GF_InspectCtx *ctx, PidCtx *pctx, const u8 *data, u32 size, FILE *dump) |
static void | inspect_dump_vpx (GF_InspectCtx *ctx, FILE *dump, u8 *ptr, u64 frame_size, Bool dump_crc, PidCtx *pctx, u32 vpversion) |
static void | inspect_dump_ac3_eac3 (GF_InspectCtx *ctx, FILE *dump, u8 *ptr, u64 frame_size, Bool dump_crc, PidCtx *pctx, Bool is_ec3) |
static void | inspect_dump_packet_as_info (GF_InspectCtx *ctx, FILE *dump, GF_FilterPacket *pck, u32 pid_idx, u64 pck_num, PidCtx *pctx) |
static void | inspect_dump_packet (GF_InspectCtx *ctx, FILE *dump, GF_FilterPacket *pck, u32 pid_idx, u64 pck_num, PidCtx *pctx) |
static void | inspect_reset_parsers (PidCtx *pctx, void *keep_parser_address) |
static void | inspect_dump_pid_as_info (GF_InspectCtx *ctx, FILE *dump, GF_FilterPid *pid, u32 pid_idx, Bool is_connect, Bool is_remove, u64 pck_for_config, Bool is_info, PidCtx *pctx) |
static void | inspect_dump_pid (GF_InspectCtx *ctx, FILE *dump, GF_FilterPid *pid, u32 pid_idx, Bool is_connect, Bool is_remove, u64 pck_for_config, Bool is_info, PidCtx *pctx) |
static void | inspect_stats_packet (GF_InspectCtx *ctx, PidCtx *pctx, GF_FilterPacket *pck) |
static GF_Err | inspect_process (GF_Filter *filter) |
static GF_Err | inspect_config_input (GF_Filter *filter, GF_FilterPid *pid, Bool is_remove) |
static GF_Err | inspect_update_arg (GF_Filter *filter, const char *arg_name, const GF_PropertyValue *new_val) |
GF_Err | inspect_initialize (GF_Filter *filter) |
static Bool | inspect_process_event (GF_Filter *filter, const GF_FilterEvent *evt) |
const GF_FilterRegister * | inspect_register (GF_FilterSession *session) |
const GF_FilterRegister * | probe_register (GF_FilterSession *session) |
Variables | |
static u32 | inspect_log_tool = GF_LOG_APP |
static const tag_to_name | SEINames [] |
static const tag_to_name | HEVCNalNames [] |
static const tag_to_name | VVCNalNames [] |
static const tag_to_name | AVCNalNames [] |
struct { | |
u32 | type |
const char * | name |
} | mhas_pack_types [] |
static const GF_FilterCapability | InspecterDemuxedCaps [] |
static const GF_FilterCapability | InspecterReframeCaps [] |
static const GF_FilterCapability | InspecterRawCaps [] |
static const GF_FilterArgs | InspectArgs [] |
static const GF_FilterCapability | InspectCaps [] |
const GF_FilterRegister | InspectRegister |
static const GF_FilterCapability | ProberCaps [] |
static const GF_FilterArgs | ProbeArgs [] |
const GF_FilterRegister | ProbeRegister |
struct PidCtx |
Data Fields | ||
---|---|---|
GF_FilterPid * | src_pid | |
FILE * | tmp | |
u64 | pck_num | |
u32 | idx | |
u8 | dump_pid | |
u8 | init_pid_config_done | |
u64 | pck_for_config | |
u64 | prev_dts | |
u64 | prev_cts | |
u64 | init_ts | |
u32 | codec_id | |
u32 | stream_type | |
HEVCState * | hevc_state | |
AVCState * | avc_state | |
VVCState * | vvc_state | |
AV1State * | av1_state | |
GF_M4VParser * | mv124_state | |
GF_M4VDecSpecInfo | dsi | |
GF_VPConfig * | vpcc | |
GF_BitStream * | bs | |
Bool | has_svcc | |
u32 | nalu_size_length | |
Bool | is_adobe_protected | |
Bool | is_cenc_protected | |
Bool | aborted | |
GF_Fraction | tmcd_rate | |
u32 | tmcd_flags | |
u32 | tmcd_fpt | |
u32 | opus_channel_count | |
u32 | csize | |
Bool | buffer_done | |
Bool | no_analysis | |
u32 | buf_start_time | |
u64 | last_pcr | |
GF_FilterClockType | last_clock_type | |
char * | stat_codecs | |
GF_FilterSAPType | start_with_sap | |
u32 | timescale | |
u64 | total_dur | |
u64 | last_sap_cts | |
u32 | nb_sap1 | |
u32 | nb_sap2 | |
u32 | nb_sap3 | |
u32 | nb_sap4 | |
u32 | min_sap_diff | |
u32 | max_sap_diff | |
u32 | avg_sap_diff | |
u64 | nb_bytes | |
s64 | max_ctso | |
s64 | min_ctso | |
Bool | has_disc | |
Bool | has_corr | |
u8 | has_crypted | |
u32 | nb_recfg | |
u32 | max_sap_size | |
u32 | avg_sap_size | |
u32 | avg_nosap_size | |
u32 | nb_nosaps | |
u32 | constant_dur | |
u32 | max_dur | |
u64 | first_dts | |
u64 | first_cts | |
u32 | bytes_in_wnd | |
u32 | max_rate |
struct GF_InspectCtx |
Data Fields | ||
---|---|---|
u32 | mode | |
Bool | interleave | |
Bool | dump_data | |
Bool | deep | |
Bool | stats | |
char * | log | |
char * | fmt | |
u32 | analyze | |
Bool | props | |
Bool | hdr | |
Bool | allp | |
Bool | info | |
Bool | pcr | |
Bool | xml | |
Bool | full | |
Double | speed | |
Double | start | |
u32 | test | |
GF_Fraction | dur | |
Bool | crc | |
Bool | dtype | |
Bool | fftmcd | |
u32 | buffer | |
u32 | mbuffer | |
u32 | rbuffer | |
FILE * | dump | |
Bool | dump_log | |
GF_List * | src_pids | |
Bool | is_prober | |
Bool | probe_done | |
Bool | hdr_done | |
Bool | dump_pck | |
Bool | args_updated | |
Bool | has_seen_eos |
struct tag_to_name |
Data Fields | ||
---|---|---|
u32 | code | |
const char * | name |
struct InspectLogCbk |
Data Fields | ||
---|---|---|
FILE * | dump | |
Bool | dump_bits |
#define DUMP_ATT_STR | ( | _name, | |
_val | |||
) |
#define DUMP_ATT_LLU | ( | _name, | |
_val | |||
) |
#define DUMP_ATT_U | ( | _name, | |
_val | |||
) |
#define DUMP_ATT_D | ( | _name, | |
_val | |||
) |
#define DUMP_ATT_X | ( | _name, | |
_val | |||
) |
#define DUMP_ATT_BOOL | ( | _name, | |
_val | |||
) |
#define DUMP_ATT_FRAC | ( | _name, | |
_val | |||
) |
#define DUMP_OBU_INT | ( | _v | ) | inspect_printf(dump, #_v"=\"%d\" ", av1->_v); |
#define DUMP_OBU_INT2 | ( | _n, | |
_v | |||
) | inspect_printf(dump, _n"=\"%d\" ", _v); |
#define get_and_print | ( | name, | |
bits | |||
) |
#define DUMP_ARRAY | ( | arr, | |
name, | |||
loc, | |||
_is_svc | |||
) |
#define get_and_print | ( | name, | |
bits | |||
) |
#define OFFS | ( | _n | ) | #_n, offsetof(GF_InspectCtx, _n) |
anonymous enum |
anonymous enum |
anonymous enum |
GF_Err gf_bs_set_logger | ( | GF_BitStream * | bs, |
void(*)(void *udta, const char *field_name, u32 nb_bits, u64 field_val, s32 idx1, s32 idx2, s32 idx3) | on_bs_log, | ||
void * | udta | ||
) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
GF_EXPORT void gf_inspect_dump_nalu | ( | FILE * | dump, |
u8 * | ptr, | ||
u32 | ptr_size, | ||
Bool | is_svc, | ||
HEVCState * | hevc, | ||
AVCState * | avc, | ||
VVCState * | vvc, | ||
u32 | nalh_size, | ||
Bool | dump_crc, | ||
Bool | is_encrypted | ||
) |
|
static |
GF_EXPORT void gf_inspect_dump_obu | ( | FILE * | dump, |
AV1State * | av1, | ||
u8 * | obu_ptr, | ||
u64 | obu_ptr_length, | ||
ObuType | obu_type, | ||
u64 | obu_size, | ||
u32 | hdr_size, | ||
Bool | dump_crc | ||
) |
|
static |
|
static |
GF_EXPORT void gf_inspect_dump_opus | ( | FILE * | dump, |
u8 * | ptr, | ||
u64 | size, | ||
u32 | channel_count, | ||
Bool | dump_crc | ||
) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
void scte35_dump_xml | ( | FILE * | dump, |
GF_BitStream * | bs | ||
) |
|
static |
|
static |
|
static |
|
static |
void gf_m4v_parser_set_inspect | ( | GF_M4VParser * | m4v | ) |
u32 gf_m4v_parser_get_obj_type | ( | GF_M4VParser * | m4v | ) |
|
static |
|
static |
GF_EXPORT void gf_inspect_format_timecode | ( | const u8 * | data, |
u32 | size, | ||
u32 | tmcd_flags, | ||
u32 | tc_num, | ||
u32 | tc_den, | ||
u32 | tmcd_fpt, | ||
char | szFmt[100] | ||
) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
GF_Err inspect_initialize | ( | GF_Filter * | filter | ) |
|
static |
const GF_FilterRegister* inspect_register | ( | GF_FilterSession * | session | ) |
const GF_FilterRegister* probe_register | ( | GF_FilterSession * | session | ) |
|
static |
|
static |
|
static |
|
static |
|
static |
struct { ... } mhas_pack_types[] |
|
static |
|
static |
|
static |
|
static |
|
static |
const GF_FilterRegister InspectRegister |
|
static |
|
static |
const GF_FilterRegister ProbeRegister |