libgpac
Documentation of the core library of GPAC
write_nhnt.c File Reference
+ Include dependency graph for write_nhnt.c:

Data Structures

struct  GF_NHNTDumpCtx
 

Macros

#define OFFS(_n)   #_n, offsetof(GF_NHNTDumpCtx, _n)
 

Functions

GF_Err nhntdump_config_side_streams (GF_Filter *filter, GF_NHNTDumpCtx *ctx)
 
GF_Err nhntdump_configure_pid (GF_Filter *filter, GF_FilterPid *pid, Bool is_remove)
 
GF_Err nhntdump_process (GF_Filter *filter)
 
static void nhntdump_finalize (GF_Filter *filter)
 
const GF_FilterRegister * nhntw_register (GF_FilterSession *session)
 

Variables

static const GF_FilterCapability NHNTDumpCaps []
 
static const GF_FilterArgs NHNTDumpArgs []
 
GF_FilterRegister NHNTDumpRegister
 

Data Structure Documentation

◆ GF_NHNTDumpCtx

struct GF_NHNTDumpCtx
+ Collaboration diagram for GF_NHNTDumpCtx:
Data Fields
Bool exporter
Bool large
GF_FilterPid * ipid
GF_FilterPid * opid_nhnt
GF_FilterPid * opid_mdia
GF_FilterPid * opid_info
u32 codecid
u32 streamtype
u32 oti
const char * dcfg
u32 dcfg_size
GF_Fraction64 duration
Bool first
GF_BitStream * bs
u64 mdia_pos
Bool configure_side_streams

Macro Definition Documentation

◆ OFFS

#define OFFS (   _n)    #_n, offsetof(GF_NHNTDumpCtx, _n)

Function Documentation

◆ nhntdump_config_side_streams()

GF_Err nhntdump_config_side_streams ( GF_Filter *  filter,
GF_NHNTDumpCtx ctx 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ nhntdump_configure_pid()

GF_Err nhntdump_configure_pid ( GF_Filter *  filter,
GF_FilterPid *  pid,
Bool  is_remove 
)
+ Here is the call graph for this function:

◆ nhntdump_process()

GF_Err nhntdump_process ( GF_Filter *  filter)
+ Here is the call graph for this function:

◆ nhntdump_finalize()

static void nhntdump_finalize ( GF_Filter *  filter)
static
+ Here is the call graph for this function:

◆ nhntw_register()

const GF_FilterRegister* nhntw_register ( GF_FilterSession *  session)

Variable Documentation

◆ NHNTDumpCaps

const GF_FilterCapability NHNTDumpCaps[]
static
Initial value:
=
{
CAP_STRING(GF_CAPS_OUTPUT, GF_PROP_PID_MIME, "application/x-nhnt"),
}
@ GF_CODECID_NONE
Definition: constants.h:383
@ GF_STREAM_FILE
Definition: constants.h:104
#define GF_CAPS_OUTPUT
Definition: filters.h:2232
#define CAP_UINT(_f, _a, _b)
Definition: filters.h:2172
#define CAP_STRING(_f, _a, _b)
Definition: filters.h:2194
#define GF_CAPS_INPUT_EXCLUDED
Definition: filters.h:2228
#define CAP_BOOL(_f, _a, _b)
Definition: filters.h:2180
@ GF_PROP_PID_CODECID
Definition: filters.h:1116
@ GF_PROP_PID_STREAM_TYPE
Definition: filters.h:1112
@ GF_PROP_PID_UNFRAMED
Definition: filters.h:1118
@ GF_PROP_PID_FILE_EXT
Definition: filters.h:1190
@ GF_PROP_PID_MIME
Definition: filters.h:1189
@ GF_TRUE
Definition: setup.h:474

◆ NHNTDumpArgs

const GF_FilterArgs NHNTDumpArgs[]
static
Initial value:
=
{
{ OFFS(exporter), "compatibility with old exporter, displays export results", GF_PROP_BOOL, "false", NULL, GF_FS_ARG_HINT_ADVANCED},
{ OFFS(large), "use large file mode", GF_PROP_BOOL, "false", NULL, 0},
{0}
}
@ GF_FS_ARG_HINT_ADVANCED
Definition: filters.h:2102
@ GF_PROP_BOOL
Definition: filters.h:858
#define OFFS(_n)
Definition: write_nhnt.c:384

◆ NHNTDumpRegister

GF_FilterRegister NHNTDumpRegister
Initial value:
= {
.name = "nhntw",
GF_FS_SET_HELP("This filter converts a single stream to an NHNT output file.\n"
"NHNT documentation is available at https://wiki.gpac.io/xmlformats/NHNT-Format\n")
.private_size = sizeof(GF_NHNTDumpCtx),
.finalize = nhntdump_finalize,
.configure_pid = nhntdump_configure_pid,
.process = nhntdump_process,
.hint_class_type = GF_FS_CLASS_TOOL
}
#define GF_FS_SET_HELP(_help)
Definition: filters.h:2372
#define SETCAPS(__struct)
Definition: filters.h:2364
@ GF_FS_CLASS_TOOL
Definition: filters.h:2455
attribute Array args
Definition: jsf.idl:24
static const GF_FilterArgs NHNTDumpArgs[]
Definition: write_nhnt.c:385
static const GF_FilterCapability NHNTDumpCaps[]
Definition: write_nhnt.c:374
static void nhntdump_finalize(GF_Filter *filter)
Definition: write_nhnt.c:368
GF_Err nhntdump_configure_pid(GF_Filter *filter, GF_FilterPid *pid, Bool is_remove)
Definition: write_nhnt.c:147
GF_Err nhntdump_process(GF_Filter *filter)
Definition: write_nhnt.c:238
Definition: write_nhnt.c:36