GPAC
Open Source Multimedia Framework. For more information, check out http://gpac.wp.mines-telecom.fr
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups
filedump.c File Reference
#include <gpac/tools.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/media_tools.h>
#include <time.h>
#include <gpac/iso639.h>
#include <gpac/mpegts.h>
#include <gpac/scene_manager.h>
#include <gpac/internal/media_dev.h>
+ Include dependency graph for filedump.c:

Data Structures

struct  GF_M2TS_Dump
 

Macros

#define DUMP_ARRAY(arr, name)
 

Functions

u32 get_file_type_by_ext (char *inName)
 
void scene_coding_log (void *cbk, u32 log_level, u32 log_tool, const char *fmt, va_list vlist)
 
GF_Err import_file (GF_ISOFile *dest, char *inName, u32 import_flags, Double force_fps, u32 frames_per_sample)
 
void PrintLanguages ()
 
static const char * GetLanguage (char *lcode)
 
const char * GetLanguageCode (char *lang)
 
GF_Err dump_cover_art (GF_ISOFile *file, char *inName)
 
GF_Err set_cover_art (GF_ISOFile *file, char *inName)
 
GF_Err dump_file_text (char *file, char *inName, u32 dump_mode, Bool do_log)
 
static void dump_stats (FILE *dump, GF_SceneStatistics *stats)
 
static void ReorderAU (GF_List *sample_list, GF_AUContext *au)
 
void dump_scene_stats (char *file, char *inName, u32 stat_level)
 
static void PrintFixed (Fixed val, Bool add_space)
 
static void PrintNodeSFField (u32 type, void *far_ptr)
 
void PrintNode (const char *name, u32 graph_type)
 
void PrintBuiltInNodes (u32 graph_type)
 
void dump_isom_xml (GF_ISOFile *file, char *inName)
 
void dump_file_rtp (GF_ISOFile *file, char *inName)
 
void dump_file_timestamps (GF_ISOFile *file, char *inName)
 
static void dump_nalu (FILE *dump, char *ptr, u32 ptr_size, Bool is_svc, Bool is_hevc, AVCState *avc)
 
void dump_file_nal (GF_ISOFile *file, u32 trackID, char *inName)
 
void dump_file_ismacryp (GF_ISOFile *file, char *inName)
 
void dump_timed_text_track (GF_ISOFile *file, u32 trackID, char *inName, Bool is_convert, u32 dump_type)
 
void DumpSDP (GF_ISOFile *file, char *inName)
 
static char * format_duration (u64 dur, u32 timescale, char *szDur)
 
static char * format_date (u64 time, char *szTime)
 
GF_Err dump_chapters (GF_ISOFile *file, char *inName, Bool dump_ogg)
 
static void DumpMetaItem (GF_ISOFile *file, Bool root_meta, u32 tk_num, char *name)
 
void dump_hevc_track_info (GF_ISOFile *file, u32 trackNum, GF_HEVCConfig *hevccfg)
 
void DumpTrackInfo (GF_ISOFile *file, u32 trackID, Bool full_dump)
 
static const char * id3_get_genre (u32 tag)
 
u32 id3_get_genre_tag (const char *name)
 
void DumpMovieInfo (GF_ISOFile *file)
 
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)
 

Variables

u32 swf_flags
 
Float swf_flatten_angle
 
static const char * ID3v1Genres []
 

Data Structure Documentation

struct GF_M2TS_Dump
+ Collaboration diagram for 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

#define DUMP_ARRAY (   arr,
  name 
)
Value:
if (arr) {\
for (i=0; i<gf_list_count(arr); i++) {\
slc = gf_list_get(arr, i);\
fprintf(dump, " <%s number=\"%d\" size=\"%d\" ", name, i+1, slc->size);\
dump_nalu(dump, slc->data, slc->size, svccfg ? 1 : 0, is_hevc, &avc);\
fprintf(dump, "/>\n");\
}\
}\
void * gf_list_get(GF_List *ptr, u32 position)
gets item
Definition: list.c:645
u32 gf_list_count(const GF_List *ptr)
get count
Definition: list.c:638
static void dump_nalu(FILE *dump, char *ptr, u32 ptr_size, Bool is_svc, Bool is_hevc, AVCState *avc)
Definition: filedump.c:878

Function Documentation

u32 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:

void scene_coding_log ( void *  cbk,
u32  log_level,
u32  log_tool,
const char *  fmt,
va_list  vlist 
)

