GPAC
Open Source Multimedia Framework. For more information, check out http://gpac.wp.mines-telecom.fr
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups
scene_dump.c File Reference
#include <gpac/scene_manager.h>
#include <gpac/constants.h>
#include <gpac/utf.h>
#include <gpac/internal/scenegraph_dev.h>
#include <gpac/nodes_x3d.h>
#include <gpac/nodes_svg.h>
#include <gpac/events.h>
#include <gpac/base_coding.h>
#include <wchar.h>
#include "../bifs/quant.h"
+ Include dependency graph for scene_dump.c:

Data Structures

struct  GF_SceneDumper
 

Macros

#define DUMP_IND(sdump)
 

Functions

static GF_Err gf_dump_vrml_route (GF_SceneDumper *sdump, GF_Route *r, u32 dump_type)
 
static void gf_dump_vrml_node (GF_SceneDumper *sdump, GF_Node *node, Bool in_list, char *fieldContainer)
 
void gf_dump_svg_element (GF_SceneDumper *sdump, GF_Node *n, GF_Node *parent, Bool is_root)
 
GF_Err gf_sm_dump_command_list (GF_SceneDumper *sdump, GF_List *comList, u32 indent, Bool skip_first_replace)
 
GF_SceneDumper * gf_sm_dumper_new (GF_SceneGraph *graph, char *_rad_name, char indent_char, u32 dump_mode)
 
void gf_sm_dumper_set_extra_graph (GF_SceneDumper *sdump, GF_SceneGraph *extra)
 
void gf_sm_dumper_del (GF_SceneDumper *sdump)
 
char * gf_sm_dump_get_name (GF_SceneDumper *bd)
 
static void gf_dump_setup (GF_SceneDumper *sdump, GF_Descriptor *root_od)
 
static void gf_dump_finalize (GF_SceneDumper *sdump, GF_Descriptor *root_od)
 
static Bool gf_dump_vrml_is_def_node (GF_SceneDumper *sdump, GF_Node *node)
 
static GF_Nodegf_dump_find_node (GF_SceneDumper *sdump, u32 ID)
 
static void StartElement (GF_SceneDumper *sdump, const char *name)
 
static void EndElementHeader (GF_SceneDumper *sdump, Bool has_sub_el)
 
static void EndElement (GF_SceneDumper *sdump, const char *name, Bool had_sub_el)
 
static void StartAttribute (GF_SceneDumper *sdump, const char *name)
 
static void EndAttribute (GF_SceneDumper *sdump)
 
static void StartList (GF_SceneDumper *sdump, const char *name)
 
static void EndList (GF_SceneDumper *sdump, const char *name)
 
static void scene_dump_utf_string (GF_SceneDumper *sdump, Bool escape_xml, char *str)
 
static void scene_dump_vrml_id (GF_SceneDumper *sdump, GF_Node *node)
 
static Bool scene_dump_vrml_find_route_name (GF_SceneDumper *sdump, u32 ID, const char **outName)
 
static void scene_dump_vrml_route_id (GF_SceneDumper *sdump, u32 routeID, char *rName)
 
static void gf_dump_vrml_sffield (GF_SceneDumper *sdump, u32 type, void *ptr, Bool is_mf, GF_Node *node)
 
static void gf_dump_vrml_simple_field (GF_SceneDumper *sdump, GF_FieldInfo field, GF_Node *parent)
 
static Bool gf_dump_vrml_needs_container (GF_Node *node, GF_FieldInfo *fi)
 
static void gf_dump_vrml_field (GF_SceneDumper *sdump, GF_Node *node, GF_FieldInfo field)
 
static const char * GetXMTFieldTypeName (u32 fieldType)
 
static const char * GetXMTFieldTypeValueName (u32 fieldType)
 
static const char * SD_GetQuantCatName (u32 QP_Type)
 
static void gf_dump_vrml_dyn_field (GF_SceneDumper *sdump, GF_Node *node, GF_FieldInfo field, Bool has_sublist)
 
static void gf_dump_vrml_proto_field (GF_SceneDumper *sdump, GF_Node *node, GF_FieldInfo field)
 
static GF_Route * gf_dump_vrml_get_IS (GF_SceneDumper *sdump, GF_Node *node, GF_FieldInfo *field)
 
