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

Data Structures

struct  TestContext
 

Macros

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

Functions

static GF_Err testfilter_configure_pid (GF_Filter *filter, GF_FilterPid *pid, Bool is_remove)
 
static Bool testfilter_process_event (GF_Filter *filter, const GF_FilterEvent *fevt)
 
static GF_Err testfilter_process (GF_Filter *filter)
 
static GF_Err testfilter_initialize (GF_Filter *filter)
 
static void testfilter_finalize (GF_Filter *filter)
 
GPAC_MODULE_EXPORT GF_FilterRegister * RegisterFilter (GF_FilterSession *session)
 

Variables

static const GF_FilterCapability TestFilterCaps []
 
static const GF_FilterArgs TestFilterArgs []
 
GF_FilterRegister TestFilterRegister
 

Data Structure Documentation

◆ TestContext

struct TestContext
Data Fields
Bool opt1

Macro Definition Documentation

◆ OFFS

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

Function Documentation

◆ testfilter_configure_pid()

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

◆ testfilter_process_event()

static Bool testfilter_process_event ( GF_Filter *  filter,
const GF_FilterEvent *  fevt 
)
static

◆ testfilter_process()

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

◆ testfilter_initialize()

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

◆ testfilter_finalize()

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

◆ RegisterFilter()

GPAC_MODULE_EXPORT GF_FilterRegister* RegisterFilter ( GF_FilterSession *  session)

Variable Documentation

◆ TestFilterCaps

const GF_FilterCapability TestFilterCaps[]
static
Initial value:
=
{
}

◆ TestFilterArgs

const GF_FilterArgs TestFilterArgs[]
static
Initial value:
=
{
{ OFFS(opt1), "some boolean option", 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: test_filter.c:89

◆ TestFilterRegister

GF_FilterRegister TestFilterRegister
Initial value:
= {
.name = "testfilter",
.private_size = sizeof(TestContext),
.args = TestFilterArgs,
.initialize = testfilter_initialize,
.finalize = testfilter_finalize,
.configure_pid = testfilter_configure_pid,
.process = testfilter_process,
.process_event = testfilter_process_event,
}
#define SETCAPS(__struct)
Definition: filters.h:2364
static GF_Err testfilter_process(GF_Filter *filter)
Definition: test_filter.c:61
static const GF_FilterCapability TestFilterCaps[]
Definition: test_filter.c:83
static GF_Err testfilter_configure_pid(GF_Filter *filter, GF_FilterPid *pid, Bool is_remove)
Definition: test_filter.c:39
static void testfilter_finalize(GF_Filter *filter)
Definition: test_filter.c:78
static Bool testfilter_process_event(GF_Filter *filter, const GF_FilterEvent *fevt)
Definition: test_filter.c:55
static const GF_FilterArgs TestFilterArgs[]
Definition: test_filter.c:91
static GF_Err testfilter_initialize(GF_Filter *filter)
Definition: test_filter.c:72
Definition: test_filter.c:34