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

Data Structures

struct  GF_QCPMxCtx
 

Macros

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

Functions

GF_Err qcpmx_configure_pid (GF_Filter *filter, GF_FilterPid *pid, Bool is_remove)
 
static void qcpmx_send_header (GF_QCPMxCtx *ctx, u32 data_size, u32 frame_count)
 
GF_Err qcpmx_process (GF_Filter *filter)
 
const GF_FilterRegister * writeqcp_register (GF_FilterSession *session)
 

Variables

static const char * QCP_QCELP_GUID_1 = "\x41\x6D\x7F\x5E\x15\xB1\xD0\x11\xBA\x91\x00\x80\x5F\xB4\xB9\x7E"
 
static const char * QCP_EVRC_GUID = "\x8D\xD4\x89\xE6\x76\x90\xB5\x46\x91\xEF\x73\x6A\x51\x00\xCE\xB4"
 
static const char * QCP_SMV_GUID = "\x75\x2B\x7C\x8D\x97\xA7\x46\xED\x98\x5E\xD5\x3C\x8C\xC7\x5F\x84"
 
static const GF_FilterCapability QCPMxCaps []
 
static const GF_FilterArgs QCPMxArgs []
 
GF_FilterRegister QCPMxRegister
 

Data Structure Documentation

◆ GF_QCPMxCtx

struct GF_QCPMxCtx
+ Collaboration diagram for GF_QCPMxCtx:
Data Fields
Bool exporter
Bool mpeg2
GF_FilterPid * ipid
GF_FilterPid * opid
u32 codecid
Bool first
GF_Fraction64 duration
char GUID[16]
u32 qcp_type
u32 needs_rate_byte
QCPRateTable rtable[8]
unsigned int * qcp_rates
unsigned int rt_cnt
Bool has_qcp_pad
Bool needs_final_pach
u32 data_size
u32 nb_frames

Macro Definition Documentation

◆ OFFS

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

Function Documentation

◆ qcpmx_configure_pid()

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

◆ qcpmx_send_header()

static void qcpmx_send_header ( GF_QCPMxCtx ctx,
u32  data_size,
u32  frame_count 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ qcpmx_process()

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

◆ writeqcp_register()

const GF_FilterRegister* writeqcp_register ( GF_FilterSession *  session)

Variable Documentation

◆ QCP_QCELP_GUID_1

const char* QCP_QCELP_GUID_1 = "\x41\x6D\x7F\x5E\x15\xB1\xD0\x11\xBA\x91\x00\x80\x5F\xB4\xB9\x7E"
static

◆ QCP_EVRC_GUID

const char* QCP_EVRC_GUID = "\x8D\xD4\x89\xE6\x76\x90\xB5\x46\x91\xEF\x73\x6A\x51\x00\xCE\xB4"
static

◆ QCP_SMV_GUID

const char* QCP_SMV_GUID = "\x75\x2B\x7C\x8D\x97\xA7\x46\xED\x98\x5E\xD5\x3C\x8C\xC7\x5F\x84"
static

◆ QCPMxCaps

const GF_FilterCapability QCPMxCaps[]
static
Initial value:
=
{
CAP_STRING(GF_CAPS_OUTPUT, GF_PROP_PID_MIME, "audio/qcelp|audio/evrc-qcp|audio/smv-qcp"),
}
@ GF_CODECID_EVRC
Definition: constants.h:469
@ GF_CODECID_SMV
Definition: constants.h:471
@ GF_CODECID_QCELP
Definition: constants.h:473
@ GF_CODECID_EVRC_PV
Definition: constants.h:479
@ 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_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_PROP_PID_FILE_EXT
Definition: filters.h:1190
@ GF_PROP_PID_MIME
Definition: filters.h:1189
@ GF_TRUE
Definition: setup.h:474

◆ QCPMxArgs

const GF_FilterArgs QCPMxArgs[]
static
Initial value:
=
{
{ OFFS(exporter), "compatibility with old exporter, displays export results", 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: write_qcp.c:370

◆ QCPMxRegister

GF_FilterRegister QCPMxRegister
Initial value:
= {
.name = "writeqcp",
.private_size = sizeof(GF_QCPMxCtx),
.configure_pid = qcpmx_configure_pid,
.process = qcpmx_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
GF_Err qcpmx_process(GF_Filter *filter)
Definition: write_qcp.c:269
GF_Err qcpmx_configure_pid(GF_Filter *filter, GF_FilterPid *pid, Bool is_remove)
Definition: write_qcp.c:67
static const GF_FilterCapability QCPMxCaps[]
Definition: write_qcp.c:356
static const GF_FilterArgs QCPMxArgs[]
Definition: write_qcp.c:371
Definition: write_qcp.c:36