libgpac
Documentation of the core library of GPAC
validator.c File Reference
+ Include dependency graph for validator.c:

Data Structures

struct  GF_Validator
 

Functions

static void validator_xvs_close (GF_Validator *validator)
 
static Bool validator_xvs_next (GF_Validator *validator, Bool reverse)
 
static void validator_xvs_add_snapshot_node (GF_Validator *validator, const char *filename, u32 scene_time)
 
static char * validator_get_snapshot_name (GF_Validator *validator, Bool is_reference, u32 number)
 
static char * validator_create_snapshot (GF_Validator *validator)
 
static GF_Err validator_file_dec (char *png_filename, u32 *hint_codecid, u32 *width, u32 *height, u32 *pixel_format, char **dst, u32 *dst_size)
 
static Bool validator_compare_snapshots (GF_Validator *validator)
 
static void validator_on_video_frame (void *udta, u32 time)
 
static void validator_on_video_reconfig (void *udta, u32 width, u32 height, u8 bpp)
 
Bool validator_on_event_play (void *udta, GF_Event *event, Bool consumed_by_compositor)
 
static void validator_xvs_add_event_dom (GF_Validator *validator, GF_Event *event)
 
Bool validator_on_event_record (void *udta, GF_Event *event, Bool consumed_by_compositor)
 
static void validator_xvl_open (GF_Validator *validator)
 
static void validator_xvl_close (GF_Validator *validator)
 
static void validator_xvl_get_next_xvs (GF_Validator *validator, Bool reverse)
 
static Bool validator_xvs_open (GF_Validator *validator)
 
static void validator_test_open (GF_Validator *validator)
 
static Bool validator_load_event (GF_Validator *validator)
 
static Bool validator_process (GF_CompositorExt *termext, u32 action, void *param)
 
GF_CompositorExt * validator_new ()
 
void validator_delete (GF_BaseInterface *ifce)
 
GPAC_MODULE_EXPORT const u32QueryInterfaces ()
 
GPAC_MODULE_EXPORT GF_BaseInterfaceLoadInterface (u32 InterfaceType)
 
GPAC_MODULE_EXPORT void ShutdownInterface (GF_BaseInterface *ifce)
 

Variables

static GF_GPACArg ValidatorArgs []
 

Data Structure Documentation

◆ GF_Validator

struct GF_Validator
+ Collaboration diagram for GF_Validator:
Data Fields
GF_Compositor * compositor
Bool is_recording
Bool trace_mode
GF_ObjectManager * root_odm
Bool next_event_snapshot
GF_Event next_event
u32 xvs_event_index
u32 next_time
Bool evt_loaded
GF_VideoListener video_listener
char * xvl_filename
GF_DOMParser * xvl_parser
GF_XMLNode * xvl_node
GF_XMLNode * xvs_node_in_xvl
u32 xvl_node_index
char * xvs_filename
GF_DOMParser * xvs_parser
GF_XMLNode * xvs_node
Bool xvs_result
Bool owns_root
char * test_base
char * test_filename
Bool snapshot_next_frame
u32 snapshot_number
GF_FSEventListener evt_filter

Function Documentation

◆ validator_xvs_close()

static void validator_xvs_close ( GF_Validator validator)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ validator_xvs_next()

static Bool validator_xvs_next ( GF_Validator validator,
Bool  reverse 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ validator_xvs_add_snapshot_node()

static void validator_xvs_add_snapshot_node ( GF_Validator validator,
const char *  filename,
u32  scene_time 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ validator_get_snapshot_name()

static char* validator_get_snapshot_name ( GF_Validator validator,
Bool  is_reference,
u32  number 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ validator_create_snapshot()

static char* validator_create_snapshot ( GF_Validator validator)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ validator_file_dec()

static GF_Err validator_file_dec ( char *  png_filename,
u32 hint_codecid,
u32 width,
u32 height,
u32 pixel_format,
char **  dst,
u32 dst_size 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ validator_compare_snapshots()

static Bool validator_compare_snapshots ( GF_Validator validator)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ validator_on_video_frame()

static void validator_on_video_frame ( void *  udta,
u32  time 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ validator_on_video_reconfig()

static void validator_on_video_reconfig ( void *  udta,
u32  width,
u32  height,
u8  bpp 
)
static
+ Here is the caller graph for this function:

◆ validator_on_event_play()

Bool validator_on_event_play ( void *  udta,
GF_Event event,
Bool  consumed_by_compositor 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ validator_xvs_add_event_dom()

static void validator_xvs_add_event_dom ( GF_Validator validator,
GF_Event event 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ validator_on_event_record()

Bool validator_on_event_record ( void *  udta,
GF_Event event,
Bool  consumed_by_compositor 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ validator_xvl_open()

static void validator_xvl_open ( GF_Validator validator)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ validator_xvl_close()

static void validator_xvl_close ( GF_Validator validator)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ validator_xvl_get_next_xvs()

static void validator_xvl_get_next_xvs ( GF_Validator validator,
Bool  reverse 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ validator_xvs_open()

static Bool validator_xvs_open ( GF_Validator validator)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ validator_test_open()

static void validator_test_open ( GF_Validator validator)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ validator_load_event()

static Bool validator_load_event ( GF_Validator validator)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ validator_process()

static Bool validator_process ( GF_CompositorExt *  termext,
u32  action,
void *  param 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ validator_new()

GF_CompositorExt* validator_new ( )
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ validator_delete()

void validator_delete ( GF_BaseInterface ifce)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ QueryInterfaces()

GPAC_MODULE_EXPORT const u32* QueryInterfaces ( )

◆ LoadInterface()

GPAC_MODULE_EXPORT GF_BaseInterface* LoadInterface ( u32  InterfaceType)
+ Here is the call graph for this function:

◆ ShutdownInterface()

GPAC_MODULE_EXPORT void ShutdownInterface ( GF_BaseInterface ifce)
+ Here is the call graph for this function:

Variable Documentation

◆ ValidatorArgs

GF_GPACArg ValidatorArgs[]
static
Initial value:
= {
GF_DEF_ARG("mode", NULL, "operationg mode\n"
"- play: replay events\n"
"- record: record events\n"
"- disable: disable validator", NULL, NULL, GF_ARG_STRING, 0),
GF_DEF_ARG("xvl", NULL, "filename for XVL", NULL, NULL, GF_ARG_STRING, 0),
GF_DEF_ARG("xvs", NULL, "filename for XVS", NULL, NULL, GF_ARG_STRING, 0),
GF_DEF_ARG("trace", NULL, "filename for event trace", NULL, NULL, GF_ARG_STRING, 0),
{0},
}
#define GF_ARG_STRING
Definition: main.h:155
#define GF_DEF_ARG(_a, _b, _c, _d, _e, _f, _g)
Definition: main.h:166