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

Data Structures

struct  GF_BaseFilterExample
 

Macros

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

Functions

static void example_filter_finalize (GF_Filter *filter)
 
static GF_Err example_filter_process (GF_Filter *filter)
 
static GF_Err example_filter_config_input (GF_Filter *filter, GF_FilterPid *pid, Bool is_remove)
 
static GF_Err example_filter_update_arg (GF_Filter *filter, const char *arg_name, const GF_PropertyValue *arg_val)
 
GF_Err example_filter_initialize (GF_Filter *filter)
 
const GF_FilterRegister * ex_filter_register (GF_FilterSession *session, Bool load_meta_filters)
 

Variables

static const GF_FilterArgs ExampleFilterArgs []
 
static const GF_FilterCapability ExampleFilterInputs []
 
static const GF_FilterCapability ExampleFilterOutputs []
 
const GF_FilterRegister ExampleFilterRegister
 

Data Structure Documentation

◆ GF_BaseFilterExample

struct GF_BaseFilterExample
Data Fields
u32 opt1
Bool opt2
GF_FilterPid * src_pid
GF_FilterPid * dst_pid

Macro Definition Documentation

◆ OFFS

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

Function Documentation

◆ example_filter_finalize()

static void example_filter_finalize ( GF_Filter *  filter)
static

◆ example_filter_process()

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

◆ example_filter_config_input()

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

◆ example_filter_update_arg()

static GF_Err example_filter_update_arg ( GF_Filter *  filter,
const char *  arg_name,
const GF_PropertyValue *  arg_val 
)
static

◆ example_filter_initialize()

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

◆ ex_filter_register()

const GF_FilterRegister* ex_filter_register ( GF_FilterSession *  session,
Bool  load_meta_filters 
)

Variable Documentation

◆ ExampleFilterArgs

const GF_FilterArgs ExampleFilterArgs[]
static
Initial value:
=
{
{ OFFS(opt1), "Example option 1", GF_PROP_UINT, "v1", "v1|v2|v3", GF_FALSE},
{ OFFS(opt2), "Example option 2", GF_PROP_BOOL, "false", NULL, GF_FALSE},
{ NULL }
}
#define OFFS(_n)
Definition: base_filter_example.c:127
@ GF_PROP_BOOL
Definition: filters.h:858
@ GF_PROP_UINT
Definition: filters.h:852
@ GF_FALSE
Definition: setup.h:473

◆ ExampleFilterInputs

const GF_FilterCapability ExampleFilterInputs[]
static
Initial value:
=
{
{ .cap_string="cust", .val=PROP_NAME("myformat") },
{ NULL }
}
#define PROP_NAME(_val)
Definition: filters.h:1645

◆ ExampleFilterOutputs

const GF_FilterCapability ExampleFilterOutputs[]
static
Initial value:
=
{
{GF_4CC('c','u','s','t'), PROP_UINT(10) },
{ NULL }
}
#define GF_4CC(a, b, c, d)
Definition: constants.h:137
#define PROP_UINT(_val)
Definition: filters.h:1615

◆ ExampleFilterRegister

const GF_FilterRegister ExampleFilterRegister
Initial value:
= {
.name = "ExampleFilter",
.description = "Example Test Filter, not used",
.private_size = sizeof(GF_BaseFilterExample),
.input_caps = ExampleFilterInputs,
.output_caps = ExampleFilterOutputs,
.configure_pid = example_filter_config_input,
}
static const GF_FilterArgs ExampleFilterArgs[]
Definition: base_filter_example.c:128
GF_Err example_filter_initialize(GF_Filter *filter)
Definition: base_filter_example.c:115
static const GF_FilterCapability ExampleFilterInputs[]
Definition: base_filter_example.c:136
static GF_Err example_filter_process(GF_Filter *filter)
Definition: base_filter_example.c:44
static const GF_FilterCapability ExampleFilterOutputs[]
Definition: base_filter_example.c:142
static void example_filter_finalize(GF_Filter *filter)
Definition: base_filter_example.c:39
static GF_Err example_filter_update_arg(GF_Filter *filter, const char *arg_name, const GF_PropertyValue *arg_val)
Definition: base_filter_example.c:110
static GF_Err example_filter_config_input(GF_Filter *filter, GF_FilterPid *pid, Bool is_remove)
Definition: base_filter_example.c:74
Definition: base_filter_example.c:31
attribute Array args
Definition: jsf.idl:24