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

Data Structures

struct  AMRIdx
 
struct  GF_AMRDmxCtx
 

Macros

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

Functions

GF_Err amrdmx_configure_pid (GF_Filter *filter, GF_FilterPid *pid, Bool is_remove)
 
static void amrdmx_check_dur (GF_Filter *filter, GF_AMRDmxCtx *ctx)
 
static void amrdmx_check_pid (GF_Filter *filter, GF_AMRDmxCtx *ctx, u16 amr_mode_set)
 
static Bool amrdmx_process_event (GF_Filter *filter, const GF_FilterEvent *evt)
 
static GFINLINE void amrdmx_update_cts (GF_AMRDmxCtx *ctx)
 
GF_Err amrdmx_process (GF_Filter *filter)
 
static GF_Err amrdmx_initialize (GF_Filter *filter)
 
static void amrdmx_finalize (GF_Filter *filter)
 
static const char * amrdmx_probe_data (const u8 *data, u32 size, GF_FilterProbeScore *score)
 
const GF_FilterRegister * rfamr_register (GF_FilterSession *session)
 

Variables

static const GF_FilterCapability AMRDmxCaps []
 
static const GF_FilterArgs AMRDmxArgs []
 
GF_FilterRegister AMRDmxRegister
 

Data Structure Documentation

◆ AMRIdx

struct AMRIdx
Data Fields
u64 pos
Double duration

◆ GF_AMRDmxCtx

struct GF_AMRDmxCtx
+ Collaboration diagram for GF_AMRDmxCtx:
Data Fields
Double index
GF_FilterPid * ipid
GF_FilterPid * opid
u32 start_offset
u32 codecid
u32 sample_rate
u32 block_size
u32 bitrate
u64 file_pos
u64 cts
u16 amr_mode_set
GF_Fraction64 duration
Double start_range
Bool in_seek
u32 timescale
Bool is_playing
Bool is_file
Bool initial_play_done
Bool file_loaded
Bool skip_magic
u32 hdr
u32 resume_from
u32 remaining
AMRIdx * indexes
u32 index_alloc_size
u32 index_size

Macro Definition Documentation

◆ OFFS

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

Function Documentation

◆ amrdmx_configure_pid()

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

◆ amrdmx_check_dur()

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

◆ amrdmx_check_pid()

static void amrdmx_check_pid ( GF_Filter *  filter,
GF_AMRDmxCtx ctx,
u16  amr_mode_set 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ amrdmx_process_event()

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

◆ amrdmx_update_cts()

static GFINLINE void amrdmx_update_cts ( GF_AMRDmxCtx ctx)
static
+ Here is the caller graph for this function:

◆ amrdmx_process()

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

◆ amrdmx_initialize()

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

◆ amrdmx_finalize()

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

◆ amrdmx_probe_data()

static const char* amrdmx_probe_data ( const u8 data,
u32  size,
GF_FilterProbeScore score 
)
static

◆ rfamr_register()

const GF_FilterRegister* rfamr_register ( GF_FilterSession *  session)

Variable Documentation

◆ AMRDmxCaps

const GF_FilterCapability AMRDmxCaps[]
static
Initial value:
=
{
CAP_STRING(GF_CAPS_INPUT, GF_PROP_PID_MIME, "audio/amr|audio/evrc|audio/smv"),
}
@ GF_CODECID_EVRC
Definition: constants.h:469
@ GF_CODECID_SMV
Definition: constants.h:471
@ GF_CODECID_AMR
Definition: constants.h:475
@ GF_CODECID_AMR_WB
Definition: constants.h:477
@ GF_STREAM_AUDIO
Definition: constants.h:66
@ 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_OUTPUT_EXCLUDED
Definition: filters.h:2236
#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_PROP_PID_FILE_EXT
Definition: filters.h:1190
@ GF_PROP_PID_MIME
Definition: filters.h:1189
@ GF_TRUE
Definition: setup.h:474

◆ AMRDmxArgs

const GF_FilterArgs AMRDmxArgs[]
static
Initial value:
=
{
{ OFFS(index), "indexing window length", GF_PROP_DOUBLE, "1.0", NULL, 0},
{0}
}
@ GF_PROP_DOUBLE
Definition: filters.h:866
#define OFFS(_n)
Definition: reframe_amr.c:603

◆ AMRDmxRegister

GF_FilterRegister AMRDmxRegister
Initial value:
= {
.name = "rfamr",
.private_size = sizeof(GF_AMRDmxCtx),
.initialize = amrdmx_initialize,
.finalize = amrdmx_finalize,
.configure_pid = amrdmx_configure_pid,
.process = amrdmx_process,
.probe_data = amrdmx_probe_data,
.process_event = amrdmx_process_event,
.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 void amrdmx_finalize(GF_Filter *filter)
Definition: reframe_amr.c:563
static const char * amrdmx_probe_data(const u8 *data, u32 size, GF_FilterProbeScore *score)
Definition: reframe_amr.c:569
GF_Err amrdmx_configure_pid(GF_Filter *filter, GF_FilterPid *pid, Bool is_remove)
Definition: reframe_amr.c:75
GF_Err amrdmx_process(GF_Filter *filter)
Definition: reframe_amr.c:351
static GF_Err amrdmx_initialize(GF_Filter *filter)
Definition: reframe_amr.c:556
static Bool amrdmx_process_event(GF_Filter *filter, const GF_FilterEvent *evt)
Definition: reframe_amr.c:275
static const GF_FilterArgs AMRDmxArgs[]
Definition: reframe_amr.c:604
static const GF_FilterCapability AMRDmxCaps[]
Definition: reframe_amr.c:590
Definition: reframe_amr.c:38