static void gf_dump_vrml_IS_field (GF_SceneDumper *sdump, GF_Node *node, GF_FieldInfo field, Bool isScript, Bool skip_is)
 
static Bool scene_dump_vrml_can_dump (GF_SceneDumper *sdump, GF_Node *node)
 
static GF_Err DumpMultipleIndexedReplace (GF_SceneDumper *sdump, GF_Command *com)
 
static GF_Err DumpMultipleReplace (GF_SceneDumper *sdump, GF_Command *com)
 
static GF_Err DumpGlobalQP (GF_SceneDumper *sdump, GF_Command *com)
 
static GF_Err DumpNodeInsert (GF_SceneDumper *sdump, GF_Command *com)
 
static GF_Err DumpRouteInsert (GF_SceneDumper *sdump, GF_Command *com, Bool is_scene_replace)
 
static GF_Err DumpIndexInsert (GF_SceneDumper *sdump, GF_Command *com)
 
static GF_Err DumpIndexDelete (GF_SceneDumper *sdump, GF_Command *com)
 
static GF_Err DumpNodeDelete (GF_SceneDumper *sdump, GF_Command *com)
 
static GF_Err DumpRouteDelete (GF_SceneDumper *sdump, GF_Command *com)
 
static GF_Err DumpNodeReplace (GF_SceneDumper *sdump, GF_Command *com)
 
static GF_Err DumpFieldReplace (GF_SceneDumper *sdump, GF_Command *com)
 
static GF_Err DumpIndexReplace (GF_SceneDumper *sdump, GF_Command *com)
 
static GF_Err DumpXReplace (GF_SceneDumper *sdump, GF_Command *com)
 
static GF_Err DumpRouteReplace (GF_SceneDumper *sdump, GF_Command *com)
 
static GF_Err DumpProtos (GF_SceneDumper *sdump, GF_List *protoList)
 
static GF_Err DumpSceneReplace (GF_SceneDumper *sdump, GF_Command *com)
 
static GF_Err DumpProtoInsert (GF_SceneDumper *sdump, GF_Command *com)
 
static char * lsr_format_node_id (GF_Node *n, u32 NodeID, char *str)
 
static char * sd_get_lsr_namespace (GF_SceneGraph *sg)
 
static GF_Err DumpLSRNewScene (GF_SceneDumper *sdump, GF_Command *com)
 
static GF_Err DumpLSRAddReplaceInsert (GF_SceneDumper *sdump, GF_Command *com)
 
static GF_Err DumpLSRClean (GF_SceneDumper *sdump, GF_Command *com)
 
static GF_Err DumpLSRDelete (GF_SceneDumper *sdump, GF_Command *com)
 
static GF_Err DumpLSRRestore (GF_SceneDumper *sdump, GF_Command *com)
 
static GF_Err DumpLSRSave (GF_SceneDumper *sdump, GF_Command *com)
 
static GF_Err DumpLSRSendEvent (GF_SceneDumper *sdump, GF_Command *com)
 
static GF_Err DumpLSRActivate (GF_SceneDumper *sdump, GF_Command *com)
 
static void gf_sm_dump_saf_hdr (GF_SceneDumper *dumper, char *unit_name, u64 au_time, Bool is_rap)
 
static void dump_od_to_saf (GF_SceneDumper *dumper, GF_AUContext *au, u32 indent)
 
static GF_Err SD_DumpDOMElement (GF_SceneDumper *sdump, GF_DOMFullNode *node)
 
GF_Err gf_sm_dump_graph (GF_SceneDumper *sdump, Bool skip_proto, Bool skip_routes)
 
static void ReorderAUContext (GF_List *sample_list, GF_AUContext *au, Bool lsr_dump)
 
GF_Err gf_sm_dump (GF_SceneManager *ctx, char *rad_name, u32 dump_mode)
 

Variables

static char szLSRName [1024]
 

Data Structure Documentation

struct _scenedump
+ Collaboration diagram for GF_SceneDumper:
Data Fields
GF_SceneGraph * sg
GF_Proto * current_proto
FILE * trace
u32 indent
char * filename
u32 dump_mode
u16 CurrentESID
u8 ind_char
Bool XMLDump
Bool X3DDump
Bool LSRDump
GF_List * dump_nodes
GF_List * mem_def_nodes
Bool skip_scene_replace
GF_List * current_com_list
GF_List * inserted_routes
Bool in_text

