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
fileimport.c File Reference
#include <gpac/tools.h>
#include <gpac/media_tools.h>
#include <gpac/constants.h>
#include <gpac/scenegraph.h>
#include <gpac/scene_manager.h>
#include <gpac/bifs.h>
#include <gpac/nodes_mpeg4.h>
#include <gpac/network.h>
#include <gpac/xml.h>
+ Include dependency graph for fileimport.c:

Data Structures

struct  WGTEnum
 
struct  TKInfo
 
struct  CATEnum
 

Functions

const char * GetLanguageCode (char *lang)
 
void scene_coding_log (void *cbk, u32 log_level, u32 log_tool, const char *fmt, va_list vlist)
 
void convert_file_info (char *inName, u32 trackID)
 
static void set_chapter_track (GF_ISOFile *file, u32 track, u32 chapter_ref_trak)
 
GF_Err import_file (GF_ISOFile *dest, char *inName, u32 import_flags, Double force_fps, u32 frames_per_sample)
 
GF_Err split_isomedia_file (GF_ISOFile *mp4, Double split_dur, u32 split_size_kb, char *inName, Double InterleavingTime, Double chunk_start_time, Bool adjust_split_end, char *outName, const char *tmpdir)
 
GF_Err cat_multiple_files (GF_ISOFile *dest, char *fileName, u32 import_flags, Double force_fps, u32 frames_per_sample, char *tmp_dir, Bool force_cat, Bool align_timelines, Bool allow_add_in_command)
 
static Bool merge_parameter_set (GF_List *src, GF_List *dst, const char *name)
 
static u32 merge_avc_config (GF_ISOFile *dest, u32 tk_id, GF_ISOFile *orig, u32 src_track, Bool force_cat)
 
static u32 merge_hevc_config (GF_ISOFile *dest, u32 tk_id, GF_ISOFile *orig, u32 src_track, Bool force_cat)
 
GF_Err cat_isomedia_file (GF_ISOFile *dest, char *fileName, u32 import_flags, Double force_fps, u32 frames_per_sample, char *tmp_dir, Bool force_cat, Bool align_timelines, Bool allow_add_in_command)
 
Bool cat_enumerate (void *cbk, char *szName, char *szPath)
 
GF_Err EncodeFile (char *in, GF_ISOFile *mp4, GF_SMEncodeOptions *opts, FILE *logs)
 
static u32 GetNbBits (u32 MaxVal)
 
GF_Err EncodeBIFSChunk (GF_SceneManager *ctx, char *bifsOutputFile, GF_Err(*AUCallback)(GF_ISOSample *))
 
GF_Err EncodeFileChunk (char *chunkFile, char *bifs, char *inputContext, char *outputContext, const char *tmpdir)
 
void sax_node_start (void *sax_cbck, const char *node_name, const char *name_space, const GF_XMLAttribute *attributes, u32 nb_attributes)
 
static Bool wgt_enum_files (void *cbck, char *file_name, char *file_path)
 
static Bool wgt_enum_dir (void *cbck, char *file_name, char *file_path)
 
GF_ISOFile * package_file (char *file_name, char *fcc, const char *tmpdir, Bool make_wgt)
 

Variables

u32 swf_flags
 
Float swf_flatten_angle
 
Bool keep_sys_tracks
 

Data Structure Documentation

struct WGTEnum
+ Collaboration diagram for WGTEnum:
Data Fields
const char * root_file
const char * dir
GF_List * imports
struct TKInfo
+ Collaboration diagram for TKInfo:
Data Fields
u32 tk
Bool has_non_raps
u32 last_sample
u32 sample_count
u32 time_scale
u64 firstDTS
u64 lastDTS
u32 dst_tk
Bool can_duplicate
Bool first_sample_done
Bool next_sample_is_rap
u32 stop_state
struct CATEnum
+ Collaboration diagram for CATEnum:
Data Fields
char szPath[1023]
char szRad1[1024]
char szRad2[1024]
char szOpt[200]
GF_ISOFile * dest
u32 import_flags
Double force_fps
u32 frames_per_sample
char * tmp_dir
Bool force_cat
Bool align_timelines
Bool allow_add_in_command

Function Documentation

const char* GetLanguageCode ( char *  lang)
void scene_coding_log ( void *  cbk,
u32  log_level,
u32  log_tool,
const char *  fmt,
va_list  vlist 
)
void convert_file_info ( char *  inName,
u32  trackID 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void set_chapter_track ( GF_ISOFile *  file,
u32  track,
u32  chapter_ref_trak 
)
static

+ Here is the call graph for this function:

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

GF_Err split_isomedia_file ( GF_ISOFile *  mp4,
Double  split_dur,
u32  split_size_kb,
char *  inName,
Double  InterleavingTime,
Double  chunk_start_time,
Bool  adjust_split_end,
char *  outName,
const char *  tmpdir 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Err cat_multiple_files ( GF_ISOFile *  dest,
char *  fileName,
u32  import_flags,
Double  force_fps,
u32  frames_per_sample,
char *  tmp_dir,
Bool  force_cat,
Bool  align_timelines,
Bool  allow_add_in_command 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static Bool merge_parameter_set ( GF_List *  src,
GF_List *  dst,
const char *  name 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static u32 merge_avc_config ( GF_ISOFile *  dest,
u32  tk_id,
GF_ISOFile *  orig,
u32  src_track,
Bool  force_cat 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static u32 merge_hevc_config ( GF_ISOFile *  dest,
u32  tk_id,
GF_ISOFile *  orig,
u32  src_track,
Bool  force_cat 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Err cat_isomedia_file ( GF_ISOFile *  dest,
char *  fileName,
u32  import_flags,
Double  force_fps,
u32  frames_per_sample,
char *  tmp_dir,
Bool  force_cat,
Bool  align_timelines,
Bool  allow_add_in_command 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Bool cat_enumerate ( void *  cbk,
char *  szName,
char *  szPath 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Err EncodeFile ( char *  in,
GF_ISOFile *  mp4,
GF_SMEncodeOptions opts,
FILE *  logs 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static u32 GetNbBits ( u32  MaxVal)
static

+ Here is the caller graph for this function:

GF_Err EncodeBIFSChunk ( GF_SceneManager ctx,
char *  bifsOutputFile,
GF_Err(*)(GF_ISOSample *)  AUCallback 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Err EncodeFileChunk ( char *  chunkFile,
char *  bifs,
char *  inputContext,
char *  outputContext,
const char *  tmpdir 
)
Parameters
chunkFileBT chunk to be encoded
bifsoutput file name for the BIFS data
inputContextinitial BT upon which the chunk is based (shall not be NULL)
outputContext,:file name to dump the context after applying the new chunk to the input context can be NULL, without .bt
tmpdircan be NULL

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void sax_node_start ( void *  sax_cbck,
const char *  node_name,
const char *  name_space,
const GF_XMLAttribute attributes,
u32  nb_attributes 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static Bool wgt_enum_files ( void *  cbck,
char *  file_name,
char *  file_path 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static Bool wgt_enum_dir ( void *  cbck,
char *  file_name,
char *  file_path 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_ISOFile* package_file ( char *  file_name,
char *  fcc,
const char *  tmpdir,
Bool  make_wgt 
)

+ 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
Bool keep_sys_tracks