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
media_export.c File Reference
#include <gpac/internal/media_dev.h>
#include <gpac/mpegts.h>
#include <gpac/constants.h>
#include <gpac/internal/avilib.h>
#include <gpac/internal/ogg.h>
#include <gpac/internal/vobsub.h>
#include <zlib.h>
#include <gpac/base_coding.h>
#include <gpac/webvtt.h>
+ Include dependency graph for media_export.c:

Data Structures

struct  SAFInfo
 

Macros

#define CLIP(x)   (((x) >= 0) ? (((x) < 256) ? (x) : 255) : 0)
 
#define DUMP_AVCPARAM(_params)
 
#define DUMP_HEVCPARAM(_params)
 

Functions

GF_Err gf_media_export_nhml (GF_MediaExporter *dumper, Bool dims_doc)
 
static GF_Err gf_export_message (GF_MediaExporter *dumper, GF_Err e, char *format,...)
 
static GF_Err gf_dump_to_ogg (GF_MediaExporter *dumper, char *szName, u32 track)
 
GF_Err gf_export_hint (GF_MediaExporter *dumper)
 
static void write_jp2_file (GF_BitStream *bs, char *data, u32 data_size, char *dsi, u32 dsi_size)
 
GF_Err gf_media_export_samples (GF_MediaExporter *dumper)
 
static GF_Err gf_dump_to_vobsub (GF_MediaExporter *dumper, char *szName, u32 track, char *dsi, u32 dsiSize)
 
GF_Err gf_media_export_native (GF_MediaExporter *dumper)
 
static GF_Err gf_media_export_avi_track (GF_MediaExporter *dumper)
 
GF_Err gf_media_export_nhnt (GF_MediaExporter *dumper)
 
static GF_Err MP4T_CopyTrack (GF_MediaExporter *dumper, GF_ISOFile *infile, u32 inTrackNum, GF_ISOFile *outfile, Bool ResetDependancies, Bool AddToIOD)
 
GF_Err gf_media_export_isom (GF_MediaExporter *dumper)
 
GF_Err gf_media_export_avi (GF_MediaExporter *dumper)
 
GF_Err gf_media_export_webvtt_metadata (GF_MediaExporter *dumper)
 
GF_Err gf_media_export_six (GF_MediaExporter *dumper)
 
GF_Err gf_media_export_saf (GF_MediaExporter *dumper)
 
void m2ts_export_check (GF_M2TS_Demuxer *ts, u32 evt_type, void *par)
 
void m2ts_export_dump (GF_M2TS_Demuxer *ts, u32 evt_type, void *par)
 
GF_Err gf_media_export_ts_native (GF_MediaExporter *dumper)
 
GF_Err gf_media_export (GF_MediaExporter *dumper)
 

Variables

static const char * QCP_QCELP_GUID_1 = "\x41\x6D\x7F\x5E\x15\xB1\xD0\x11\xBA\x91\x00\x80\x5F\xB4\xB9\x7E"
 
static const char * QCP_EVRC_GUID = "\x8D\xD4\x89\xE6\x76\x90\xB5\x46\x91\xEF\x73\x6A\x51\x00\xCE\xB4"
 
static const char * QCP_SMV_GUID = "\x75\x2B\x7C\x8D\x97\xA7\x46\xED\x98\x5E\xD5\x3C\x8C\xC7\x5F\x84"
 

Data Structure Documentation

struct SAFInfo
+ Collaboration diagram for SAFInfo:
Data Fields
u32 track_num
u32 stream_id
u32 last_sample
u32 nb_samp

Macro Definition Documentation

