libgpac
Documentation of the core library of GPAC
rewrite_mhas.c File Reference
#include <gpac/filters.h>
#include <gpac/constants.h>
#include <gpac/bitstream.h>
#include <gpac/avparse.h>
+ Include dependency graph for rewrite_mhas.c:

Data Structures

struct  GF_MHASMxCtx
 

Macros

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

Functions

GF_Err mhasmx_configure_pid (GF_Filter *filter, GF_FilterPid *pid, Bool is_remove)
 
GF_Err mhasmx_process (GF_Filter *filter)
 
static GF_Err mhasmx_initialize (GF_Filter *filter)
 
static void mhasmx_finalize (GF_Filter *filter)
 
const GF_FilterRegister * ufmhas_register (GF_FilterSession *session)
 

Variables

static const GF_FilterCapability MHASMxCaps []
 
static const GF_FilterArgs MHASMxArgs []
 
GF_FilterRegister MHASMxRegister
 

Data Structure Documentation

◆ GF_MHASMxCtx

struct GF_MHASMxCtx
+ Collaboration diagram for GF_MHASMxCtx:
Data Fields
Bool exporter
Bool syncp
GF_FilterPid * ipid
GF_FilterPid * opid
Bool is_mpha
GF_BitStream * bs_w
u8 * dsi
u32 dsi_size
u32 dsi_crc
Bool update_dsi
GF_Fraction fdsi
u64 last_cts
u32 timescale

Macro Definition Documentation

◆ OFFS

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

Function Documentation

◆ mhasmx_configure_pid()

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

◆ mhasmx_process()

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

◆ mhasmx_initialize()

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

◆ mhasmx_finalize()

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

◆ ufmhas_register()

const GF_FilterRegister* ufmhas_register ( GF_FilterSession *  session)

Variable Documentation

◆ MHASMxCaps

const GF_FilterCapability MHASMxCaps[]
static
Initial value:
=
{
}
@ GF_CODECID_MPHA
Definition: constants.h:611
@ GF_CODECID_MHAS
Definition: constants.h:613
@ GF_STREAM_AUDIO
Definition: constants.h:66
#define GF_CAPS_OUTPUT
Definition: filters.h:2232
#define CAP_UINT(_f, _a, _b)
Definition: filters.h:2172
#define GF_CAPS_INPUT_OUTPUT
Definition: filters.h:2242
#define GF_CAPS_INPUT_EXCLUDED
Definition: filters.h:2228
#define CAP_BOOL(_f, _a, _b)
Definition: filters.h:2180
#define GF_CAPS_INPUT
Definition: filters.h:2220
@ 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_TRUE
Definition: setup.h:474

◆ MHASMxArgs

const GF_FilterArgs MHASMxArgs[]
static
Initial value:
=
{
{ OFFS(syncp), "if set, insert sync packet at each frame, otherwise only at SAP", GF_PROP_BOOL, "false", NULL, GF_FS_ARG_HINT_ADVANCED},
{0}
}
@ GF_FS_ARG_HINT_ADVANCED
Definition: filters.h:2102
@ GF_PROP_BOOL
Definition: filters.h:858
#define OFFS(_n)
Definition: rewrite_mhas.c:255

◆ MHASMxRegister

GF_FilterRegister MHASMxRegister
Initial value:
= {
.name = "ufmhas",
.private_size = sizeof(GF_MHASMxCtx),
.initialize = mhasmx_initialize,
.finalize = mhasmx_finalize,
.configure_pid = mhasmx_configure_pid,
.process = mhasmx_process,
.hint_class_type = GF_FS_CLASS_FRAMING
}
#define SETCAPS(__struct)
Definition: filters.h:2364
@ GF_FS_CLASS_FRAMING
Definition: filters.h:2459
attribute Array args
Definition: jsf.idl:24
static GF_Err mhasmx_initialize(GF_Filter *filter)
Definition: rewrite_mhas.c:231
GF_Err mhasmx_configure_pid(GF_Filter *filter, GF_FilterPid *pid, Bool is_remove)
Definition: rewrite_mhas.c:61
GF_Err mhasmx_process(GF_Filter *filter)
Definition: rewrite_mhas.c:121
static const GF_FilterArgs MHASMxArgs[]
Definition: rewrite_mhas.c:256
static const GF_FilterCapability MHASMxCaps[]
Definition: rewrite_mhas.c:244
static void mhasmx_finalize(GF_Filter *filter)
Definition: rewrite_mhas.c:238
Definition: rewrite_mhas.c:36