libgpac
Documentation of the core library of GPAC
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_EXPORT GF_SceneDumper * gf_sm_dumper_new (GF_SceneGraph *graph, char *_rad_name, Bool is_final_name, char indent_char, GF_SceneDumpFormat dump_mode)
 
GF_EXPORT void gf_sm_dumper_set_extra_graph (GF_SceneDumper *sdump, GF_SceneGraph *extra)
 
GF_EXPORT 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 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 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 DumpLSRDelete (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)
 
GF_EXPORT GF_Err gf_sm_dump_command_list (GF_SceneDumper *sdump, GF_List *comList, u32 indent, Bool skip_first_replace)
 
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_EXPORT 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_EXPORT GF_Err gf_sm_dump (GF_SceneManager *ctx, char *rad_name, Bool is_final_name, GF_SceneDumpFormat dump_mode)
 

Variables

static char szLSRName [1024]
 

Data Structure Documentation

◆ _scenedump

struct _scenedump

Scenegraph dumper

Data Fields
GF_SceneGraph * sg
GF_Proto * current_proto
FILE * trace
u32 indent
char * filename
GF_SceneDumpFormat 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

◆ DUMP_IND

#define DUMP_IND (   sdump)
Value:
if (sdump->trace) { \
u32 z; \
for (z=0; z<sdump->indent; z++) gf_fprintf(sdump->trace, "%c", sdump->ind_char); \
}
int gf_fprintf(FILE *stream, const char *format,...)
file writing helper
Definition: os_file.c:1793

Function Documentation

◆ gf_dump_vrml_route()

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:

◆ gf_dump_vrml_node()

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:

◆ gf_dump_svg_element()

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_dump_setup()

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:

◆ gf_dump_finalize()

static void gf_dump_finalize ( GF_SceneDumper *  sdump,
GF_Descriptor root_od 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_dump_vrml_is_def_node()

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:

◆ gf_dump_find_node()

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:

◆ StartElement()

static void StartElement ( GF_SceneDumper *  sdump,
const char *  name 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ EndElementHeader()

static void EndElementHeader ( GF_SceneDumper *  sdump,
Bool  has_sub_el 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ EndElement()

static void EndElement ( GF_SceneDumper *  sdump,
const char *  name,
Bool  had_sub_el 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ StartAttribute()

static void StartAttribute ( GF_SceneDumper *  sdump,
const char *  name 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ EndAttribute()

static void EndAttribute ( GF_SceneDumper *  sdump)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ StartList()

static void StartList ( GF_SceneDumper *  sdump,
const char *  name 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ EndList()

static void EndList ( GF_SceneDumper *  sdump,
const char *  name 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ scene_dump_utf_string()

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:

◆ scene_dump_vrml_id()

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:

◆ scene_dump_vrml_find_route_name()

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:

◆ scene_dump_vrml_route_id()

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:

◆ gf_dump_vrml_sffield()

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:

◆ gf_dump_vrml_simple_field()

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:

◆ gf_dump_vrml_field()

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:

◆ GetXMTFieldTypeName()

static const char* GetXMTFieldTypeName ( u32  fieldType)
static
+ Here is the caller graph for this function:

◆ GetXMTFieldTypeValueName()

static const char* GetXMTFieldTypeValueName ( u32  fieldType)
static
+ Here is the caller graph for this function:

◆ gf_dump_vrml_dyn_field()

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:

◆ gf_dump_vrml_proto_field()

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:

◆ gf_dump_vrml_get_IS()

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:

◆ gf_dump_vrml_IS_field()

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:

◆ scene_dump_vrml_can_dump()

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:

◆ DumpMultipleIndexedReplace()

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:

◆ DumpMultipleReplace()

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:

◆ DumpGlobalQP()

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:

◆ DumpNodeInsert()

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:

◆ DumpRouteInsert()

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:

◆ DumpIndexInsert()

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:

◆ DumpIndexDelete()

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:

◆ DumpNodeDelete()

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:

◆ DumpRouteDelete()

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:

◆ DumpNodeReplace()

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:

◆ DumpFieldReplace()

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:

◆ DumpIndexReplace()

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:

◆ DumpXReplace()

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:

◆ DumpRouteReplace()

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:

◆ DumpProtos()

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:

◆ DumpSceneReplace()

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:

◆ DumpProtoInsert()

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:

◆ lsr_format_node_id()

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:

◆ sd_get_lsr_namespace()

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:

◆ DumpLSRNewScene()

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:

◆ DumpLSRAddReplaceInsert()

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:

◆ DumpLSRDelete()

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:

◆ DumpLSRSendEvent()

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:

◆ DumpLSRActivate()

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:

◆ gf_sm_dump_saf_hdr()

static void gf_sm_dump_saf_hdr ( GF_SceneDumper *  dumper,
char *  unit_name,
u64  au_time,
Bool  is_rap 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ dump_od_to_saf()

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:

◆ SD_DumpDOMElement()

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:

◆ ReorderAUContext()

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:

Variable Documentation

◆ szLSRName

char szLSRName[1024]
static