libgpac
Documentation of the core library of GPAC
Loading...
Searching...
No Matches
filter_props.c File Reference
#include "filter_session.h"
#include <gpac/constants.h>
#include <gpac/xml.h>
#include <gpac/base_coding.h>

Data Structures

struct  GF_PropTypeDef
 

Typedefs

typedef u32(* cst_parse_proto) (const char *val)
 
typedef const char *(* cst_name_proto) (u32 val)
 

Functions

GF_EXPORT u32 gf_props_parse_enum (u32 type, const char *value)
 
GF_EXPORT const char * gf_props_enum_name (u32 type, u32 value)
 
GF_EXPORT const char * gf_props_enum_all_names (u32 type)
 
GF_EXPORT Bool gf_props_type_is_enum (GF_PropType type)
 
GF_PropertyValue gf_props_parse_value (u32 type, const char *name, const char *value, const char *enum_values, char list_sep_char)
 
u32 gf_props_get_base_type (u32 type)
 
Bool gf_props_equal_internal (const GF_PropertyValue *p1, const GF_PropertyValue *p2, Bool strict_compare)
 
Bool gf_props_equal (const GF_PropertyValue *p1, const GF_PropertyValue *p2)
 
Bool gf_props_equal_strict (const GF_PropertyValue *p1, const GF_PropertyValue *p2)
 
GF_PropertyMapgf_props_new (GF_Filter *filter)
 
void gf_props_reset_single (GF_PropertyValue *p)
 
void gf_props_del_property (GF_PropertyEntry *it)
 
void gf_propmap_del (void *pmap)
 
void gf_props_reset (GF_PropertyMap *prop)
 
void gf_props_del (GF_PropertyMap *map)
 
void gf_props_remove_property (GF_PropertyMap *map, u32 hash, u32 p4cc, const char *name)
 
static GF_Err gf_props_assign_value (GF_PropertyEntry *prop, const GF_PropertyValue *value, Bool is_old_prop)
 
GF_Err gf_props_insert_property (GF_PropertyMap *map, u32 hash, u32 p4cc, const char *name, char *dyn_name, const GF_PropertyValue *value)
 
GF_Err gf_props_set_property (GF_PropertyMap *map, u32 p4cc, const char *name, char *dyn_name, const GF_PropertyValue *value)
 
const GF_PropertyEntry * gf_props_get_property_entry (GF_PropertyMap *map, u32 prop_4cc, const char *name)
 
const GF_PropertyValue * gf_props_get_property (GF_PropertyMap *map, u32 prop_4cc, const char *name)
 
GF_Err gf_props_merge_property (GF_PropertyMap *dst_props, GF_PropertyMap *src_props, gf_filter_prop_filter filter_prop, void *cbk)
 
const GF_PropertyValue * gf_props_enum_property (GF_PropertyMap *props, u32 *io_idx, u32 *prop_4cc, const char **prop_name)
 
GF_EXPORT const char * gf_props_get_type_name (GF_PropType type)
 
GF_EXPORT const char * gf_props_get_type_desc (GF_PropType type)
 
GF_EXPORT GF_PropType gf_props_parse_type (const char *name)
 
GF_EXPORT u32 gf_props_get_id (const char *name)
 
GF_EXPORT const GF_BuiltInPropertygf_props_get_description (u32 prop_idx)
 
GF_EXPORT const char * gf_props_4cc_get_name (u32 prop_4cc)
 
GF_EXPORT u8 gf_props_4cc_get_flags (u32 prop_4cc)
 
GF_EXPORT u32 gf_props_4cc_get_type (u32 prop_4cc)
 
Bool gf_props_4cc_check_props ()
 
GF_EXPORT const char * gf_props_dump_val (const GF_PropertyValue *att, char dump[GF_PROP_DUMP_ARG_SIZE], u32 dump_data_type, const char *min_max_enum)
 
GF_EXPORT const char * gf_props_dump (u32 p4cc, const GF_PropertyValue *att, char dump[GF_PROP_DUMP_ARG_SIZE], u32 dump_data_mode)
 
GF_Err gf_prop_matrix_decompose (const GF_PropertyValue *p, u32 *flip_mode, u32 *rot_mode)
 

Variables

