libgpac
Documentation of the core library of GPAC
filedump.c File Reference
#include "mp4box.h"
#include <gpac/nodes_x3d.h>
#include <gpac/internal/bifs_dev.h>
#include <gpac/nodes_mpeg4.h>
#include <gpac/constants.h>
#include <gpac/avparse.h>
#include <gpac/internal/media_dev.h>
#include <gpac/iso639.h>
#include <gpac/mpegts.h>
#include <gpac/scene_manager.h>
#include <gpac/media_tools.h>
#include <gpac/internal/isomedia_dev.h>
#include <gpac/download.h>
#include <gpac/mpd.h>
+ Include dependency graph for filedump.c:

Data Structures

struct  ChunkInfo
 
struct  GF_M2TS_Dump
 

Macros

#define DUMP_ARRAY(arr, name, loc, _is_svc)
 

Functions

GF_FileType get_file_type_by_ext (char *inName)
 
void scene_coding_log (void *cbk, GF_LOG_Level log_level, GF_LOG_Tool log_tool, const char *fmt, va_list vlist)
 
u32 PrintLanguages (char *val, u32 opt)
 
static const char * GetLanguage (char *lcode)
 
GF_Err dump_isom_cover_art (GF_ISOFile *file, char *inName, Bool is_final_name)
 
GF_Err dump_isom_scene (char *file, char *inName, Bool is_final_name, GF_SceneDumpFormat dump_mode, Bool do_log, Bool no_odf_conv)
 
static void dump_stats (FILE *dump, const GF_SceneStatistics *stats)
 
static void ReorderAU (GF_List *sample_list, GF_AUContext *au)
 
void dump_isom_scene_stats (char *file, char *inName, Bool is_final_name, u32 stat_level)
 
static void PrintFixed (Fixed val, Bool add_space)
 
static void PrintNodeSFField (u32 type, void *far_ptr)
 
static void do_print_node (GF_Node *node, GF_SceneGraph *sg, const char *name, u32 graph_type, Bool is_nodefield, Bool do_cov)
 
u32 PrintNode (const char *name, u32 graph_type)
 
u32 PrintBuiltInNodes (char *arg_val, u32 dump_type)
 
u32 PrintBuiltInBoxes (char *argval, u32 do_cov)
 
void dump_isom_rtp (GF_ISOFile *file, char *inName, Bool is_final_name)
 
void dump_isom_timestamps (GF_ISOFile *file, char *inName, Bool is_final_name, u32 dump_mode)
 
static u32 read_nal_size_hdr (u8 *ptr, u32 nalh_size)
 
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_Err dump_isom_nal_ex (GF_ISOFile *file, GF_ISOTrackID trackID, FILE *dump, u32 dump_flags)
 
static GF_Err dump_isom_obu (GF_ISOFile *file, GF_ISOTrackID trackID, FILE *dump, Bool dump_crc)
 
static GF_Err dump_qt_prores (GF_ISOFile *file, GF_ISOTrackID trackID, FILE *dump, Bool dump_crc)
 
static GF_Err dump_isom_opus (GF_ISOFile *file, GF_ISOTrackID trackID, FILE *dump, Bool dump_crc)
 
GF_Err dump_isom_nal (GF_ISOFile *file, GF_ISOTrackID trackID, char *inName, Bool is_final_name, u32 dump_flags)
 
void gf_inspect_dump_opus (FILE *dump, u8 *ptr, u64 size, u32 channel_count, Bool dump_crc)
 
void gf_inspect_dump_obu (FILE *dump, AV1State *av1, u8 *obu, u64 obu_length, ObuType obu_type, u64 obu_size, u32 hdr_size, Bool dump_crc)
 
void dump_isom_saps (GF_ISOFile *file, GF_ISOTrackID trackID, u32 dump_saps_mode, char *inName, Bool is_final_name)
 
static s32 sort_chunk (const void *e1, const void *e2)
 
void dump_isom_chunks (GF_ISOFile *file, char *inName, Bool is_final_name)
 
void dump_isom_ismacryp (GF_ISOFile *file, char *inName, Bool is_final_name)
 
void dump_isom_timed_text (GF_ISOFile *file, GF_ISOTrackID trackID, char *inName, Bool is_final_name, Bool is_convert, GF_TextDumpType dump_type)
 