#define CLIP (   x)    (((x) >= 0) ? (((x) < 256) ? (x) : 255) : 0)
#define DUMP_AVCPARAM (   _params)
Value:
count = gf_list_count(_params); \
for (i=0;i<count;i++) { \
GF_AVCConfigSlot *sl = (GF_AVCConfigSlot *)gf_list_get(_params, i); \
gf_bs_write_data(bs, sl->data, sl->size); \
} \
Definition: mpeg4_odf.h:855
void * gf_list_get(GF_List *ptr, u32 position)
gets item
Definition: list.c:645
void gf_bs_write_u32(GF_BitStream *bs, u32 value)
align integer writing
Definition: bitstream.c:526
u32 gf_list_count(const GF_List *ptr)
get count
Definition: list.c:638
u32 gf_bs_write_data(GF_BitStream *bs, const char *data, u32 nbBytes)
data writing
Definition: bitstream.c:625
#define DUMP_HEVCPARAM (   _params)
Value:
count = gf_list_count(_params->param_array); \
for (i=0;i<count;i++) { \
u32 j; \
GF_HEVCParamArray *ar = gf_list_get(_params->param_array, i); \
for (j=0; j<gf_list_count(ar->nalus); j++) { \
GF_AVCConfigSlot *sl = (GF_AVCConfigSlot *)gf_list_get(ar->nalus, j); \
gf_bs_write_data(bs, sl->data, sl->size); \
} \
} \
Definition: mpeg4_odf.h:855
void * gf_list_get(GF_List *ptr, u32 position)
gets item
Definition: list.c:645
void gf_bs_write_u32(GF_BitStream *bs, u32 value)
align integer writing
Definition: bitstream.c:526
u32 gf_list_count(const GF_List *ptr)
get count
Definition: list.c:638
uint32_t u32
Definition: setup.h:246
u32 gf_bs_write_data(GF_BitStream *bs, const char *data, u32 nbBytes)
data writing
Definition: bitstream.c:625

Function Documentation

GF_Err gf_media_export_nhml ( GF_MediaExporter dumper,
Bool  dims_doc 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static GF_Err gf_export_message ( GF_MediaExporter dumper,
GF_Err  e,
char *  format,
  ... 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static GF_Err gf_dump_to_ogg ( GF_MediaExporter dumper,
char *  szName,
u32  track 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Err gf_export_hint ( GF_MediaExporter dumper)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void write_jp2_file ( GF_BitStream *  bs,
char *  data,
u32  data_size,
char *  dsi,
u32  dsi_size 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Err gf_media_export_samples ( GF_MediaExporter dumper)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static GF_Err gf_dump_to_vobsub ( GF_MediaExporter dumper,
char *  szName,
u32  track,
char *  dsi,
u32  dsiSize 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Err gf_media_export_native ( GF_MediaExporter dumper)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static GF_Err gf_media_export_avi_track ( GF_MediaExporter dumper)
static

! not tested

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Err gf_media_export_nhnt ( GF_MediaExporter dumper)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static GF_Err MP4T_CopyTrack ( GF_MediaExporter dumper,
GF_ISOFile *  infile,
u32  inTrackNum,
GF_ISOFile *  outfile,
Bool  ResetDependancies,
Bool  AddToIOD 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Err gf_media_export_isom ( GF_MediaExporter dumper)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Err gf_media_export_avi ( GF_MediaExporter dumper)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Err gf_media_export_webvtt_metadata ( GF_MediaExporter dumper)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Err gf_media_export_six ( GF_MediaExporter dumper)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Err gf_media_export_saf ( GF_MediaExporter dumper)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void m2ts_export_check ( GF_M2TS_Demuxer *  ts,
u32  evt_type,
void *  par 
)

+ Here is the caller graph for this function:

void m2ts_export_dump ( GF_M2TS_Demuxer *  ts,
u32  evt_type,
void *  par 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Err gf_media_export_ts_native ( GF_MediaExporter dumper)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Err gf_media_export ( GF_MediaExporter dumper)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

const char* QCP_QCELP_GUID_1 = "\x41\x6D\x7F\x5E\x15\xB1\xD0\x11\xBA\x91\x00\x80\x5F\xB4\xB9\x7E"
static
const char* QCP_EVRC_GUID = "\x8D\xD4\x89\xE6\x76\x90\xB5\x46\x91\xEF\x73\x6A\x51\x00\xCE\xB4"
static
const char* QCP_SMV_GUID = "\x75\x2B\x7C\x8D\x97\xA7\x46\xED\x98\x5E\xD5\x3C\x8C\xC7\x5F\x84"
static