libgpac
Documentation of the core library of GPAC
filter_props.c File Reference
#include "filter_session.h"
#include <gpac/constants.h>
#include <gpac/xml.h>
#include <gpac/base_coding.h>
+ Include dependency graph for filter_props.c:

Data Structures

struct  GF_PropTypeDef
 

Macros

#define DEC_PROP(_a, _b, _c, _d)   { _a, _b, _c, _d}
 
#define DEC_PROP_F(_a, _b, _c, _d, _e)   { _a, _b, _c, _d, _e}
 

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)
 
static void parse_data_format (GF_PropertyValue *p, char list_sep_char, const char *name, const char *value, const char *prefix, const char *scode, u32 size)
 
static Bool parse_time (const char *str, u64 *val)
 
GF_EXPORT 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)
 
GF_EXPORT 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)
 
GF_EXPORT Bool gf_props_sanity_check ()
 
GF_EXPORT const char * gf_props_dump_val (const GF_PropertyValue *att, char dump[GF_PROP_DUMP_ARG_SIZE], GF_PropDumpDataMode dump_data_flags, 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], GF_PropDumpDataMode dump_data_mode)
 
GF_EXPORT char * gf_props_dump_alloc (u32 p4cc, const GF_PropertyValue *att, GF_PropDumpDataMode 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

Macro Definition Documentation

◆ DEC_PROP

#define DEC_PROP (   _a,
  _b,
  _c,
  _d 
)    { _a, _b, _c, _d}

◆ DEC_PROP_F

#define DEC_PROP_F (   _a,
  _b,
  _c,
  _d,
  _e 
)    { _a, _b, _c, _d, _e}

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

◆ parse_data_format()

static void parse_data_format ( GF_PropertyValue *  p,
char  list_sep_char,
const char *  name,
const char *  value,
const char *  prefix,
const char *  scode,
u32  size 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parse_time()

static Bool parse_time ( const char *  str,
u64 val 
)
static
+ Here is the caller graph for this function:

◆ gf_props_equal_internal()

Bool gf_props_equal_internal ( const GF_PropertyValue *  p1,
const GF_PropertyValue *  p2,
Bool  strict_compare 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_props_new()

GF_PropertyMap* gf_props_new ( GF_Filter *  filter)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_props_del_property()

void gf_props_del_property ( GF_PropertyEntry *  it)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_propmap_del()

void gf_propmap_del ( void *  pmap)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_props_reset()

void gf_props_reset ( GF_PropertyMap prop)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_props_del()

void gf_props_del ( GF_PropertyMap map)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_props_remove_property()

void gf_props_remove_property ( GF_PropertyMap map,
u32  hash,
u32  p4cc,
const char *  name 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_props_assign_value()

static GF_Err gf_props_assign_value ( GF_PropertyEntry *  prop,
const GF_PropertyValue *  value,
Bool  is_old_prop 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ 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 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ 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 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_props_get_property_entry()

const GF_PropertyEntry* gf_props_get_property_entry ( GF_PropertyMap map,
u32  prop_4cc,
const char *  name 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_props_get_property()

const GF_PropertyValue* gf_props_get_property ( GF_PropertyMap map,
u32  prop_4cc,
const char *  name 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ 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 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_props_enum_property()

const GF_PropertyValue* gf_props_enum_property ( GF_PropertyMap props,
u32 io_idx,
u32 prop_4cc,
const char **  prop_name 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_props_dump_alloc()

GF_EXPORT char* gf_props_dump_alloc ( u32  p4cc,
const GF_PropertyValue *  att,
GF_PropDumpDataMode  dump_data_mode 
)
+ Here is the call graph for this function:

◆ gf_prop_matrix_decompose()

GF_Err gf_prop_matrix_decompose ( const GF_PropertyValue *  p,
u32 flip_mode,
u32 rot_mode 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ 

struct { ... } EnumProperties[]
Initial value:
= {
}
u32(* cst_parse_proto)(const char *val)
Definition: filter_props.c:33
const char *(* cst_name_proto)(u32 val)
Definition: filter_props.c:34
u32 gf_cicp_parse_color_transfer(const char *val)
Definition: constants.c:2161
GF_AudioFormat gf_audio_fmt_parse(const char *af_name)
Definition: constants.c:642
const char * gf_pixel_fmt_all_names()
Definition: constants.c:1255
const char * gf_cicp_color_transfer_all_names()
Definition: constants.c:2191
u32 gf_cicp_parse_color_primaries(const char *val)
Definition: constants.c:2091
u32 gf_cicp_parse_color_matrix(const char *val)
Definition: constants.c:2222
const char * gf_audio_fmt_name(GF_AudioFormat afmt)
Definition: constants.c:658
const char * gf_cicp_color_transfer_name(u32 cicp_trans)
Definition: constants.c:2177
const char * gf_cicp_color_matrix_all_names()
Definition: constants.c:2251
const char * gf_cicp_color_primaries_name(u32 cicp_prim)
Definition: constants.c:2107
const char * gf_audio_fmt_get_cicp_name(u32 cicp_code)
Definition: constants.c:1003
GF_PixelFormat gf_pixel_fmt_parse(const char *pf_name)
Definition: constants.c:1157
const char * gf_audio_fmt_cicp_all_names()
Definition: constants.c:1026
const char * gf_cicp_color_matrix_name(u32 cicp_mx)
Definition: constants.c:2238
const char * gf_pixel_fmt_name(GF_PixelFormat pfmt)
Definition: constants.c:1196
u32 gf_audio_fmt_get_cicp_from_name(const char *name)
Definition: constants.c:988
const char * gf_audio_fmt_all_names()
Definition: constants.c:687
const char * gf_cicp_color_primaries_all_names()
Definition: constants.c:2121
@ GF_PROP_CICP_COL_TFC
Definition: filters.h:922
@ GF_PROP_CICP_COL_MX
Definition: filters.h:924
@ GF_PROP_PIXFMT
Definition: filters.h:916
@ GF_PROP_CICP_LAYOUT
Definition: filters.h:926
@ GF_PROP_CICP_COL_PRIM
Definition: filters.h:920
@ GF_PROP_PCMFMT
Definition: filters.h:918

◆ PropTypes

GF_PropTypeDef PropTypes[]

◆ GF_BuiltInProps

GF_BuiltInProperty GF_BuiltInProps[]

◆ gf_num_props

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