struct { 
 
u32 type
 
u32(* cst_parse )(const char *val)
 
const char *(* cst_name )(u32 val)
 
const char *(* cst_all_names )()
 
EnumProperties [] 
 
GF_PropTypeDef PropTypes []
 
GF_BuiltInProperty GF_BuiltInProps []
 
static u32 gf_num_props = sizeof(GF_BuiltInProps) / sizeof(GF_BuiltInProperty)
 

Data Structure Documentation

◆ GF_PropTypeDef

struct GF_PropTypeDef
Data Fields
GF_PropType type
const char * name
const char * desc

Typedef Documentation

◆ cst_parse_proto

typedef u32(* cst_parse_proto) (const char *val)

◆ cst_name_proto

typedef const char *(* cst_name_proto) (u32 val)

Function Documentation

◆ gf_props_equal_internal()

Bool gf_props_equal_internal ( const GF_PropertyValue *  p1,
const GF_PropertyValue *  p2,
Bool  strict_compare 
)

◆ gf_props_new()

GF_PropertyMap * gf_props_new ( GF_Filter *  filter)

◆ gf_props_del_property()

void gf_props_del_property ( GF_PropertyEntry *  it)

◆ gf_propmap_del()

void gf_propmap_del ( void *  pmap)

◆ gf_props_reset()

void gf_props_reset ( GF_PropertyMap prop)

◆ gf_props_del()

void gf_props_del ( GF_PropertyMap map)

◆ gf_props_remove_property()

void gf_props_remove_property ( GF_PropertyMap map,
u32  hash,
u32  p4cc,
const char *  name 
)

◆ gf_props_assign_value()

static GF_Err gf_props_assign_value ( GF_PropertyEntry *  prop,
const GF_PropertyValue *  value,
Bool  is_old_prop 
)
static

◆ gf_props_insert_property()

GF_Err gf_props_insert_property ( GF_PropertyMap map,
u32  hash,
u32  p4cc,
const char *  name,
char *  dyn_name,
const GF_PropertyValue *  value 
)

◆ gf_props_set_property()

GF_Err gf_props_set_property ( GF_PropertyMap map,
u32  p4cc,
const char *  name,
char *  dyn_name,
const GF_PropertyValue *  value 
)

◆ gf_props_get_property_entry()

const GF_PropertyEntry * gf_props_get_property_entry ( GF_PropertyMap map,
u32  prop_4cc,
const char *  name 
)

◆ gf_props_get_property()

const GF_PropertyValue * gf_props_get_property ( GF_PropertyMap map,
u32  prop_4cc,
const char *  name 
)

◆ gf_props_merge_property()

GF_Err gf_props_merge_property ( GF_PropertyMap dst_props,
GF_PropertyMap src_props,
gf_filter_prop_filter  filter_prop,
void *  cbk 
)

◆ gf_props_enum_property()

const GF_PropertyValue * gf_props_enum_property ( GF_PropertyMap props,
u32 io_idx,
u32 prop_4cc,
const char **  prop_name 
)

◆ gf_props_4cc_check_props()

Bool gf_props_4cc_check_props ( )

◆ gf_props_dump_val()

GF_EXPORT const char * gf_props_dump_val ( const GF_PropertyValue *  att,
char  dump[GF_PROP_DUMP_ARG_SIZE],
u32  dump_data_type,
const char *  min_max_enum 
)

◆ gf_props_dump()

GF_EXPORT const char * gf_props_dump ( u32  p4cc,
const GF_PropertyValue *  att,
char  dump[GF_PROP_DUMP_ARG_SIZE],
u32  dump_data_mode 
)

◆ gf_prop_matrix_decompose()

GF_Err gf_prop_matrix_decompose ( const GF_PropertyValue *  p,
u32 flip_mode,
u32 rot_mode 
)

Variable Documentation

◆ [struct]

struct { ... } EnumProperties[]
Initial value:
= {
}
const char *(* cst_name_proto)(u32 val)
Definition filter_props.c:34
u32(* cst_parse_proto)(const char *val)
Definition filter_props.c:33
u32 gf_cicp_parse_color_transfer(const char *val)
Definition constants.c:2043
GF_AudioFormat gf_audio_fmt_parse(const char *af_name)
Definition constants.c:616
u32 gf_cicp_parse_color_primaries(const char *val)
Definition constants.c:1973
const char * gf_pixel_fmt_name(GF_PixelFormat pfmt)
Definition constants.c:1158
u32 gf_cicp_parse_color_matrix(const char *val)
Definition constants.c:2104
const char * gf_pixel_fmt_all_names()
Definition constants.c:1217
const char * gf_cicp_color_primaries_name(u32 cicp_prim)
Definition constants.c:1989
const char * gf_audio_fmt_name(GF_AudioFormat afmt)
Definition constants.c:632
GF_PixelFormat gf_pixel_fmt_parse(const char *pf_name)
Definition constants.c:1119
const char * gf_cicp_color_primaries_all_names()
Definition constants.c:2003
const char * gf_cicp_color_matrix_all_names()
Definition constants.c:2133
const char * gf_cicp_color_transfer_all_names()
Definition constants.c:2073
const char * gf_cicp_color_matrix_name(u32 cicp_mx)
Definition constants.c:2120
const char * gf_audio_fmt_all_names()
Definition constants.c:661
const char * gf_cicp_color_transfer_name(u32 cicp_trans)
Definition constants.c:2059
@ GF_PROP_CICP_COL_TFC
Definition filters.h:831
@ GF_PROP_CICP_COL_MX
Definition filters.h:833
@ GF_PROP_PIXFMT
Definition filters.h:825
@ GF_PROP_CICP_COL_PRIM
Definition filters.h:829
@ GF_PROP_PCMFMT
Definition filters.h:827

◆ PropTypes

GF_PropTypeDef PropTypes[]

◆ GF_BuiltInProps

GF_BuiltInProperty GF_BuiltInProps[]

◆ gf_num_props

u32 gf_num_props = sizeof(GF_BuiltInProps) / sizeof(GF_BuiltInProperty)
static