void dump_isom_sdp (GF_ISOFile *file, char *inName, Bool is_final_name)
 
GF_Err dump_isom_xml (GF_ISOFile *file, char *inName, Bool is_final_name, Bool do_track_dump, Bool merge_vtt_cues, const char *init_seg, Bool skip_samples)
 
static const char * format_duration (u64 dur, u32 timescale, char *szDur)
 
static char * format_date (u64 time, char *szTime)
 
void print_udta (GF_ISOFile *file, u32 track_number, Bool has_meta_tags)
 
GF_Err dump_isom_udta (GF_ISOFile *file, char *inName, Bool is_final_name, u32 dump_udta_type, u32 dump_udta_track)
 
GF_Err dump_isom_chapters (GF_ISOFile *file, char *inName, Bool is_final_name, u32 dump_mode)
 
static void dump_key_info (const u8 *key_info, u32 key_info_size, Bool is_protected)
 
static void DumpMetaItem (GF_ISOFile *file, Bool root_meta, u32 tk_num, char *name)
 
static void print_config_hash (GF_List *xps_array, char *szName)
 
void dump_hevc_track_info (GF_ISOFile *file, u32 trackNum, GF_HEVCConfig *hevccfg, HEVCState *hevc_state)
 
void dump_vvc_track_info (GF_ISOFile *file, u32 trackNum, GF_VVCConfig *vvccfg, VVCState *vvc_state)
 
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 DumpStsdInfo (GF_ISOFile *file, u32 trackNum, Bool full_dump, Bool dump_m4sys, u32 mtype, u32 stsd_idx, Bool *is_od_track)
 
void DumpTrackInfo (GF_ISOFile *file, GF_ISOTrackID trackID, Bool full_dump, Bool is_track_num, Bool dump_m4sys)
 
void DumpMovieInfo (GF_ISOFile *file, Bool full_dump)
 
static void on_m2ts_dump_event (GF_M2TS_Demuxer *ts, u32 evt_type, void *par)
 
void dump_mpeg2_ts (char *mpeg2ts_file, char *out_name, Bool prog_num)
 
void get_file_callback (void *usr_cbk, GF_NETIO_Parameter *parameter)
 
static GF_DownloadSession * get_file (const char *url, GF_DownloadManager *dm, GF_Err *e)
 
static void revert_cache_file (char *item_path)
 
GF_Err rip_mpd (const char *mpd_src, const char *output_dir)
 

Variables

u32 swf_flags
 
Double swf_flatten_angle
 
u32 fs_dump_flags
 
Bool dump_check_xml
 

Data Structure Documentation

◆ ChunkInfo

struct ChunkInfo
Data Fields
u32 track_num
u32 chunk_num
u32 first_sample_num
u32 timescale
u32 sample_per_chunk
u64 chunk_offset
u64 size

◆ GF_M2TS_Dump

struct GF_M2TS_Dump
Data Fields
FILE * pes_out
char dump[100]
Bool is_info_dumped
u32 prog_number
FILE * timestamps_info_file
char timestamps_info_name[100]
u32 dump_pid
Bool has_seen_pat

Macro Definition Documentation

◆ DUMP_ARRAY

#define DUMP_ARRAY (   arr,
  name,
  loc,
  _is_svc 
)
Value:
if (arr) {\
fprintf(dump, " <%sArray location=\"%s\">\n", name, loc);\
for (i=0; i<gf_list_count(arr); i++) {\
slc = gf_list_get(arr, i);\
fprintf(dump, " <NALU size=\"%d\" ", slc->size);\
gf_inspect_dump_nalu(dump, (u8 *) slc->data, slc->size, _is_svc, is_hevc ? hevc_state : NULL, avc_state, is_vvc ? vvc_state : NULL, nalh_size, (dump_flags&1) ? GF_TRUE : GF_FALSE, GF_FALSE);\
}\
fprintf(dump, " </%sArray>\n", name);\
}\
void * gf_list_get(GF_List *ptr, u32 position)
gets item
Definition: list.c:668
u32 gf_list_count(const GF_List *ptr)
get count
Definition: list.c:661
uint8_t u8
Definition: setup.h:334
@ GF_TRUE
Definition: setup.h:474
@ GF_FALSE
Definition: setup.h:473

Function Documentation

◆ get_file_type_by_ext()