+ Here is the caller graph for this function:

GF_Err import_file ( GF_ISOFile *  dest,
char *  inName,
u32  import_flags,
Double  force_fps,
u32  frames_per_sample 
)

+ Here is the caller graph for this function:

void PrintLanguages ( )

+ Here is the caller graph for this function:

static const char* GetLanguage ( char *  lcode)
static

+ Here is the caller graph for this function:

const char* GetLanguageCode ( char *  lang)

+ Here is the caller graph for this function:

GF_Err dump_cover_art ( GF_ISOFile *  file,
char *  inName 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Err set_cover_art ( GF_ISOFile *  file,
char *  inName 
)

+ Here is the call graph for this function:

GF_Err dump_file_text ( char *  file,
char *  inName,
u32  dump_mode,
Bool  do_log 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void dump_stats ( FILE *  dump,
GF_SceneStatistics stats 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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:

void dump_scene_stats ( char *  file,
char *  inName,
u32  stat_level 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void PrintFixed ( Fixed  val,
Bool  add_space 
)
static

+ Here is the caller graph for this function:

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:

void PrintNode ( const char *  name,
u32  graph_type 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void PrintBuiltInNodes ( u32  graph_type)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void dump_isom_xml ( GF_ISOFile *  file,
char *  inName 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void dump_file_rtp ( GF_ISOFile *  file,
char *  inName 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void dump_file_timestamps ( GF_ISOFile *  file,
char *  inName 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void dump_nalu ( FILE *  dump,
char *  ptr,
u32  ptr_size,
Bool  is_svc,
Bool  is_hevc,
AVCState avc 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void dump_file_nal ( GF_ISOFile *  file,
u32  trackID,
char *  inName 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void dump_file_ismacryp ( GF_ISOFile *  file,
char *  inName 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void dump_timed_text_track ( GF_ISOFile *  file,
u32  trackID,
char *  inName,
Bool  is_convert,
u32  dump_type 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void DumpSDP ( GF_ISOFile *  file,
char *  inName 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static char* format_duration ( u64  dur,
u32  timescale,
char *  szDur 
)
static

+ Here is the caller graph for this function:

static char* format_date ( u64  time,
char *  szTime 
)
static

+ Here is the caller graph for this function:

GF_Err dump_chapters ( GF_ISOFile *  file,
char *  inName,
Bool  dump_ogg 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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:

void dump_hevc_track_info ( GF_ISOFile *  file,
u32  trackNum,
GF_HEVCConfig hevccfg 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void DumpTrackInfo ( GF_ISOFile *  file,
u32  trackID,
Bool  full_dump 
)

+ Here is the caller graph for this function:

static const char* id3_get_genre ( u32  tag)
static

+ Here is the caller graph for this function:

u32 id3_get_genre_tag ( const char *  name)

+ Here is the caller graph for this function:

void DumpMovieInfo ( GF_ISOFile *  file)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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:

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:

Variable Documentation

u32 swf_flags
Float swf_flatten_angle
const char* ID3v1Genres[]
static
Initial value:
= {
"Blues", "Classic Rock", "Country", "Dance", "Disco",
"Funk", "Grunge", "Hip-Hop", "Jazz", "Metal",
"New Age", "Oldies", "Other", "Pop", "R&B",
"Rap", "Reggae", "Rock", "Techno", "Industrial",
"Alternative", "Ska", "Death Metal", "Pranks", "Soundtrack",
"Euro-Techno", "Ambient", "Trip-Hop", "Vocal", "Jazz+Funk",
"Fusion", "Trance", "Classical", "Instrumental", "Acid",
"House", "Game", "Sound Clip", "Gospel", "Noise",
"AlternRock", "Bass", "Soul", "Punk", "Space",
"Meditative", "Instrumental Pop", "Instrumental Rock", "Ethnic", "Gothic",
"Darkwave", "Techno-Industrial", "Electronic", "Pop-Folk", "Eurodance",
"Dream", "Southern Rock", "Comedy", "Cult", "Gangsta",
"Top 40", "Christian Rap", "Pop/Funk", "Jungle", "Native American",
"Cabaret", "New Wave", "Psychadelic", "Rave", "Showtunes",
"Trailer", "Lo-Fi", "Tribal", "Acid Punk", "Acid Jazz",
"Polka", "Retro", "Musical", "Rock & Roll", "Hard Rock",
"Folk", "Folk/Rock", "National Folk", "Swing",
}