Macro Definition Documentation

#define DUMP_IND (   sdump)
Value:
if (sdump->trace) { \
u32 z; \
for (z=0; z<sdump->indent; z++) fprintf(sdump->trace, "%c", sdump->ind_char); \
}
uint32_t u32
Definition: setup.h:246

Function Documentation

static GF_Err gf_dump_vrml_route ( GF_SceneDumper *  sdump,
GF_Route *  r,
u32  dump_type 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void gf_dump_vrml_node ( GF_SceneDumper *  sdump,
GF_Node node,
Bool  in_list,
char *  fieldContainer 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void gf_dump_svg_element ( GF_SceneDumper *  sdump,
GF_Node n,
GF_Node parent,
Bool  is_root 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Err gf_sm_dump_command_list ( GF_SceneDumper *  sdump,
GF_List *  comList,
u32  indent,
Bool  skip_first_replace 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_SceneDumper* gf_sm_dumper_new ( GF_SceneGraph *  graph,
char *  _rad_name,
char  indent_char,
u32  dump_mode 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void gf_sm_dumper_set_extra_graph ( GF_SceneDumper *  sdump,
GF_SceneGraph *  extra 
)

+ Here is the caller graph for this function:

void gf_sm_dumper_del ( GF_SceneDumper *  sdump)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

char* gf_sm_dump_get_name ( GF_SceneDumper *  bd)

+ Here is the caller graph for this function:

static void gf_dump_setup ( GF_SceneDumper *  sdump,
GF_Descriptor root_od 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void gf_dump_finalize ( GF_SceneDumper *  sdump,
GF_Descriptor root_od 
)
static

+ Here is the caller graph for this function:

static Bool gf_dump_vrml_is_def_node ( GF_SceneDumper *  sdump,
GF_Node node 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static GF_Node* gf_dump_find_node ( GF_SceneDumper *  sdump,
u32  ID 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void StartElement ( GF_SceneDumper *  sdump,
const char *  name 
)
static

+ Here is the caller graph for this function:

static void EndElementHeader ( GF_SceneDumper *  sdump,
Bool  has_sub_el 
)
static

+ Here is the caller graph for this function:

static void EndElement ( GF_SceneDumper *  sdump,
const char *  name,
Bool  had_sub_el 
)
static

+ Here is the caller graph for this function:

static void StartAttribute ( GF_SceneDumper *  sdump,
const char *  name 
)
static

+ Here is the caller graph for this function:

static void EndAttribute ( GF_SceneDumper *  sdump)
static

+ Here is the caller graph for this function:

static void StartList ( GF_SceneDumper *  sdump,
const char *  name 
)
static

+ Here is the caller graph for this function:

static void EndList ( GF_SceneDumper *  sdump,
const char *  name 
)
static

+ Here is the caller graph for this function:

static void scene_dump_utf_string ( GF_SceneDumper *  sdump,
Bool  escape_xml,
char *  str 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void scene_dump_vrml_id ( GF_SceneDumper *  sdump,
GF_Node node 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static Bool scene_dump_vrml_find_route_name ( GF_SceneDumper *  sdump,
u32  ID,
const char **  outName 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void scene_dump_vrml_route_id ( GF_SceneDumper *  sdump,
u32  routeID,
char *  rName 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void gf_dump_vrml_sffield ( GF_SceneDumper *  sdump,
u32  type,
void *  ptr,
Bool  is_mf,
GF_Node node 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void gf_dump_vrml_simple_field ( GF_SceneDumper *  sdump,
GF_FieldInfo  field,
GF_Node parent 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static Bool gf_dump_vrml_needs_container ( GF_Node node,
GF_FieldInfo fi 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void gf_dump_vrml_field ( GF_SceneDumper *  sdump,
GF_Node node,
GF_FieldInfo  field 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static const char* GetXMTFieldTypeName ( u32  fieldType)
static

+ Here is the caller graph for this function:

static const char* GetXMTFieldTypeValueName ( u32  fieldType)
static

+ Here is the caller graph for this function:

static const char* SD_GetQuantCatName ( u32  QP_Type)
static

+ Here is the caller graph for this function:

static void gf_dump_vrml_dyn_field ( GF_SceneDumper *  sdump,
GF_Node node,
GF_FieldInfo  field,
Bool  has_sublist 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void gf_dump_vrml_proto_field ( GF_SceneDumper *  sdump,
GF_Node node,
GF_FieldInfo  field 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static GF_Route* gf_dump_vrml_get_IS ( GF_SceneDumper *  sdump,
GF_Node node,
GF_FieldInfo field 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void gf_dump_vrml_IS_field ( GF_SceneDumper *  sdump,
GF_Node node,
GF_FieldInfo  field,
Bool  isScript,
Bool  skip_is 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static Bool scene_dump_vrml_can_dump ( GF_SceneDumper *  sdump,
GF_Node node 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static GF_Err DumpMultipleIndexedReplace ( GF_SceneDumper *  sdump,
GF_Command com 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static GF_Err DumpMultipleReplace ( GF_SceneDumper *  sdump,
GF_Command com 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static GF_Err DumpGlobalQP ( GF_SceneDumper *  sdump,
GF_Command com 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static GF_Err DumpNodeInsert ( GF_SceneDumper *  sdump,
GF_Command com 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static GF_Err DumpRouteInsert ( GF_SceneDumper *  sdump,
GF_Command com,
Bool  is_scene_replace 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static GF_Err DumpIndexInsert ( GF_SceneDumper *  sdump,
GF_Command com 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static GF_Err DumpIndexDelete ( GF_SceneDumper *  sdump,
GF_Command com 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static GF_Err DumpNodeDelete ( GF_SceneDumper *  sdump,
GF_Command com 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static GF_Err DumpRouteDelete ( GF_SceneDumper *  sdump,
GF_Command com 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static GF_Err DumpNodeReplace ( GF_SceneDumper *  sdump,
GF_Command com 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static GF_Err DumpFieldReplace ( GF_SceneDumper *  sdump,
GF_Command com 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static GF_Err DumpIndexReplace ( GF_SceneDumper *  sdump,
GF_Command com 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static GF_Err DumpXReplace ( GF_SceneDumper *  sdump,
GF_Command com 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static GF_Err DumpRouteReplace ( GF_SceneDumper *  sdump,
GF_Command com 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static GF_Err DumpProtos ( GF_SceneDumper *  sdump,
GF_List *  protoList 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static GF_Err DumpSceneReplace ( GF_SceneDumper *  sdump,
GF_Command com 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static GF_Err DumpProtoInsert ( GF_SceneDumper *  sdump,
GF_Command com 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static char* lsr_format_node_id ( GF_Node n,
u32  NodeID,
char *  str 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static char* sd_get_lsr_namespace ( GF_SceneGraph *  sg)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static GF_Err DumpLSRNewScene ( GF_SceneDumper *  sdump,
GF_Command com 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static GF_Err DumpLSRAddReplaceInsert ( GF_SceneDumper *  sdump,
GF_Command com 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static GF_Err DumpLSRClean ( GF_SceneDumper *  sdump,
GF_Command com 
)
static

+ Here is the caller graph for this function:

static GF_Err DumpLSRDelete ( GF_SceneDumper *  sdump,
GF_Command com 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static GF_Err DumpLSRRestore ( GF_SceneDumper *  sdump,
GF_Command com 
)
static

+ Here is the caller graph for this function:

static GF_Err DumpLSRSave ( GF_SceneDumper *  sdump,
GF_Command com 
)
static

+ Here is the caller graph for this function:

static GF_Err DumpLSRSendEvent ( GF_SceneDumper *  sdump,
GF_Command com 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static GF_Err DumpLSRActivate ( GF_SceneDumper *  sdump,
GF_Command com 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void gf_sm_dump_saf_hdr ( GF_SceneDumper *  dumper,
char *  unit_name,
u64  au_time,
Bool  is_rap 
)
static

+ Here is the caller graph for this function:

static void dump_od_to_saf ( GF_SceneDumper *  dumper,
GF_AUContext au,
u32  indent 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static GF_Err SD_DumpDOMElement ( GF_SceneDumper *  sdump,
GF_DOMFullNode node 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Err gf_sm_dump_graph ( GF_SceneDumper *  sdump,
Bool  skip_proto,
Bool  skip_routes 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void ReorderAUContext ( GF_List *  sample_list,
GF_AUContext au,
Bool  lsr_dump 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Err gf_sm_dump ( GF_SceneManager ctx,
char *  rad_name,
u32  dump_mode 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

char szLSRName[1024]
static