GF_FileType get_file_type_by_ext ( char *  inName)

defined(GPAC_DISABLE_ISOM_WRITE) && !defined(GPAC_DISABLE_AV_PARSERS)

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ scene_coding_log()

void scene_coding_log ( void *  cbk,
GF_LOG_Level  log_level,
GF_LOG_Tool  log_tool,
const char *  fmt,
va_list  vlist 
)
+ Here is the caller graph for this function:

◆ PrintLanguages()

u32 PrintLanguages ( char *  val,
u32  opt 
)
+ Here is the call graph for this function:

◆ GetLanguage()

static const char* GetLanguage ( char *  lcode)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ dump_isom_cover_art()

GF_Err dump_isom_cover_art ( GF_ISOFile *  file,
char *  inName,
Bool  is_final_name 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ dump_isom_scene()

GF_Err dump_isom_scene ( char *  file,
char *  inName,
Bool  is_final_name,
GF_SceneDumpFormat  dump_mode,
Bool  do_log,
Bool  no_odf_conv 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ dump_stats()

static void dump_stats ( FILE *  dump,
const GF_SceneStatistics stats 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ReorderAU()

static void ReorderAU ( GF_List *  sample_list,
GF_AUContext au 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ dump_isom_scene_stats()

void dump_isom_scene_stats ( char *  file,
char *  inName,
Bool  is_final_name,
u32  stat_level 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ PrintFixed()

static void PrintFixed ( Fixed  val,
Bool  add_space 
)
static
+ Here is the caller graph for this function:

◆ PrintNodeSFField()

static void PrintNodeSFField ( u32  type,
void *  far_ptr 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ do_print_node()

static void do_print_node ( GF_Node node,
GF_SceneGraph *  sg,
const char *  name,
u32  graph_type,
Bool  is_nodefield,
Bool  do_cov 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ PrintNode()

u32 PrintNode ( const char *  name,
u32  graph_type 
)
+ Here is the call graph for this function:

◆ PrintBuiltInNodes()

u32 PrintBuiltInNodes ( char *  arg_val,
u32  dump_type 
)
+ Here is the call graph for this function:

◆ PrintBuiltInBoxes()

u32 PrintBuiltInBoxes ( char *  argval,
u32  do_cov 
)
+ Here is the call graph for this function:

◆ dump_isom_rtp()

void dump_isom_rtp ( GF_ISOFile *  file,
char *  inName,
Bool  is_final_name 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ dump_isom_timestamps()

void dump_isom_timestamps ( GF_ISOFile *  file,
char *  inName,
Bool  is_final_name,
u32  dump_mode 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ read_nal_size_hdr()

static u32 read_nal_size_hdr ( u8 ptr,
u32  nalh_size 
)
static
+ Here is the caller graph for this function:

◆ gf_inspect_dump_nalu()

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 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ dump_isom_nal_ex()

static GF_Err dump_isom_nal_ex ( GF_ISOFile *  file,
GF_ISOTrackID  trackID,
FILE *  dump,
u32  dump_flags 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ dump_isom_obu()

static GF_Err dump_isom_obu ( GF_ISOFile *  file,
GF_ISOTrackID  trackID,
FILE *  dump,
Bool  dump_crc 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ dump_qt_prores()

static GF_Err dump_qt_prores ( GF_ISOFile *  file,
GF_ISOTrackID  trackID,
FILE *  dump,
Bool  dump_crc 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ dump_isom_opus()

static GF_Err dump_isom_opus ( GF_ISOFile *  file,
GF_ISOTrackID  trackID,
FILE *  dump,
Bool  dump_crc 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ dump_isom_nal()

GF_Err dump_isom_nal ( GF_ISOFile *  file,
GF_ISOTrackID  trackID,
char *  inName,
Bool  is_final_name,
u32  dump_flags 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_inspect_dump_opus()

void gf_inspect_dump_opus ( FILE *  dump,
u8 ptr,
u64  size,
u32  channel_count,
Bool  dump_crc 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_inspect_dump_obu()

void gf_inspect_dump_obu ( FILE *  dump,
AV1State av1,
u8 obu,
u64  obu_length,
ObuType  obu_type,
u64  obu_size,
u32  hdr_size,
Bool  dump_crc 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ dump_isom_saps()

void dump_isom_saps ( GF_ISOFile *  file,
GF_ISOTrackID  trackID,
u32  dump_saps_mode,
char *  inName,
Bool  is_final_name 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ sort_chunk()

static s32 sort_chunk ( const void *  e1,
const void *  e2 
)
static
+ Here is the caller graph for this function:

◆ dump_isom_chunks()

void dump_isom_chunks ( GF_ISOFile *  file,
char *  inName,
Bool  is_final_name 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ dump_isom_ismacryp()

void dump_isom_ismacryp ( GF_ISOFile *  file,
char *  inName,
Bool  is_final_name 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ dump_isom_timed_text()

void dump_isom_timed_text ( GF_ISOFile *  file,
GF_ISOTrackID  trackID,
char *  inName,
Bool  is_final_name,
Bool  is_convert,
GF_TextDumpType  dump_type 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ dump_isom_sdp()

void dump_isom_sdp ( GF_ISOFile *  file,
char *  inName,
Bool  is_final_name 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ dump_isom_xml()

GF_Err dump_isom_xml ( GF_ISOFile *  file,
char *  inName,
Bool  is_final_name,
Bool  do_track_dump,
Bool  merge_vtt_cues,
const char *  init_seg,
Bool  skip_samples 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ format_duration()

static const char* format_duration ( u64  dur,
u32  timescale,
char *  szDur 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ format_date()

static char* format_date ( u64  time,
char *  szTime 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ print_udta()

void print_udta ( GF_ISOFile *  file,
u32  track_number,
Bool  has_meta_tags 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ dump_isom_udta()

GF_Err dump_isom_udta ( GF_ISOFile *  file,
char *  inName,
Bool  is_final_name,
u32  dump_udta_type,
u32  dump_udta_track 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ dump_isom_chapters()

GF_Err dump_isom_chapters ( GF_ISOFile *  file,
char *  inName,
Bool  is_final_name,
u32  dump_mode 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ dump_key_info()

static void dump_key_info ( const u8 key_info,
u32  key_info_size,
Bool  is_protected 
)
static
+ Here is the caller graph for this function:

◆ DumpMetaItem()

static void DumpMetaItem ( GF_ISOFile *  file,
Bool  root_meta,
u32  tk_num,
char *  name 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ print_config_hash()

static void print_config_hash ( GF_List *  xps_array,
char *  szName 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ dump_hevc_track_info()

void dump_hevc_track_info ( GF_ISOFile *  file,
u32  trackNum,
GF_HEVCConfig hevccfg,
HEVCState hevc_state 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ dump_vvc_track_info()

void dump_vvc_track_info ( GF_ISOFile *  file,
u32  trackNum,
GF_VVCConfig vvccfg,
VVCState vvc_state 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_inspect_format_timecode()

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] 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ DumpStsdInfo()

static void DumpStsdInfo ( GF_ISOFile *  file,
u32  trackNum,
Bool  full_dump,
Bool  dump_m4sys,
u32  mtype,
u32  stsd_idx,
Bool is_od_track 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ DumpTrackInfo()

void DumpTrackInfo ( GF_ISOFile *  file,
GF_ISOTrackID  trackID,
Bool  full_dump,
Bool  is_track_num,
Bool  dump_m4sys 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ DumpMovieInfo()

void DumpMovieInfo ( GF_ISOFile *  file,
Bool  full_dump 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ on_m2ts_dump_event()

static void on_m2ts_dump_event ( GF_M2TS_Demuxer ts,
u32  evt_type,
void *  par 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ dump_mpeg2_ts()

void dump_mpeg2_ts ( char *  mpeg2ts_file,
char *  out_name,
Bool  prog_num 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ get_file_callback()

void get_file_callback ( void *  usr_cbk,
GF_NETIO_Parameter *  parameter 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ get_file()

static GF_DownloadSession* get_file ( const char *  url,
GF_DownloadManager *  dm,
GF_Err e 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ revert_cache_file()

static void revert_cache_file ( char *  item_path)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ rip_mpd()

GF_Err rip_mpd ( const char *  mpd_src,
const char *  output_dir 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ swf_flags

u32 swf_flags
extern

◆ swf_flatten_angle

Double swf_flatten_angle
extern

◆ fs_dump_flags

u32 fs_dump_flags
extern

◆ dump_check_xml

Bool dump_check_xml
extern