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

Data Structures

struct  AC4Idx
 
struct  GF_AC4DmxCtx
 

Macros

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

Functions

GF_Err ac4dmx_configure_pid (GF_Filter *filter, GF_FilterPid *pid, Bool is_remove)
 
static void ac4dmx_check_dur (GF_Filter *filter, GF_AC4DmxCtx *ctx)
 
static void ac4dmx_check_pid (GF_Filter *filter, GF_AC4DmxCtx *ctx)
 
static Bool ac4dmx_process_event (GF_Filter *filter, const GF_FilterEvent *evt)
 
GF_Err ac4dmx_process (GF_Filter *filter)
 
static void ac4dmx_finalize (GF_Filter *filter)
 
static const char * ac4dmx_probe_data (const u8 *_data, u32 _size, GF_FilterProbeScore *score)
 
const GF_FilterRegister * rfac4_register (GF_FilterSession *session)
 

Variables

static const GF_FilterCapability AC4DmxCaps []
 
static const GF_FilterArgs AC4DmxArgs []
 
GF_FilterRegister AC4DmxRegister
 

Data Structure Documentation

◆ AC4Idx

struct AC4Idx
Data Fields
u64 pos
Double duration

◆ GF_AC4DmxCtx

struct GF_AC4DmxCtx
+ Collaboration diagram for GF_AC4DmxCtx:
Data Fields
GF_FilterPid * ipid
GF_FilterPid * opid
GF_BitStream * bs
u64 file_pos
u64 cts
u32 sample_rate
u32 nb_ch
GF_Fraction64 duration
Double start_range
Bool in_seek
u32 in_timescale
u32 out_timescale
GF_AC4Config hdr
u8 * ac4_buffer
u32 ac4_buffer_size
u32 ac4_buffer_alloc
u32 resume_from
Bool is_playing
Bool is_file
Bool file_loaded
Bool initial_play_done
GF_FilterPacket * src_pck
AC4Idx * indexes
u32 index_alloc_size
u32 index_size
u32 bitrate
Bool copy_props

Macro Definition Documentation

◆ OFFS

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

Function Documentation

◆ ac4dmx_configure_pid()

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

◆ ac4dmx_check_dur()

static void ac4dmx_check_dur ( GF_Filter *  filter,
GF_AC4DmxCtx ctx 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ac4dmx_check_pid()

static void ac4dmx_check_pid ( GF_Filter *  filter,
GF_AC4DmxCtx ctx 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ac4dmx_process_event()

static Bool ac4dmx_process_event ( GF_Filter *  filter,
const GF_FilterEvent *  evt 
)
static
+ Here is the call graph for this function:

◆ ac4dmx_process()

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

◆ ac4dmx_finalize()

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

◆ ac4dmx_probe_data()

static const char* ac4dmx_probe_data ( const u8 _data,
u32  _size,
GF_FilterProbeScore score 
)
static
+ Here is the call graph for this function:

◆ rfac4_register()

const GF_FilterRegister* rfac4_register ( GF_FilterSession *  session)

Variable Documentation

◆ AC4DmxCaps

const GF_FilterCapability AC4DmxCaps[]
static
Initial value:
=
{
CAP_STRING(GF_CAPS_INPUT, GF_PROP_PID_MIME, "audio/x-ac4|audio/ac4"),
{0},
}
@ GF_CODECID_AC4
Definition: constants.h:490
@ GF_STREAM_AUDIO
Definition: constants.h:66
@ GF_STREAM_FILE
Definition: constants.h:104
#define GF_CAPS_OUTPUT
Definition: filters.h:2279
#define CAP_UINT(_f, _a, _b)
Definition: filters.h:2213
#define CAP_STRING(_f, _a, _b)
Definition: filters.h:2235
#define GF_CAPS_INPUT_OUTPUT
Definition: filters.h:2289
#define CAP_BOOL(_f, _a, _b)
Definition: filters.h:2221
#define GF_CAPS_INPUT
Definition: filters.h:2267
#define GF_CAPS_OUTPUT_STATIC
Definition: filters.h:2285
#define GF_CAPS_OUTPUT_STATIC_EXCLUDED
Definition: filters.h:2287
@ GF_PROP_PID_CODECID
Definition: filters.h:1144
@ GF_PROP_PID_STREAM_TYPE
Definition: filters.h:1140
@ GF_PROP_PID_UNFRAMED
Definition: filters.h:1146
@ GF_PROP_PID_FILE_EXT
Definition: filters.h:1219
@ GF_PROP_PID_MIME
Definition: filters.h:1218
@ GF_TRUE
Definition: setup.h:474
@ GF_FALSE
Definition: setup.h:473

◆ AC4DmxArgs

const GF_FilterArgs AC4DmxArgs[]
static
Initial value:
=
{
{0}
}

◆ AC4DmxRegister

GF_FilterRegister AC4DmxRegister
Initial value:
= {
.name = "rfac4",
.private_size = sizeof(GF_AC4DmxCtx),
.finalize = ac4dmx_finalize,
.configure_pid = ac4dmx_configure_pid,
.process = ac4dmx_process,
.probe_data = ac4dmx_probe_data,
.process_event = ac4dmx_process_event,
.hint_class_type = GF_FS_CLASS_FRAMING
}
#define SETCAPS(__struct)
Definition: filters.h:2411
@ GF_FS_CLASS_FRAMING
Definition: filters.h:2507
attribute Array args
Definition: jsf.idl:24
static void ac4dmx_finalize(GF_Filter *filter)
Definition: reframe_ac4.c:526
static Bool ac4dmx_process_event(GF_Filter *filter, const GF_FilterEvent *evt)
Definition: reframe_ac4.c:246
static const char * ac4dmx_probe_data(const u8 *_data, u32 _size, GF_FilterProbeScore *score)
Definition: reframe_ac4.c:537
GF_Err ac4dmx_process(GF_Filter *filter)
Definition: reframe_ac4.c:307
static const GF_FilterArgs AC4DmxArgs[]
Definition: reframe_ac4.c:593
static const GF_FilterCapability AC4DmxCaps[]
Definition: reframe_ac4.c:572
GF_Err ac4dmx_configure_pid(GF_Filter *filter, GF_FilterPid *pid, Bool is_remove)
Definition: reframe_ac4.c:69
Definition: reframe_ac4.c:39