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

Data Structures

struct  GF_WCDecCtx
 

Macros

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

Functions

static GF_Err wcdec_configure_pid (GF_Filter *filter, GF_FilterPid *pid, Bool is_remove)
 
static GF_Err wcdec_process (GF_Filter *filter)
 
const GF_FilterRegister * wcdec_register (GF_FilterSession *session)
 

Variables

static GF_FilterCapability WCDecCapsAV []
 
static const GF_FilterArgs WCDecArgs []
 
GF_FilterRegister GF_WCDecCtxRegister
 

Data Structure Documentation

◆ GF_WCDecCtx

struct GF_WCDecCtx
Data Fields
u32 queued
GF_Filter * filter
u32 codecid
u32 cfg_crc
u32 timescale
u32 width
u32 height
Bool codec_init
u32 pf
u32 out_size
u32 in_flush
u32 af
u32 sample_rate
u32 num_channels
u32 bytes_per_sample
GF_FilterPid * ipid
GF_FilterPid * opid
GF_List * src_pcks
GF_Err error
GF_Err dec_error
u32 pending_frames
u32 nb_frames
Bool playing
char szCodec[RFC6381_CODEC_NAME_SIZE_MAX]

Macro Definition Documentation

◆ OFFS

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

Function Documentation

◆ wcdec_configure_pid()

static GF_Err wcdec_configure_pid ( GF_Filter *  filter,
GF_FilterPid *  pid,
Bool  is_remove 
)
static

◆ wcdec_process()

static GF_Err wcdec_process ( GF_Filter *  filter)
static

◆ wcdec_register()

const GF_FilterRegister* wcdec_register ( GF_FilterSession *  session)
+ Here is the call graph for this function:

Variable Documentation

◆ WCDecCapsAV

GF_FilterCapability WCDecCapsAV[]
static
Initial value:
=
{
{0},
}
@ GF_CODECID_RAW
Definition: constants.h:600
@ GF_STREAM_AUDIO
Definition: constants.h:66
@ GF_STREAM_VISUAL
Definition: constants.h:64
#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
@ 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

◆ WCDecArgs

const GF_FilterArgs WCDecArgs[]
static
Initial value:
=
{
{ OFFS(queued), "maximum number of packets to queue in webcodec instance", GF_PROP_UINT, "10", NULL, 0},
{0}
}
#define OFFS(_n)
Definition: dec_webcodec.c:647
@ GF_PROP_UINT
Definition: filters.h:852

◆ GF_WCDecCtxRegister

GF_FilterRegister GF_WCDecCtxRegister
Initial value:
= {
.name = "wcdec",
.args = WCDecArgs,
.private_size = sizeof(GF_WCDecCtx),
.configure_pid = wcdec_configure_pid,
.process = wcdec_process,
.hint_class_type = GF_FS_CLASS_DECODER
}
static GF_Err wcdec_configure_pid(GF_Filter *filter, GF_FilterPid *pid, Bool is_remove)
Definition: dec_webcodec.c:624
static const GF_FilterArgs WCDecArgs[]
Definition: dec_webcodec.c:649
static GF_Err wcdec_process(GF_Filter *filter)
Definition: dec_webcodec.c:628
static GF_FilterCapability WCDecCapsAV[]
Definition: dec_webcodec.c:634
Definition: dec_webcodec.c:32
#define SETCAPS(__struct)
Definition: filters.h:2364
@ GF_FS_REG_ASYNC_BLOCK
Definition: filters.h:2428
@ GF_FS_REG_SINGLE_THREAD
Definition: filters.h:2420
@ GF_FS_CLASS_DECODER
Definition: filters.h:2465