f 137 applications/dashcast/controler.c FILE *f; f 163 applications/dashcast/controler.c f = gf_fopen(name, "w"); f 174 applications/dashcast/controler.c fprintf(f, "<?xml version=\"1.0\"?>\n"); f 175 applications/dashcast/controler.c fprintf(f, "<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\" profiles=\"urn:mpeg:dash:profile:full:2011\" minBufferTime=\"PT%fS\"", cmddata->min_buffer_time); f 178 applications/dashcast/controler.c fprintf(f, " type=\"static\" mediaPresentationDuration=\"%s\"", presentation_duration); f 180 applications/dashcast/controler.c fprintf(f, " type=\"dynamic\" availabilityStartTime=\"%s\"", availability_start_time); f 181 applications/dashcast/controler.c if (time_shift) fprintf(f, " timeShiftBufferDepth=\"%s\"", time_shift); f 184 applications/dashcast/controler.c fprintf(f, " minimumUpdatePeriod=\"PT%dS\"", cmddata->minimum_update_period); f 189 applications/dashcast/controler.c fprintf(f, " publishTime=\"%d-%02d-%02dT%02d:%02d:%02dZ\"", 1900+t->tm_year, t->tm_mon+1, t->tm_mday, t->tm_hour, t->tm_min, t->tm_sec); f 193 applications/dashcast/controler.c fprintf(f, ">\n"); f 195 applications/dashcast/controler.c fprintf(f, f 201 applications/dashcast/controler.c fprintf(f, " <BaseURL>%s</BaseURL>\n", cmddata->base_url); f 204 applications/dashcast/controler.c fprintf(f, " <Period start=\"PT0H0M0.000S\" id=\"P1\">\n"); f 207 applications/dashcast/controler.c fprintf(f, " <AdaptationSet segmentAlignment=\"true\" bitstreamSwitching=\"false\">\n"); f 209 applications/dashcast/controler.c fprintf(f, f 213 applications/dashcast/controler.c fprintf(f, f 219 applications/dashcast/controler.c fprintf(f, " availabilityTimeOffset=\"%g\"", -ast_offset/1000.0); f 221 applications/dashcast/controler.c fprintf(f, "/>\n"); f 227 applications/dashcast/controler.c fprintf(f, f 233 applications/dashcast/controler.c fprintf(f, " </AdaptationSet>\n"); f 237 applications/dashcast/controler.c fprintf(f, " <AdaptationSet segmentAlignment=\"true\" bitstreamSwitching=\"false\">\n"); f 239 applications/dashcast/controler.c fprintf(f, f 246 applications/dashcast/controler.c fprintf(f, " availabilityTimeOffset=\"%g\"", -ast_offset/1000.0); f 248 applications/dashcast/controler.c fprintf(f, "/>\n"); f 252 applications/dashcast/controler.c fprintf(f, " <Representation id=\"%s\" mimeType=\"video/mp4\" codecs=\"%s\" " f 260 applications/dashcast/controler.c fprintf(f, " </AdaptationSet>\n"); f 263 applications/dashcast/controler.c fprintf(f, " </Period>\n"); f 265 applications/dashcast/controler.c fprintf(f, "</MPD>\n"); f 267 applications/dashcast/controler.c gf_fclose(f); f 210 applications/generators/MPEG4/main.c FILE *f; f 232 applications/generators/MPEG4/main.c f = gf_fopen(sPath, "wt"); f 233 applications/generators/MPEG4/main.c fprintf(f, "%s\n", cprt); f 240 applications/generators/MPEG4/main.c fprintf(f, "\n/*\n\tDO NOT MOFIFY - File generated on GMT %s\n\tBY MPEG4Gen for GPAC Version %s\n*/\n\n", asctime(gmtime(&rawtime)), GPAC_VERSION); f 244 applications/generators/MPEG4/main.c fprintf(f, "#ifndef _%s_H\n", name); f 245 applications/generators/MPEG4/main.c fprintf(f, "#define _%s_H\n\n", name); f 247 applications/generators/MPEG4/main.c fprintf(f, "#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n"); f 250 applications/generators/MPEG4/main.c return f; f 253 applications/generators/MPEG4/main.c void EndFile(FILE *f, char *name, u32 type) f 257 applications/generators/MPEG4/main.c fprintf(f, "#ifdef __cplusplus\n}\n#endif\n\n"); f 259 applications/generators/MPEG4/main.c fprintf(f, "\n\n#endif\t\t/*_%s_H*/\n\n", name); f 261 applications/generators/MPEG4/main.c gf_fclose(f); f 278 applications/generators/MPEG4/main.c FILE *f; f 285 applications/generators/MPEG4/main.c f = BeginFile("nodes_mpeg4", 0); f 287 applications/generators/MPEG4/main.c fprintf(f, "#include <gpac/scenegraph_vrml.h>\n\n"); f 288 applications/generators/MPEG4/main.c fprintf(f, "#ifndef GPAC_DISABLE_VRML\n\n"); f 292 applications/generators/MPEG4/main.c fprintf(f, "\n\nenum {\n"); f 297 applications/generators/MPEG4/main.c fprintf(f, ",\n\tTAG_MPEG4_%s", n->name); f 299 applications/generators/MPEG4/main.c fprintf(f, "\tTAG_MPEG4_%s = GF_NODE_RANGE_FIRST_MPEG4", n->name); f 301 applications/generators/MPEG4/main.c fprintf(f, ",\n\tTAG_LastImplementedMPEG4\n};\n\n"); f 307 applications/generators/MPEG4/main.c fprintf(f, "typedef struct _tag%s\n{\n", n->name); f 308 applications/generators/MPEG4/main.c fprintf(f, "\tBASE_NODE\n"); f 315 applications/generators/MPEG4/main.c fprintf(f, "\tVRML_CHILDREN\n"); f 329 applications/generators/MPEG4/main.c fprintf(f, "\tGF_Node *%s;\t/*eventIn*/\n",bf->name); f 331 applications/generators/MPEG4/main.c fprintf(f, "\t%s %s;\t/*eventIn*/\n", bf->familly, bf->name); f 333 applications/generators/MPEG4/main.c fprintf(f, "\tvoid (*on_%s)(GF_Node *pThis, struct _route *route);\t/*eventInHandler*/\n", bf->name); f 339 applications/generators/MPEG4/main.c fprintf(f, "\t%s %s;\t/*eventOut*/\n", bf->familly, bf->name); f 343 applications/generators/MPEG4/main.c fprintf(f, "\tGF_Node *%s;\t/*%s*/\n", bf->name, bf->type); f 346 applications/generators/MPEG4/main.c fprintf(f, "\tGF_ChildNodeItem *%s;\t/*%s*/\n", bf->name, bf->type); f 349 applications/generators/MPEG4/main.c fprintf(f, "\t%s %s;\t/*%s*/\n", bf->familly, bf->name, bf->type); f 353 applications/generators/MPEG4/main.c fprintf(f, "\t/*GPAC private*/\n"); f 354 applications/generators/MPEG4/main.c fprintf(f, "\tu8 *data;\n"); f 355 applications/generators/MPEG4/main.c fprintf(f, "\tu32 data_len;\n"); f 358 applications/generators/MPEG4/main.c fprintf(f, "\t/*GPAC private*/\n"); f 359 applications/generators/MPEG4/main.c fprintf(f, "\tu32 buffer_len;\n"); f 361 applications/generators/MPEG4/main.c fprintf(f, "} M_%s;\n\n\n", n->name); f 367 applications/generators/MPEG4/main.c fprintf(f, "/*NodeDataType tags*/\nenum {\n"); f 371 applications/generators/MPEG4/main.c fprintf(f, "\tNDT_%s = 1", NDTName); f 373 applications/generators/MPEG4/main.c fprintf(f, ",\n\tNDT_%s", NDTName); f 379 applications/generators/MPEG4/main.c if (!hasViewport) fprintf(f, ",\n\tNDT_SFViewportNode"); f 380 applications/generators/MPEG4/main.c fprintf(f, "\n};\n\n"); f 383 applications/generators/MPEG4/main.c fprintf(f, "/*All BIFS versions handled*/\n"); f 384 applications/generators/MPEG4/main.c fprintf(f, "#define GF_BIFS_NUM_VERSION\t\t%d\n\n", NumVersions); f 385 applications/generators/MPEG4/main.c fprintf(f, "enum {\n"); f 388 applications/generators/MPEG4/main.c fprintf(f, "\tGF_BIFS_V1 = 1,\n"); f 390 applications/generators/MPEG4/main.c fprintf(f, "\tGF_BIFS_V%d,\n", i+1); f 393 applications/generators/MPEG4/main.c fprintf(f, "\tGF_BIFS_LAST_VERSION = GF_BIFS_V%d\n};\n\n", i); f 394 applications/generators/MPEG4/main.c fprintf(f, "\n\n"); f 395 applications/generators/MPEG4/main.c fprintf(f, "#endif /*GPAC_DISABLE_VRML*/\n\n"); f 397 applications/generators/MPEG4/main.c EndFile(f, "nodes_mpeg4", 0); f 449 applications/generators/MPEG4/main.c void WriteNDT_H(FILE *f, GF_List *BNodes, GF_List *NDTs, u32 Version) f 456 applications/generators/MPEG4/main.c fprintf(f, "\n\n/* NDT BIFS Version %d */\n\n", Version); f 470 applications/generators/MPEG4/main.c fprintf(f, "#define %s_V%d_NUMBITS\t\t%d\n", NDTName, Version, GetBitsCount(count + ( (Version == 2) ? 1 : 0) ) ); f 471 applications/generators/MPEG4/main.c fprintf(f, "#define %s_V%d_Count\t%d\n\n", NDTName, Version, count); f 473 applications/generators/MPEG4/main.c fprintf(f, "static const u32 %s_V%d_TypeToTag[%d] = {\n", NDTName, Version, count); f 482 applications/generators/MPEG4/main.c fprintf(f, " TAG_MPEG4_%s", n->name); f 485 applications/generators/MPEG4/main.c fprintf(f, ", TAG_MPEG4_%s", n->name); f 488 applications/generators/MPEG4/main.c fprintf(f, "\n};\n\n"); f 492 applications/generators/MPEG4/main.c fprintf(f, "\nu32 NDT_V%d_GetNumBits(u32 NDT_Tag);\n", Version); f 493 applications/generators/MPEG4/main.c fprintf(f, "u32 NDT_V%d_GetNodeTag(u32 Context_NDT_Tag, u32 NodeType);\n", Version); f 494 applications/generators/MPEG4/main.c fprintf(f, "u32 NDT_V%d_GetNodeType(u32 NDT_Tag, u32 NodeTag);\n", Version); f 496 applications/generators/MPEG4/main.c fprintf(f, "\n\n"); f 504 applications/generators/MPEG4/main.c void WriteNDT_Dec(FILE *f, GF_List *BNodes, GF_List *NDTs, u32 Version) f 510 applications/generators/MPEG4/main.c fprintf(f, "\n\n\nu32 NDT_V%d_GetNodeTag(u32 Context_NDT_Tag, u32 NodeType)\n{\n\tif (!NodeType) return 0;\n", Version); f 513 applications/generators/MPEG4/main.c fprintf(f, "\t/* adjust according to the table version */\n"); f 515 applications/generators/MPEG4/main.c fprintf(f, "\t/* v2: 0 reserved for extensions, 1 reserved for protos */\n"); f 516 applications/generators/MPEG4/main.c fprintf(f, "\tif (NodeType == 1) return 0;\n"); f 517 applications/generators/MPEG4/main.c fprintf(f, "\tNodeType -= 2;\n"); f 519 applications/generators/MPEG4/main.c fprintf(f, "\t/* v%d: 0 reserved for extensions */\n", Version); f 520 applications/generators/MPEG4/main.c fprintf(f, "\tNodeType -= 1;\n"); f 523 applications/generators/MPEG4/main.c fprintf(f, "\tswitch (Context_NDT_Tag) {\n"); f 536 applications/generators/MPEG4/main.c fprintf(f, "\tcase NDT_%s:\n\t\tif (NodeType >= %s_V%d_Count) return 0;\n", NDTName, NDTName, Version); f 537 applications/generators/MPEG4/main.c fprintf(f, "\t\treturn %s_V%d_TypeToTag[NodeType];\n", NDTName, Version); f 539 applications/generators/MPEG4/main.c fprintf(f, "\tdefault:\n\t\treturn 0;\n\t}\n}"); f 542 applications/generators/MPEG4/main.c fprintf(f, "\n\n\nu32 NDT_V%d_GetNumBits(u32 NDT_Tag)\n{\n\tswitch (NDT_Tag) {\n", Version); f 555 applications/generators/MPEG4/main.c fprintf(f, "\tcase NDT_%s:\n\t\treturn %s_V%d_NUMBITS;\n", NDTName, NDTName, Version); f 558 applications/generators/MPEG4/main.c fprintf(f, "\tdefault:\n\t\treturn %d;\n\t}\n}\n\n", (Version==2) ? 1 : 0); f 562 applications/generators/MPEG4/main.c void WriteNDT_Enc(FILE *f, GF_List *BNodes, GF_List *NDTs, u32 Version) f 567 applications/generators/MPEG4/main.c fprintf(f, "u32 NDT_V%d_GetNodeType(u32 NDT_Tag, u32 NodeTag)\n{\n\tif(!NDT_Tag || !NodeTag) return 0;\n\tswitch(NDT_Tag) {\n", Version); f 577 applications/generators/MPEG4/main.c fprintf(f, "\tcase NDT_%s:\n\t\treturn ALL_GetNodeType(%s_V%d_TypeToTag, %s_V%d_Count, NodeTag, GF_BIFS_V%d);\n", NDTName, NDTName, Version, NDTName, Version, Version); f 579 applications/generators/MPEG4/main.c fprintf(f, "\tdefault:\n\t\treturn 0;\n\t}\n}\n\n"); f 584 applications/generators/MPEG4/main.c void WriteNodeFields(FILE *f, BNode *n) f 612 applications/generators/MPEG4/main.c fprintf(f, "static const u16 %s_Def2All[] = { ", n->name); f 617 applications/generators/MPEG4/main.c fprintf(f, "%d", i); f 620 applications/generators/MPEG4/main.c fprintf(f, ", %d", i); f 623 applications/generators/MPEG4/main.c fprintf(f, "};\n"); f 628 applications/generators/MPEG4/main.c fprintf(f, "static const u16 %s_In2All[] = { ", n->name); f 633 applications/generators/MPEG4/main.c fprintf(f, "%d", i); f 636 applications/generators/MPEG4/main.c fprintf(f, ", %d", i); f 639 applications/generators/MPEG4/main.c fprintf(f, "};\n"); f 644 applications/generators/MPEG4/main.c fprintf(f, "static const u16 %s_Out2All[] = { ", n->name); f 649 applications/generators/MPEG4/main.c fprintf(f, "%d", i); f 652 applications/generators/MPEG4/main.c fprintf(f, ", %d", i); f 655 applications/generators/MPEG4/main.c fprintf(f, "};\n"); f 660 applications/generators/MPEG4/main.c fprintf(f, "static const u16 %s_Dyn2All[] = { ", n->name); f 666 applications/generators/MPEG4/main.c fprintf(f, "%d", i); f 669 applications/generators/MPEG4/main.c fprintf(f, ", %d", i); f 672 applications/generators/MPEG4/main.c fprintf(f, "};\n"); f 681 applications/generators/MPEG4/main.c fprintf(f, "\nstatic u32 %s_get_field_count(GF_Node *node, u8 IndexMode)\n{\n", n->name); f 682 applications/generators/MPEG4/main.c fprintf(f, "\tswitch(IndexMode) {\n"); f 684 applications/generators/MPEG4/main.c fprintf(f, "\tcase GF_SG_FIELD_CODING_IN: return %d;\n", NbIn); f 685 applications/generators/MPEG4/main.c fprintf(f, "\tcase GF_SG_FIELD_CODING_DEF: return %d;\n", NbDef); f 686 applications/generators/MPEG4/main.c fprintf(f, "\tcase GF_SG_FIELD_CODING_OUT: return %d;\n", NbOut); f 687 applications/generators/MPEG4/main.c fprintf(f, "\tcase GF_SG_FIELD_CODING_DYN: return %d;\n", NbDyn); f 688 applications/generators/MPEG4/main.c fprintf(f, "\tdefault:\n"); f 689 applications/generators/MPEG4/main.c fprintf(f, "\t\treturn %d;\n", gf_list_count(n->Fields)); f 690 applications/generators/MPEG4/main.c fprintf(f, "\t}"); f 692 applications/generators/MPEG4/main.c fprintf(f, "\n}\n"); f 694 applications/generators/MPEG4/main.c fprintf(f, "\nstatic GF_Err %s_get_field_index(GF_Node *n, u32 inField, u8 IndexMode, u32 *allField)\n{\n", n->name); f 695 applications/generators/MPEG4/main.c fprintf(f, "\tswitch(IndexMode) {\n"); f 698 applications/generators/MPEG4/main.c fprintf(f, "\tcase GF_SG_FIELD_CODING_IN:\n"); f 699 applications/generators/MPEG4/main.c fprintf(f, "\t\t*allField = %s_In2All[inField];\n\t\treturn GF_OK;\n", n->name); f 702 applications/generators/MPEG4/main.c fprintf(f, "\tcase GF_SG_FIELD_CODING_DEF:\n"); f 703 applications/generators/MPEG4/main.c fprintf(f, "\t\t*allField = %s_Def2All[inField];\n\t\treturn GF_OK;\n", n->name); f 706 applications/generators/MPEG4/main.c fprintf(f, "\tcase GF_SG_FIELD_CODING_OUT:\n"); f 707 applications/generators/MPEG4/main.c fprintf(f, "\t\t*allField = %s_Out2All[inField];\n\t\treturn GF_OK;\n", n->name); f 710 applications/generators/MPEG4/main.c fprintf(f, "\tcase GF_SG_FIELD_CODING_DYN:\n"); f 711 applications/generators/MPEG4/main.c fprintf(f, "\t\t*allField = %s_Dyn2All[inField];\n\t\treturn GF_OK;\n", n->name); f 714 applications/generators/MPEG4/main.c fprintf(f, "\tdefault:\n"); f 715 applications/generators/MPEG4/main.c fprintf(f, "\t\treturn GF_BAD_PARAM;\n"); f 716 applications/generators/MPEG4/main.c fprintf(f, "\t}"); f 718 applications/generators/MPEG4/main.c fprintf(f, "\n}\n"); f 721 applications/generators/MPEG4/main.c fprintf(f, "static GF_Err %s_get_field(GF_Node *node, GF_FieldInfo *info)\n{\n\tswitch (info->fieldIndex) {\n", n->name); f 725 applications/generators/MPEG4/main.c fprintf(f, "\tcase %d:\n", i); f 727 applications/generators/MPEG4/main.c fprintf(f, "\t\tinfo->name = \"%s\";\n", (bf->name[0]=='_') ? bf->name+1 : bf->name); f 731 applications/generators/MPEG4/main.c fprintf(f, "\t\tinfo->eventType = GF_SG_EVENT_IN;\n"); f 732 applications/generators/MPEG4/main.c fprintf(f, "\t\tinfo->on_event_in = ((M_%s *)node)->on_%s;\n", n->name, bf->name); f 735 applications/generators/MPEG4/main.c fprintf(f, "\t\tinfo->eventType = GF_SG_EVENT_OUT;\n"); f 738 applications/generators/MPEG4/main.c fprintf(f, "\t\tinfo->eventType = GF_SG_EVENT_FIELD;\n"); f 741 applications/generators/MPEG4/main.c fprintf(f, "\t\tinfo->eventType = GF_SG_EVENT_EXPOSED_FIELD;\n"); f 746 applications/generators/MPEG4/main.c fprintf(f, "\t\tinfo->fieldType = GF_SG_VRML_MFNODE;\n"); f 748 applications/generators/MPEG4/main.c fprintf(f, "\t\tinfo->fieldType = GF_SG_VRML_SFNODE;\n"); f 751 applications/generators/MPEG4/main.c fprintf(f, "\t\tinfo->NDTtype = NDT_SF%s;\n", bf->familly+2); f 752 applications/generators/MPEG4/main.c fprintf(f, "\t\tinfo->far_ptr = & ((M_%s *)node)->%s;\n", n->name, bf->name); f 758 applications/generators/MPEG4/main.c fprintf(f, "\t\tinfo->fieldType = GF_SG_VRML_%s;\n", szName); f 759 applications/generators/MPEG4/main.c fprintf(f, "\t\tinfo->far_ptr = & ((M_%s *) node)->%s;\n", n->name, bf->name); f 761 applications/generators/MPEG4/main.c fprintf(f, "\t\treturn GF_OK;\n"); f 763 applications/generators/MPEG4/main.c fprintf(f, "\tdefault:\n\t\treturn GF_BAD_PARAM;\n\t}\n}\n\n"); f 765 applications/generators/MPEG4/main.c fprintf(f, "\nstatic s32 %s_get_field_index_by_name(char *name)\n{\n", n->name); f 768 applications/generators/MPEG4/main.c fprintf(f, "\tif (!strcmp(\"%s\", name)) return %d;\n", (bf->name[0]=='_') ? bf->name+1 : bf->name, i); f 770 applications/generators/MPEG4/main.c fprintf(f, "\treturn -1;\n\t}\n"); f 775 applications/generators/MPEG4/main.c void WriteNodeQuant(FILE *f, BNode *n) f 779 applications/generators/MPEG4/main.c fprintf(f, "static Bool %s_get_aq_info(GF_Node *n, u32 FieldIndex, u8 *QType, u8 *AType, Fixed *b_min, Fixed *b_max, u32 *QT13_bits)\n{\n\tswitch (FieldIndex) {\n", n->name); f 785 applications/generators/MPEG4/main.c fprintf(f, "\tcase %d:\n", i); f 787 applications/generators/MPEG4/main.c fprintf(f, "\t\t*AType = %d;\n", bf->AnimType); f 789 applications/generators/MPEG4/main.c fprintf(f, "\t\t*QType = %s;\n", bf->quant_type); f 791 applications/generators/MPEG4/main.c fprintf(f, "\t\t*QT13_bits = %s;\n", bf->qt13_bits); f 796 applications/generators/MPEG4/main.c fprintf(f, "\t\t*b_min = FIX_MAX;\n"); f 798 applications/generators/MPEG4/main.c fprintf(f, "\t\t*b_min = FIX_MIN;\n"); f 800 applications/generators/MPEG4/main.c fprintf(f, "\t\t*b_min = %s;\n", GetFixedPrintout(bf->b_min)); f 803 applications/generators/MPEG4/main.c fprintf(f, "\t\t*b_max = FIX_MAX;\n"); f 805 applications/generators/MPEG4/main.c fprintf(f, "\t\t*b_max = %s;\n", GetFixedPrintout(bf->b_max)); f 808 applications/generators/MPEG4/main.c fprintf(f, "\t\treturn 1;\n"); f 810 applications/generators/MPEG4/main.c fprintf(f, "\tdefault:\n\t\treturn 0;\n\t}\n}\n\n"); f 815 applications/generators/MPEG4/main.c FILE *f; f 822 applications/generators/MPEG4/main.c f = BeginFile("mpeg4_nodes", 1); f 824 applications/generators/MPEG4/main.c fprintf(f, "#include <gpac/nodes_mpeg4.h>\n\n"); f 825 applications/generators/MPEG4/main.c fprintf(f, "\n#include <gpac/internal/scenegraph_dev.h>\n"); f 827 applications/generators/MPEG4/main.c fprintf(f, "\n#ifndef GPAC_DISABLE_VRML\n"); f 836 applications/generators/MPEG4/main.c fprintf(f, "\n/*\n\t%s Node deletion\n*/\n\n", n->name); f 837 applications/generators/MPEG4/main.c fprintf(f, "static void %s_Del(GF_Node *node)\n{\n\tM_%s *p = (M_%s *) node;\n", n->name, n->name, n->name); f 877 applications/generators/MPEG4/main.c fprintf(f, "\tgf_sg_%s_del(p->%s);\n", szName, bf->name); f 880 applications/generators/MPEG4/main.c fprintf(f, "\tgf_sg_sfcommand_del(p->%s);\n", bf->name); f 885 applications/generators/MPEG4/main.c fprintf(f, "\tgf_node_unregister((GF_Node *) p->%s, (GF_Node *) p);\t\n", bf->name); f 888 applications/generators/MPEG4/main.c fprintf(f, "\tgf_node_unregister_children((GF_Node *) p, p->%s);\t\n", bf->name); f 893 applications/generators/MPEG4/main.c fprintf(f, "\tif (p->data) gf_free(p->data);\n"); f 895 applications/generators/MPEG4/main.c if (is_parent) fprintf(f, "\tgf_sg_vrml_parent_destroy((GF_Node *) p);\t\n"); f 896 applications/generators/MPEG4/main.c fprintf(f, "\tgf_node_free((GF_Node *) p);\n}\n\n"); f 899 applications/generators/MPEG4/main.c WriteNodeFields(f, n); f 900 applications/generators/MPEG4/main.c WriteNodeQuant(f, n); f 906 applications/generators/MPEG4/main.c fprintf(f, "\n\nGF_Node *%s_Create()\n{\n\tM_%s *p;\n\tGF_SAFEALLOC(p, M_%s);\n", n->name, n->name, n->name); f 907 applications/generators/MPEG4/main.c fprintf(f, "\tif(!p) return NULL;\n"); f 908 applications/generators/MPEG4/main.c fprintf(f, "\tgf_node_setup((GF_Node *)p, TAG_MPEG4_%s);\n", n->name); f 914 applications/generators/MPEG4/main.c fprintf(f, "\tgf_sg_vrml_parent_setup((GF_Node *) p);\n"); f 922 applications/generators/MPEG4/main.c fprintf(f, "\tp->%s = gf_list_new();\t\n", bf->name); f 928 applications/generators/MPEG4/main.c fprintf(f, "\tp->%s.commandList = gf_list_new();\t\n", bf->name); f 942 applications/generators/MPEG4/main.c fprintf(f, "\n\t/*default field values*/\n"); f 964 applications/generators/MPEG4/main.c fprintf(f, "\tp->%s = 1;\n", bf->name); f 968 applications/generators/MPEG4/main.c fprintf(f, "\tp->%s = %s;\n", bf->name, GetFixedPrintout(bf->def)); f 972 applications/generators/MPEG4/main.c fprintf(f, "\tp->%s = %s;\n", bf->name, bf->def); f 976 applications/generators/MPEG4/main.c fprintf(f, "\tp->%s = %s;\n", bf->name, bf->def); f 981 applications/generators/MPEG4/main.c fprintf(f, "\tp->%s = %s;\n", bf->name, bf->def); f 989 applications/generators/MPEG4/main.c fprintf(f, "\tp->%s.red = %s;\n", bf->name, GetFixedPrintout(token)); f 991 applications/generators/MPEG4/main.c fprintf(f, "\tp->%s.green = %s;\n", bf->name, GetFixedPrintout(token)); f 993 applications/generators/MPEG4/main.c fprintf(f, "\tp->%s.blue = %s;\n", bf->name, GetFixedPrintout(token)); f 1000 applications/generators/MPEG4/main.c fprintf(f, "\tp->%s.x = %s;\n", bf->name, GetFixedPrintout(token)); f 1003 applications/generators/MPEG4/main.c fprintf(f, "\tp->%s.y = %s;\n", bf->name, GetFixedPrintout(token)); f 1010 applications/generators/MPEG4/main.c fprintf(f, "\tp->%s.x = %s;\n", bf->name, GetFixedPrintout(token)); f 1014 applications/generators/MPEG4/main.c fprintf(f, "\tp->%s.y = %s;\n", bf->name, GetFixedPrintout(token)); f 1018 applications/generators/MPEG4/main.c fprintf(f, "\tp->%s.z = %s;\n", bf->name, GetFixedPrintout(token)); f 1025 applications/generators/MPEG4/main.c fprintf(f, "\tp->%s.x = %s;\n", bf->name, GetFixedPrintout(token)); f 1029 applications/generators/MPEG4/main.c fprintf(f, "\tp->%s.y = %s;\n", bf->name, GetFixedPrintout(token)); f 1033 applications/generators/MPEG4/main.c fprintf(f, "\tp->%s.z = %s;\n", bf->name, GetFixedPrintout(token)); f 1037 applications/generators/MPEG4/main.c fprintf(f, "\tp->%s.q = %s;\n", bf->name, GetFixedPrintout(token)); f 1041 applications/generators/MPEG4/main.c fprintf(f, "\tp->%s.buffer = (char*)gf_malloc(sizeof(char) * %d);\n", bf->name, strlen(bf->def)+1); f 1042 applications/generators/MPEG4/main.c fprintf(f, "\tstrcpy(p->%s.buffer, \"%s\");\n", bf->name, bf->def); f 1054 applications/generators/MPEG4/main.c fprintf(f, "\tp->%s.vals = (SFFloat*)gf_malloc(sizeof(SFFloat)*%d);\n", bf->name, j); f 1055 applications/generators/MPEG4/main.c fprintf(f, "\tp->%s.count = %d;\n", bf->name, j); f 1062 applications/generators/MPEG4/main.c fprintf(f, "\tp->%s.vals[%d] = %s;\n", bf->name, j, GetFixedPrintout(token)); f 1072 applications/generators/MPEG4/main.c fprintf(f, "\tp->%s.vals = (SFVec2f*)gf_malloc(sizeof(SFVec2f)*%d);\n", bf->name, j); f 1073 applications/generators/MPEG4/main.c fprintf(f, "\tp->%s.count = %d;\n", bf->name, j); f 1083 applications/generators/MPEG4/main.c fprintf(f, "\tp->%s.vals[%d].x = %s;\n", bf->name, j, GetFixedPrintout(tok)); f 1086 applications/generators/MPEG4/main.c fprintf(f, "\tp->%s.vals[%d].y = %s;\n", bf->name, j, GetFixedPrintout(tok)); f 1097 applications/generators/MPEG4/main.c fprintf(f, "\tp->%s.vals = (SFVec3f *)gf_malloc(sizeof(SFVec3f)*%d);\n", bf->name, j); f 1098 applications/generators/MPEG4/main.c fprintf(f, "\tp->%s.count = %d;\n", bf->name, j); f 1108 applications/generators/MPEG4/main.c fprintf(f, "\tp->%s.vals[%d].x = %s;\n", bf->name, j, GetFixedPrintout(tok)); f 1111 applications/generators/MPEG4/main.c fprintf(f, "\tp->%s.vals[%d].y = %s;\n", bf->name, j, GetFixedPrintout(tok)); f 1114 applications/generators/MPEG4/main.c fprintf(f, "\tp->%s.vals[%d].z = %s;\n", bf->name, j, GetFixedPrintout(tok)); f 1125 applications/generators/MPEG4/main.c fprintf(f, "\tp->%s.vals = (GF_Vec4*)gf_malloc(sizeof(GF_Vec4)*%d);\n", bf->name, j); f 1126 applications/generators/MPEG4/main.c fprintf(f, "\tp->%s.count = %d;\n", bf->name, j); f 1136 applications/generators/MPEG4/main.c fprintf(f, "\tp->%s.vals[%d].x = %s;\n", bf->name, j, GetFixedPrintout(tok)); f 1139 applications/generators/MPEG4/main.c fprintf(f, "\tp->%s.vals[%d].y = %s;\n", bf->name, j, GetFixedPrintout(tok)); f 1142 applications/generators/MPEG4/main.c fprintf(f, "\tp->%s.vals[%d].z = %s;\n", bf->name, j, GetFixedPrintout(tok)); f 1145 applications/generators/MPEG4/main.c fprintf(f, "\tp->%s.vals[%d].q = %s;\n", bf->name, j, GetFixedPrintout(tok)); f 1156 applications/generators/MPEG4/main.c fprintf(f, "\tp->%s.vals = (SFInt32*)gf_malloc(sizeof(SFInt32)*%d);\n", bf->name, j); f 1157 applications/generators/MPEG4/main.c fprintf(f, "\tp->%s.count = %d;\n", bf->name, j); f 1166 applications/generators/MPEG4/main.c fprintf(f, "\tp->%s.vals[%d] = %s;\n", bf->name, j, tok); f 1177 applications/generators/MPEG4/main.c fprintf(f, "\tp->%s.vals = (SFColor*)gf_malloc(sizeof(SFColor)*%d);\n", bf->name, j); f 1178 applications/generators/MPEG4/main.c fprintf(f, "\tp->%s.count = %d;\n", bf->name, j); f 1187 applications/generators/MPEG4/main.c fprintf(f, "\tp->%s.vals[%d].red = %s;\n", bf->name, j, GetFixedPrintout(tok)); f 1189 applications/generators/MPEG4/main.c fprintf(f, "\tp->%s.vals[%d].green = %s;\n", bf->name, j, GetFixedPrintout(tok)); f 1191 applications/generators/MPEG4/main.c fprintf(f, "\tp->%s.vals[%d].blue = %s;\n", bf->name, j, GetFixedPrintout(tok)); f 1202 applications/generators/MPEG4/main.c fprintf(f, "\tp->%s.vals = (char**)gf_malloc(sizeof(SFString)*%d);\n", bf->name, j); f 1203 applications/generators/MPEG4/main.c fprintf(f, "\tp->%s.count = %d;\n", bf->name, j); f 1212 applications/generators/MPEG4/main.c fprintf(f, "\tp->%s.vals[%d] = (char*)gf_malloc(sizeof(char) * %d);\n", bf->name, j, strlen(tok)+1); f 1213 applications/generators/MPEG4/main.c fprintf(f, "\tstrcpy(p->%s.vals[%d], \"%s\");\n", bf->name, j, tok); f 1224 applications/generators/MPEG4/main.c fprintf(f, "\tp->%s.vals = (SFTime*)gf_malloc(sizeof(SFTime)*%d);\n", bf->name, j); f 1225 applications/generators/MPEG4/main.c fprintf(f, "\tp->%s.count = %d;\n", bf->name, j); f 1235 applications/generators/MPEG4/main.c fprintf(f, "\tp->%s.vals[%d] = %s;\n", bf->name, j, tok); f 1247 applications/generators/MPEG4/main.c fprintf(f, "UNKNOWN FIELD (%s);\n", bf->familly); f 1251 applications/generators/MPEG4/main.c fprintf(f, "\treturn (GF_Node *)p;\n}\n\n"); f 1255 applications/generators/MPEG4/main.c fprintf(f, "\n\n\n"); f 1258 applications/generators/MPEG4/main.c fprintf(f, "GF_Node *gf_sg_mpeg4_node_new(u32 NodeTag)\n{\n\tswitch (NodeTag) {\n"); f 1262 applications/generators/MPEG4/main.c fprintf(f, "\tcase TAG_MPEG4_%s:\n\t\treturn %s_Create();\n", n->name, n->name); f 1265 applications/generators/MPEG4/main.c fprintf(f, "\tdefault:\n\t\treturn NULL;\n\t}\n}\n\n"); f 1267 applications/generators/MPEG4/main.c fprintf(f, "const char *gf_sg_mpeg4_node_get_class_name(u32 NodeTag)\n{\n\tswitch (NodeTag) {\n"); f 1270 applications/generators/MPEG4/main.c if (!n->skip_impl) fprintf(f, "\tcase TAG_MPEG4_%s:\n\t\treturn \"%s\";\n", n->name, n->name); f 1272 applications/generators/MPEG4/main.c fprintf(f, "\tdefault:\n\t\treturn \"Unknown Node\";\n\t}\n}\n\n"); f 1274 applications/generators/MPEG4/main.c fprintf(f, "void gf_sg_mpeg4_node_del(GF_Node *node)\n{\n\tswitch (node->sgprivate->tag) {\n"); f 1278 applications/generators/MPEG4/main.c fprintf(f, "\tcase TAG_MPEG4_%s:\n\t\t%s_Del(node); return;\n", n->name, n->name); f 1281 applications/generators/MPEG4/main.c fprintf(f, "\tdefault:\n\t\treturn;\n\t}\n}\n\n"); f 1283 applications/generators/MPEG4/main.c fprintf(f, "u32 gf_sg_mpeg4_node_get_field_count(GF_Node *node, u8 code_mode)\n{\n\tswitch (node->sgprivate->tag) {\n"); f 1287 applications/generators/MPEG4/main.c fprintf(f, "\tcase TAG_MPEG4_%s:return %s_get_field_count(node, code_mode);\n", n->name, n->name); f 1290 applications/generators/MPEG4/main.c fprintf(f, "\tdefault:\n\t\treturn 0;\n\t}\n}\n\n"); f 1292 applications/generators/MPEG4/main.c fprintf(f, "GF_Err gf_sg_mpeg4_node_get_field(GF_Node *node, GF_FieldInfo *field)\n{\n\tswitch (node->sgprivate->tag) {\n"); f 1296 applications/generators/MPEG4/main.c fprintf(f, "\tcase TAG_MPEG4_%s: return %s_get_field(node, field);\n", n->name, n->name); f 1299 applications/generators/MPEG4/main.c fprintf(f, "\tdefault:\n\t\treturn GF_BAD_PARAM;\n\t}\n}\n\n"); f 1301 applications/generators/MPEG4/main.c fprintf(f, "GF_Err gf_sg_mpeg4_node_get_field_index(GF_Node *node, u32 inField, u8 code_mode, u32 *fieldIndex)\n{\n\tswitch (node->sgprivate->tag) {\n"); f 1305 applications/generators/MPEG4/main.c fprintf(f, "\tcase TAG_MPEG4_%s: return %s_get_field_index(node, inField, code_mode, fieldIndex);\n", n->name, n->name); f 1308 applications/generators/MPEG4/main.c fprintf(f, "\tdefault:\n\t\treturn GF_BAD_PARAM;\n\t}\n}\n\n"); f 1310 applications/generators/MPEG4/main.c fprintf(f, "Bool gf_sg_mpeg4_node_get_aq_info(GF_Node *node, u32 FieldIndex, u8 *QType, u8 *AType, Fixed *b_min, Fixed *b_max, u32 *QT13_bits)\n{\n\tswitch (node->sgprivate->tag) {\n"); f 1314 applications/generators/MPEG4/main.c fprintf(f, "\tcase TAG_MPEG4_%s: return %s_get_aq_info(node, FieldIndex, QType, AType, b_min, b_max, QT13_bits);\n", n->name, n->name); f 1317 applications/generators/MPEG4/main.c fprintf(f, "\tdefault:\n\t\treturn 0;\n\t}\n}\n\n"); f 1319 applications/generators/MPEG4/main.c fprintf(f, "u32 gf_sg_mpeg4_node_get_child_ndt(GF_Node *node)\n{\n\tswitch (node->sgprivate->tag) {\n"); f 1323 applications/generators/MPEG4/main.c fprintf(f, "\tcase TAG_MPEG4_%s: return %s;\n", n->name, n->Child_NDT_Name); f 1326 applications/generators/MPEG4/main.c fprintf(f, "\tdefault:\n\t\treturn 0;\n\t}\n}\n\n"); f 1329 applications/generators/MPEG4/main.c fprintf(f, "\nu32 gf_node_mpeg4_type_by_class_name(const char *node_name)\n{\n\tif(!node_name) return 0;\n"); f 1333 applications/generators/MPEG4/main.c fprintf(f, "\tif (!strcmp(node_name, \"%s\")) return TAG_MPEG4_%s;\n", n->name, n->name); f 1335 applications/generators/MPEG4/main.c fprintf(f, "\treturn 0;\n}\n\n"); f 1337 applications/generators/MPEG4/main.c fprintf(f, "s32 gf_sg_mpeg4_node_get_field_index_by_name(GF_Node *node, char *name)\n{\n\tswitch (node->sgprivate->tag) {\n"); f 1341 applications/generators/MPEG4/main.c fprintf(f, "\tcase TAG_MPEG4_%s: return %s_get_field_index_by_name(name);\n", n->name, n->name); f 1344 applications/generators/MPEG4/main.c fprintf(f, "\tdefault:\n\t\treturn -1;\n\t}\n}\n\n"); f 1346 applications/generators/MPEG4/main.c fprintf(f, "\n#endif /*GPAC_DISABLE_VRML*/\n"); f 1348 applications/generators/MPEG4/main.c EndFile(f, "", 1); f 1357 applications/generators/MPEG4/main.c BField *f; f 1426 applications/generators/MPEG4/main.c f = BlankField(); f 1427 applications/generators/MPEG4/main.c gf_list_add(n->Fields, f); f 1430 applications/generators/MPEG4/main.c strcpy(f->type, token); f 1431 applications/generators/MPEG4/main.c GetNextToken(f->familly, " \t"); f 1432 applications/generators/MPEG4/main.c GetNextToken(f->name, " \t"); f 1434 applications/generators/MPEG4/main.c if (!strcmp(f->name, "tag")) strcpy(f->name, "_tag"); f 1435 applications/generators/MPEG4/main.c if (!strcmp(f->name, "auto")) strcpy(f->name, "_auto"); f 1446 applications/generators/MPEG4/main.c strcpy(f->def, token+j); f 1449 applications/generators/MPEG4/main.c switch (f->def[strlen(f->def)-1]) { f 1453 applications/generators/MPEG4/main.c f->def[strlen(f->def)-1] = 0; f 1461 applications/generators/MPEG4/main.c strcpy(f->def, ""); f 1463 applications/generators/MPEG4/main.c if (!strcmp(f->familly, "SFFloat")) { f 1464 applications/generators/MPEG4/main.c if (!strcmp(f->def, "+I") || !strcmp(f->def, "I")) { f 1465 applications/generators/MPEG4/main.c strcpy(f->def, "FIX_MAX"); f 1466 applications/generators/MPEG4/main.c } else if (!strcmp(f->def, "-I")) { f 1467 applications/generators/MPEG4/main.c strcpy(f->def, "FIX_MIN"); f 1469 applications/generators/MPEG4/main.c } else if (!strcmp(f->familly, "SFTime")) { f 1470 applications/generators/MPEG4/main.c if (!strcmp(f->def, "+I") || !strcmp(f->def, "I")) { f 1471 applications/generators/MPEG4/main.c strcpy(f->def, "FIX_MAX"); f 1472 applications/generators/MPEG4/main.c } else if (!strcmp(f->def, "-I")) { f 1473 applications/generators/MPEG4/main.c strcpy(f->def, "FIX_MIN"); f 1475 applications/generators/MPEG4/main.c } else if (!strcmp(f->familly, "SFInt32")) { f 1476 applications/generators/MPEG4/main.c if (!strcmp(f->def, "+I") || !strcmp(f->def, "I")) { f 1477 applications/generators/MPEG4/main.c strcpy(f->def, "1 << 31"); f 1478 applications/generators/MPEG4/main.c } else if (!strcmp(f->def, "-I")) { f 1479 applications/generators/MPEG4/main.c strcpy(f->def, "- (1 << 31)"); f 1488 applications/generators/MPEG4/main.c f->hasBounds = 1; f 1489 applications/generators/MPEG4/main.c GetNextToken(f->b_min, "[(,"); f 1490 applications/generators/MPEG4/main.c GetNextToken(f->b_max, ")]"); f 1493 applications/generators/MPEG4/main.c f->hasQuant = 1; f 1494 applications/generators/MPEG4/main.c GetNextToken(f->quant_type, " \t"); f 1495 applications/generators/MPEG4/main.c if (!strcmp(f->quant_type, "13")) f 1496 applications/generators/MPEG4/main.c GetNextToken(f->qt13_bits, " \t"); f 1499 applications/generators/MPEG4/main.c f->hasAnim = 1; f 1501 applications/generators/MPEG4/main.c f->AnimType = atoi(token); f 1516 applications/generators/MPEG4/main.c f = gf_list_get(n->Fields, i); f 1518 applications/generators/MPEG4/main.c if (!strcmp(f->type, "eventIn")) continue; f 1519 applications/generators/MPEG4/main.c if (!strcmp(f->type, "eventOut")) continue; f 1520 applications/generators/MPEG4/main.c if (!strcmp(f->def, "")) continue; f 1521 applications/generators/MPEG4/main.c if (strstr(f->familly, "Node")) continue; f 1528 applications/generators/MPEG4/main.c void WriteNodeDump(FILE *f, BNode *n) f 1533 applications/generators/MPEG4/main.c fprintf(f, "static const char *%s_FieldName[] = {\n", n->name); f 1537 applications/generators/MPEG4/main.c fprintf(f, " \"%s\"", bf->name); f 1539 applications/generators/MPEG4/main.c fprintf(f, ", \"%s\"", bf->name); f 1542 applications/generators/MPEG4/main.c fprintf(f, "\n};\n\n"); f 1626 applications/generators/MPEG4/main.c FILE *f; f 1628 applications/generators/MPEG4/main.c f = gf_fopen(szFile, "wt"); f 1630 applications/generators/MPEG4/main.c fprintf(f, "<html>\n"\ f 1651 applications/generators/MPEG4/main.c fprintf(f, "<BR><a name=\"%s\">\n"\ f 1657 applications/generators/MPEG4/main.c fprintf(f, "<TR><TD>reserved</TD><TD><P align=CENTER>%s</TD><TD><P align=RIGHT> </TD><TD><P align=RIGHT> </TD><TD><P align=RIGHT> </TD><TD><P align=RIGHT> </TD></TR>\n", format_bit_string(szStr, 0, nb_bits)); f 1682 applications/generators/MPEG4/main.c fprintf(f, "<TR><TD>%s</TD><TD><P align=CENTER>%s</TD><TD><P align=RIGHT>%d DEF bits</TD><TD><P align=RIGHT>%d IN bits</TD><TD><P align=RIGHT>%d OUT bits</TD><TD><P align=RIGHT>%d DYN bits</TD></TR>\n", n->name, format_bit_string(szStr, idx, nb_bits), get_nb_bits(n->hasDef), get_nb_bits(n->hasIn), get_nb_bits(n->hasOut), get_nb_bits(n->hasDyn)); f 1686 applications/generators/MPEG4/main.c fprintf(f, "</TABLE>\n"); f 1688 applications/generators/MPEG4/main.c gf_fclose(f); f 29 applications/generators/SVG/html.c FILE *f; f 33 applications/generators/SVG/html.c f = gf_fopen(sPath, "wt"); f 35 applications/generators/SVG/html.c fprintf(f, "<?xml version='1.0' encoding='UTF-8'?>\n"); f 36 applications/generators/SVG/html.c fprintf(f, "<html xmlns='http://www.w3.org/1999/xhtml'>\n"); f 37 applications/generators/SVG/html.c fprintf(f, "<head>\n"); f 38 applications/generators/SVG/html.c fprintf(f, "<title>Status of the SVG implementation in GPAC</title>\n"); f 43 applications/generators/SVG/html.c fprintf(f, "<!--File generated on GMT %s bY SVGGen for GPAC Version %s-->\n\n", asctime(gmtime(&rawtime)), GPAC_VERSION); f 45 applications/generators/SVG/html.c fprintf(f, "<!--\n%s-->\n", COPYRIGHT); f 46 applications/generators/SVG/html.c fprintf(f, "<link rel='stylesheet' type='text/css' href='gpac_table_style.css'/>\n"); f 48 applications/generators/SVG/html.c fprintf(f, "</head>\n"); f 49 applications/generators/SVG/html.c fprintf(f, "<body>\n"); f 50 applications/generators/SVG/html.c fprintf(f, "<h1 align='center'>Status of the SVG implementation in GPAC</h1>\n"); f 51 applications/generators/SVG/html.c return f; f 54 applications/generators/SVG/html.c static void EndHtml(FILE *f) f 56 applications/generators/SVG/html.c fprintf(f, "</body>\n"); f 57 applications/generators/SVG/html.c fprintf(f, "</html>\n"); f 58 applications/generators/SVG/html.c gf_fclose(f); f 66 applications/generators/SVG/html.c FILE *f; f 67 applications/generators/SVG/html.c f = BeginHtml(); f 70 applications/generators/SVG/html.c fprintf(f, "<h2>Legend</h2>\n"); f 71 applications/generators/SVG/html.c fprintf(f, "<table>\n"); f 72 applications/generators/SVG/html.c fprintf(f, "<thead>\n"); f 73 applications/generators/SVG/html.c fprintf(f, "<tr>\n"); f 74 applications/generators/SVG/html.c fprintf(f, "<th>Status</th>\n"); f 75 applications/generators/SVG/html.c fprintf(f, "<th>Color</th>\n"); f 76 applications/generators/SVG/html.c fprintf(f, "</tr>\n"); f 77 applications/generators/SVG/html.c fprintf(f, "</thead>\n"); f 78 applications/generators/SVG/html.c fprintf(f, "<tbody>\n"); f 79 applications/generators/SVG/html.c fprintf(f, "<tr>\n"); f 80 applications/generators/SVG/html.c fprintf(f, "<td>Not supported</td>\n"); f 81 applications/generators/SVG/html.c fprintf(f, "<td class='not-supported'></td>\n"); f 82 applications/generators/SVG/html.c fprintf(f, "</tr>\n"); f 83 applications/generators/SVG/html.c fprintf(f, "<tr>\n"); f 84 applications/generators/SVG/html.c fprintf(f, "<td>Partially supported</td>\n"); f 85 applications/generators/SVG/html.c fprintf(f, "<td class='partially-supported'></td>\n"); f 86 applications/generators/SVG/html.c fprintf(f, "</tr>\n"); f 87 applications/generators/SVG/html.c fprintf(f, "<tr>\n"); f 88 applications/generators/SVG/html.c fprintf(f, "<td>Fully supported</td>\n"); f 89 applications/generators/SVG/html.c fprintf(f, "<td class='fully-supported'></td>\n"); f 90 applications/generators/SVG/html.c fprintf(f, "</tr>\n"); f 91 applications/generators/SVG/html.c fprintf(f, "</tbody>\n"); f 92 applications/generators/SVG/html.c fprintf(f, "</table>\n"); f 94 applications/generators/SVG/html.c fprintf(f, "<h2>SVG Tiny 1.2 Elements</h2>\n"); f 95 applications/generators/SVG/html.c fprintf(f, "<table class='reference-list' align='center'>\n"); f 96 applications/generators/SVG/html.c fprintf(f, "<thead>\n"); f 97 applications/generators/SVG/html.c fprintf(f, "<tr>\n"); f 98 applications/generators/SVG/html.c fprintf(f, "<th>Element Name</th>\n"); f 99 applications/generators/SVG/html.c fprintf(f, "<th>Status</th>\n"); f 100 applications/generators/SVG/html.c fprintf(f, "<th>Observations</th>\n"); f 101 applications/generators/SVG/html.c fprintf(f, "<th>Example(s)</th>\n"); f 102 applications/generators/SVG/html.c fprintf(f, "<th>Bug(s)</th>\n"); f 103 applications/generators/SVG/html.c fprintf(f, "</tr>\n"); f 104 applications/generators/SVG/html.c fprintf(f, "</thead>\n"); f 105 applications/generators/SVG/html.c fprintf(f, "<tbody>\n"); f 108 applications/generators/SVG/html.c fprintf(f, "<tr class='element' id='element_%s'>\n", elt->implementation_name); f 109 applications/generators/SVG/html.c fprintf(f, "<td class='element-name'><a href='#table_%s'>%s</a></td>\n", elt->svg_name, elt->svg_name); f 110 applications/generators/SVG/html.c fprintf(f, "<td class='not-supported'></td>\n"); f 111 applications/generators/SVG/html.c fprintf(f, "<td class='element-observation'> </td>\n"); f 112 applications/generators/SVG/html.c fprintf(f, "<td class='element-example'> </td>\n"); f 113 applications/generators/SVG/html.c fprintf(f, "<td class='element-bug'> </td>\n"); f 114 applications/generators/SVG/html.c fprintf(f, "</tr>\n"); f 116 applications/generators/SVG/html.c fprintf(f, "</tbody>\n"); f 117 applications/generators/SVG/html.c fprintf(f, "</table>\n"); f 121 applications/generators/SVG/html.c fprintf(f, "<h2 id='table_%s'>%s</h2>\n", elt->implementation_name, elt->svg_name); f 122 applications/generators/SVG/html.c fprintf(f, "<table>\n"); f 123 applications/generators/SVG/html.c fprintf(f, "<thead>\n"); f 124 applications/generators/SVG/html.c fprintf(f, "<tr>\n"); f 125 applications/generators/SVG/html.c fprintf(f, "<th>Attribute Name</th>\n"); f 126 applications/generators/SVG/html.c fprintf(f, "<th>Status</th>\n"); f 127 applications/generators/SVG/html.c fprintf(f, "<th>Observations</th>\n"); f 128 applications/generators/SVG/html.c fprintf(f, "<th>Example(s)</th>\n"); f 129 applications/generators/SVG/html.c fprintf(f, "<th>Bug(s)</th>\n"); f 130 applications/generators/SVG/html.c fprintf(f, "</tr>\n"); f 131 applications/generators/SVG/html.c fprintf(f, "</thead>\n"); f 132 applications/generators/SVG/html.c fprintf(f, "<tbody>\n"); f 136 applications/generators/SVG/html.c fprintf(f, "<tr>\n"); f 137 applications/generators/SVG/html.c fprintf(f, "<td class='attribute-name'>%s</td>\n",att->svg_name); f 138 applications/generators/SVG/html.c fprintf(f, "<td class='not-supported'></td>\n"); f 139 applications/generators/SVG/html.c fprintf(f, "<td class='attribute-observation'> </td>\n"); f 140 applications/generators/SVG/html.c fprintf(f, "<td class='attribute-example'>%d - </td>\n",++nbExamples); f 141 applications/generators/SVG/html.c fprintf(f, "<td class='attribute-bug'> </td>\n"); f 142 applications/generators/SVG/html.c fprintf(f, "</tr>\n"); f 144 applications/generators/SVG/html.c fprintf(f, "</tbody>\n"); f 145 applications/generators/SVG/html.c fprintf(f, "</table>\n"); f 148 applications/generators/SVG/html.c EndHtml(f); f 767 applications/generators/SVG/main.c FILE *f; f 808 applications/generators/SVG/main.c f = gf_fopen(sPath, "wt"); f 809 applications/generators/SVG/main.c fprintf(f, "%s\n", COPYRIGHT); f 814 applications/generators/SVG/main.c fprintf(f, "\n/*\n\tDO NOT MOFIFY - File generated on GMT %s\n\tBY SVGGen for GPAC Version %s\n*/\n\n", asctime(gmtime(&rawtime)), GPAC_VERSION); f 819 applications/generators/SVG/main.c fprintf(f, "#ifndef _GF_SVG_SA_NODES_H\n"); f 820 applications/generators/SVG/main.c fprintf(f, "#define _GF_SVG_SA_NODES_H\n\n"); f 822 applications/generators/SVG/main.c fprintf(f, "#ifndef _GF_SVG_SANI_NODES_H\n"); f 823 applications/generators/SVG/main.c fprintf(f, "#define _GF_SVG_SANI_NODES_H\n\n"); f 825 applications/generators/SVG/main.c fprintf(f, "#ifndef _GF_SVG_NODES_H\n"); f 826 applications/generators/SVG/main.c fprintf(f, "#define _GF_SVG_NODES_H\n\n"); f 828 applications/generators/SVG/main.c fprintf(f, "#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n"); f 830 applications/generators/SVG/main.c return f; f 833 applications/generators/SVG/main.c void EndFile(FILE *f, u32 type) f 836 applications/generators/SVG/main.c fprintf(f, "#ifdef __cplusplus\n}\n#endif\n\n"); f 837 applications/generators/SVG/main.c if (generation_mode == 1) fprintf(f, "\n\n#endif\t\t/*_GF_SVG_SA_NODES_H*/\n\n"); f 838 applications/generators/SVG/main.c if (generation_mode == 2) fprintf(f, "\n\n#endif\t\t/*_GF_SVG_SANI_NODES_H*/\n\n"); f 839 applications/generators/SVG/main.c if (generation_mode == 3) fprintf(f, "\n\n#endif\t\t/*_GF_SVG_NODES_H*/\n\n"); f 841 applications/generators/SVG/main.c fprintf(f, "\n"); f 843 applications/generators/SVG/main.c gf_fclose(f); f 192 applications/generators/SVG/svggen.h void EndFile(FILE *f, u32 type); f 173 applications/generators/X3D/main.c FILE *f; f 183 applications/generators/X3D/main.c f = gf_fopen(sPath, "wt"); f 184 applications/generators/X3D/main.c fprintf(f, "%s\n", COPYRIGHT); f 189 applications/generators/X3D/main.c fprintf(f, "\n/*\n\tDO NOT MOFIFY - File generated on GMT %s\n\tBY X3DGen for GPAC Version %s\n*/\n\n", asctime(gmtime(&rawtime)), GPAC_VERSION); f 193 applications/generators/X3D/main.c fprintf(f, "#ifndef _GF_X3D_NODES_H\n"); f 194 applications/generators/X3D/main.c fprintf(f, "#define _GF_X3D_NODES_H\n\n"); f 195 applications/generators/X3D/main.c fprintf(f, "#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n"); f 197 applications/generators/X3D/main.c return f; f 200 applications/generators/X3D/main.c void EndFile(FILE *f, u32 type) f 203 applications/generators/X3D/main.c fprintf(f, "#ifdef __cplusplus\n}\n#endif\n\n"); f 204 applications/generators/X3D/main.c fprintf(f, "\n\n#endif\t\t/*_GF_X3D_NODES_H*/\n\n"); f 206 applications/generators/X3D/main.c gf_fclose(f); f 223 applications/generators/X3D/main.c FILE *f; f 227 applications/generators/X3D/main.c f = BeginFile(0); f 229 applications/generators/X3D/main.c fprintf(f, "#include <gpac/scenegraph_vrml.h>\n\n"); f 230 applications/generators/X3D/main.c fprintf(f, "#ifndef GPAC_DISABLE_X3D\n\n"); f 233 applications/generators/X3D/main.c fprintf(f, "\n\nenum {\n"); f 238 applications/generators/X3D/main.c fprintf(f, ",\n\tTAG_X3D_%s", n->name); f 240 applications/generators/X3D/main.c fprintf(f, "\tTAG_X3D_%s = GF_NODE_RANGE_FIRST_X3D", n->name); f 242 applications/generators/X3D/main.c fprintf(f, ",\n\tTAG_LastImplementedX3D\n};\n\n"); f 247 applications/generators/X3D/main.c fprintf(f, "typedef struct _tagX3D%s\n{\n", n->name); f 248 applications/generators/X3D/main.c fprintf(f, "\tBASE_NODE\n"); f 255 applications/generators/X3D/main.c fprintf(f, "\tVRML_CHILDREN\n"); f 268 applications/generators/X3D/main.c fprintf(f, "\tGF_Node *%s;\t/*%s*/\n", bf->name, bf->type); f 271 applications/generators/X3D/main.c fprintf(f, "\tGF_ChildNodeItem *%s;\t/*%s*/\n", bf->name, bf->type); f 274 applications/generators/X3D/main.c fprintf(f, "\t%s %s;\t/*%s*/\n", bf->familly, bf->name, bf->type); f 277 applications/generators/X3D/main.c fprintf(f, "\tvoid (*on_%s)(GF_Node *pThis, struct _route *route);\t/*eventInHandler*/\n", bf->name); f 279 applications/generators/X3D/main.c fprintf(f, "} X_%s;\n\n\n", n->name); f 282 applications/generators/X3D/main.c fprintf(f, "#endif /*GPAC_DISABLE_X3D*/\n\n"); f 283 applications/generators/X3D/main.c EndFile(f, 0); f 287 applications/generators/X3D/main.c void WriteNodeFields(FILE *f, X3DNode *n) f 292 applications/generators/X3D/main.c fprintf(f, "\nstatic u32 %s_get_field_count(GF_Node *node, u8 dummy)\n{\n\treturn %d;\n}\n\n", n->name, gf_list_count(n->Fields)); f 293 applications/generators/X3D/main.c fprintf(f, "static GF_Err %s_get_field(GF_Node *node, GF_FieldInfo *info)\n{\n\tswitch (info->fieldIndex) {\n", n->name); f 297 applications/generators/X3D/main.c fprintf(f, "\tcase %d:\n", i); f 299 applications/generators/X3D/main.c fprintf(f, "\t\tinfo->name = \"%s\";\n", bf->name); f 303 applications/generators/X3D/main.c fprintf(f, "\t\tinfo->eventType = GF_SG_EVENT_IN;\n"); f 304 applications/generators/X3D/main.c fprintf(f, "\t\tinfo->on_event_in = ((X_%s *)node)->on_%s;\n", n->name, bf->name); f 307 applications/generators/X3D/main.c fprintf(f, "\t\tinfo->eventType = GF_SG_EVENT_OUT;\n"); f 310 applications/generators/X3D/main.c fprintf(f, "\t\tinfo->eventType = GF_SG_EVENT_FIELD;\n"); f 313 applications/generators/X3D/main.c fprintf(f, "\t\tinfo->eventType = GF_SG_EVENT_EXPOSED_FIELD;\n"); f 318 applications/generators/X3D/main.c fprintf(f, "\t\tinfo->fieldType = GF_SG_VRML_MFNODE;\n"); f 320 applications/generators/X3D/main.c fprintf(f, "\t\tinfo->fieldType = GF_SG_VRML_SFNODE;\n"); f 323 applications/generators/X3D/main.c fprintf(f, "\t\tinfo->NDTtype = NDT_SF%s;\n", bf->familly+2); f 324 applications/generators/X3D/main.c fprintf(f, "\t\tinfo->far_ptr = & ((X_%s *)node)->%s;\n", n->name, bf->name); f 330 applications/generators/X3D/main.c fprintf(f, "\t\tinfo->fieldType = GF_SG_VRML_%s;\n", szName); f 331 applications/generators/X3D/main.c fprintf(f, "\t\tinfo->far_ptr = & ((X_%s *) node)->%s;\n", n->name, bf->name); f 333 applications/generators/X3D/main.c fprintf(f, "\t\treturn GF_OK;\n"); f 335 applications/generators/X3D/main.c fprintf(f, "\tdefault:\n\t\treturn GF_BAD_PARAM;\n\t}\n}\n\n"); f 337 applications/generators/X3D/main.c fprintf(f, "\nstatic s32 %s_get_field_index_by_name(char *name)\n{\n", n->name); f 340 applications/generators/X3D/main.c fprintf(f, "\tif (!strcmp(\"%s\", name)) return %d;\n", bf->name, i); f 342 applications/generators/X3D/main.c fprintf(f, "\treturn -1;\n\t}\n"); f 938 applications/generators/X3D/main.c void WriteNDT(FILE *f, GF_List *XNodes, GF_List *NDTs) f 944 applications/generators/X3D/main.c fprintf(f, "\n\n/* NDT X3D */\n\n"); f 952 applications/generators/X3D/main.c fprintf(f, "#define %s_X3D_Count\t%d\n", NDTName, count); f 953 applications/generators/X3D/main.c fprintf(f, "static const u32 %s_X3D_TypeToTag[%d] = {\n", NDTName, count); f 961 applications/generators/X3D/main.c fprintf(f, " TAG_X3D_%s", n->name); f 964 applications/generators/X3D/main.c fprintf(f, ", TAG_X3D_%s", n->name); f 967 applications/generators/X3D/main.c fprintf(f, "\n};\n\n"); f 971 applications/generators/X3D/main.c fprintf(f, "\n\n\nBool gf_x3d_get_node_type(u32 NDT_Tag, u32 NodeTag)\n{\n\tconst u32 *types;\n\tu32 count, i;\n\tif (!NodeTag) return 0;\n\ttypes = NULL; count = 0;\n"); f 973 applications/generators/X3D/main.c fprintf(f, "\tswitch (NDT_Tag) {\n"); f 978 applications/generators/X3D/main.c fprintf(f, "\tcase NDT_%s:\n\t\ttypes = %s_X3D_TypeToTag; count = %s_X3D_Count; break;\n", NDTName, NDTName, NDTName); f 980 applications/generators/X3D/main.c fprintf(f, "\tdefault:\n\t\treturn 0;\n\t}\n"); f 982 applications/generators/X3D/main.c fprintf(f, "\tfor(i=0; i<count; i++) { if (types[i]==NodeTag) return 1;}\n"); f 983 applications/generators/X3D/main.c fprintf(f, "\treturn 0;\n}\n"); f 992 applications/generators/X3D/main.c X3DField *f; f 1044 applications/generators/X3D/main.c f = BlankField(); f 1045 applications/generators/X3D/main.c gf_list_add(n->Fields, f); f 1048 applications/generators/X3D/main.c strcpy(f->type, token); f 1049 applications/generators/X3D/main.c GetNextToken(f->familly, " \t"); f 1050 applications/generators/X3D/main.c GetNextToken(f->name, " \t"); f 1052 applications/generators/X3D/main.c if (!strcmp(f->name, "tag")) strcpy(f->name, "_tag"); f 1063 applications/generators/X3D/main.c strcpy(f->def, token+j); f 1066 applications/generators/X3D/main.c switch (f->def[strlen(f->def)-1]) { f 1070 applications/generators/X3D/main.c f->def[strlen(f->def)-1] = 0; f 1078 applications/generators/X3D/main.c strcpy(f->def, ""); f 1080 applications/generators/X3D/main.c if (!strcmp(f->familly, "SFFloat")) { f 1081 applications/generators/X3D/main.c if (!strcmp(f->def, "+I") || !strcmp(f->def, "I")) { f 1082 applications/generators/X3D/main.c strcpy(f->def, "GF_MAX_FLOAT"); f 1083 applications/generators/X3D/main.c } else if (!strcmp(f->def, "-I")) { f 1084 applications/generators/X3D/main.c strcpy(f->def, "GF_MIN_FLOAT"); f 1086 applications/generators/X3D/main.c } else if (!strcmp(f->familly, "SFTime")) { f 1087 applications/generators/X3D/main.c if (!strcmp(f->def, "+I") || !strcmp(f->def, "I")) { f 1088 applications/generators/X3D/main.c strcpy(f->def, "GF_MAX_FLOAT"); f 1089 applications/generators/X3D/main.c } else if (!strcmp(f->def, "-I")) { f 1090 applications/generators/X3D/main.c strcpy(f->def, "GF_MIN_FLOAT"); f 1092 applications/generators/X3D/main.c } else if (!strcmp(f->familly, "SFInt32")) { f 1093 applications/generators/X3D/main.c if (!strcmp(f->def, "+I") || !strcmp(f->def, "I")) { f 1094 applications/generators/X3D/main.c strcpy(f->def, "2 << 31"); f 1095 applications/generators/X3D/main.c } else if (!strcmp(f->def, "-I")) { f 1096 applications/generators/X3D/main.c strcpy(f->def, "- (2 << 31)"); f 1108 applications/generators/X3D/main.c gf_list_del_item(n->Fields, f); f 1109 applications/generators/X3D/main.c gf_free(f); f 1116 applications/generators/X3D/main.c if (!stricmp(f->name, "bboxCenter") || !stricmp(f->name, "bboxSize")) { f 1117 applications/generators/X3D/main.c gf_list_del_item(n->Fields, f); f 1118 applications/generators/X3D/main.c gf_free(f); f 1129 applications/generators/X3D/main.c f = gf_list_get(n->Fields, i); f 1131 applications/generators/X3D/main.c if (!strcmp(f->type, "eventIn")) continue; f 1132 applications/generators/X3D/main.c if (!strcmp(f->type, "eventOut")) continue; f 1133 applications/generators/X3D/main.c if (!strcmp(f->def, "")) continue; f 1134 applications/generators/X3D/main.c if (strstr(f->familly, "Node")) continue; f 1141 applications/generators/X3D/main.c void WriteNodeDump(FILE *f, X3DNode *n) f 1146 applications/generators/X3D/main.c fprintf(f, "static const char *%s_FieldName[] = {\n", n->name); f 1150 applications/generators/X3D/main.c fprintf(f, " \"%s\"", bf->name); f 1152 applications/generators/X3D/main.c fprintf(f, ", \"%s\"", bf->name); f 1155 applications/generators/X3D/main.c fprintf(f, "\n};\n\n"); f 662 applications/mp42avi/main.c s32 frameID, h, m, s, f; f 707 applications/mp42avi/main.c sscanf(argv[i+1], "T%d:%d:%d:%dF%f", &h, &m, &s, &f, &fps); f 708 applications/mp42avi/main.c dump_time = (s32) ((3600*h + 60*m + s)*1000 + 1000*f/fps); f 723 applications/mp42avi/main.c sscanf(argv[i+1], "T%d:%d:%d:%dF%f", &h, &m, &s, &f, &fps); f 724 applications/mp42avi/main.c dump_time = (s32) ((3600*h + 60*m + s)*1000 + 1000*f/fps); f 1863 applications/mp42ts/main.c FILE *f = gf_fopen(src, "rt"); f 1864 applications/mp42ts/main.c if (f) { f 1865 applications/mp42ts/main.c gf_fclose(f); f 1912 applications/mp42ts/main.c FILE *f; f 1919 applications/mp42ts/main.c f = gf_fopen(next_arg, "rb"); f 1920 applications/mp42ts/main.c if (!f) { f 1924 applications/mp42ts/main.c gf_fseek(f, 0, SEEK_END); f 1925 applications/mp42ts/main.c *video_buffer_size = (u32)gf_ftell(f); f 1926 applications/mp42ts/main.c gf_fseek(f, 0, SEEK_SET); f 1930 applications/mp42ts/main.c s32 read = (u32) fread(*video_buffer, sizeof(char), *video_buffer_size, f); f 1934 applications/mp42ts/main.c gf_fclose(f); f 562 applications/mp4box/filedump.c GF_FieldInfo f; f 606 applications/mp4box/filedump.c if (gf_node_get_field_by_name(node, szField, &f) != GF_OK) { f 621 applications/mp4box/filedump.c if (gf_node_in_table_by_tag(i, f.NDTtype)) { f 635 applications/mp4box/filedump.c gf_node_get_field(node, i, &f); f 637 applications/mp4box/filedump.c fprintf(stderr, "\t%s=\"...\"\n", f.name); f 641 applications/mp4box/filedump.c fprintf(stderr, "\t%s %s %s", gf_sg_vrml_get_event_type_name(f.eventType, 0), gf_sg_vrml_get_field_type_by_name(f.fieldType), f.name); f 642 applications/mp4box/filedump.c if (f.fieldType==GF_SG_VRML_SFNODE) fprintf(stderr, " NULL"); f 643 applications/mp4box/filedump.c else if (f.fieldType==GF_SG_VRML_MFNODE) fprintf(stderr, " []"); f 644 applications/mp4box/filedump.c else if (gf_sg_vrml_is_sf_field(f.fieldType)) { f 646 applications/mp4box/filedump.c PrintNodeSFField(f.fieldType, f.far_ptr); f 650 applications/mp4box/filedump.c GenMFField *mffield = (GenMFField *) f.far_ptr; f 652 applications/mp4box/filedump.c sftype = gf_sg_vrml_get_sf_type(f.fieldType); f 655 applications/mp4box/filedump.c gf_sg_vrml_mf_get_item(f.far_ptr, f.fieldType, &ptr, i); f 830 applications/mp4box/fileimport.c FILE *f = gf_fopen(rvc_config, "rb"); f 831 applications/mp4box/fileimport.c if (f) { f 835 applications/mp4box/fileimport.c gf_fseek(f, 0, SEEK_END); f 836 applications/mp4box/fileimport.c size = (u32) gf_ftell(f); f 837 applications/mp4box/fileimport.c gf_fseek(f, 0, SEEK_SET); f 839 applications/mp4box/fileimport.c read = fread(data, 1, size, f); f 840 applications/mp4box/fileimport.c gf_fclose(f); f 2448 applications/mp4box/fileimport.c FILE *f; f 2561 applications/mp4box/fileimport.c f = gf_fopen(szName, "wb"); f 2562 applications/mp4box/fileimport.c gf_fwrite(data, data_len, 1, f); f 2563 applications/mp4box/fileimport.c gf_fclose(f); f 997 applications/mp4client/main.c u32 h, m, s, ms, f, fps; f 1002 applications/mp4client/main.c if (sscanf(arg, "%02ud:%02ud:%02ud;%02ud/%02ud", &h, &m, &s, &f, &fps)==5) { f 1004 applications/mp4client/main.c if (fps) sec = ((Double)f) / fps; f 41 applications/osmo4_android_studio/app/src/main/java/com/gpac/Osmo4/GPACInstance.java for (File f : root.listFiles()) { f 42 applications/osmo4_android_studio/app/src/main/java/com/gpac/Osmo4/GPACInstance.java sb.append(incr).append(f.getName()); f 43 applications/osmo4_android_studio/app/src/main/java/com/gpac/Osmo4/GPACInstance.java if (f.isDirectory()) { f 45 applications/osmo4_android_studio/app/src/main/java/com/gpac/Osmo4/GPACInstance.java listing(sb, f, inc + 2); f 47 applications/osmo4_android_studio/app/src/main/java/com/gpac/Osmo4/GPACInstance.java sb.append(" [").append(f.length() + " bytes]\n"); //$NON-NLS-1$//$NON-NLS-2$ f 191 applications/osmo4_android_studio/app/src/main/java/com/gpac/Osmo4/GpacConfig.java File f = new File(path); f 192 applications/osmo4_android_studio/app/src/main/java/com/gpac/Osmo4/GpacConfig.java if (!f.exists()) { f 193 applications/osmo4_android_studio/app/src/main/java/com/gpac/Osmo4/GpacConfig.java if (!f.mkdirs()) { f 855 applications/osmo4_android_studio/app/src/main/java/com/gpac/Osmo4/Osmo4.java for (File f : files) { f 856 applications/osmo4_android_studio/app/src/main/java/com/gpac/Osmo4/Osmo4.java if (f.isFile()) f 857 applications/osmo4_android_studio/app/src/main/java/com/gpac/Osmo4/Osmo4.java if (!f.delete()) { f 858 applications/osmo4_android_studio/app/src/main/java/com/gpac/Osmo4/Osmo4.java Log.w(LOG_OSMO_TAG, "Failed to delete file " + f); //$NON-NLS-1$ f 860 applications/osmo4_android_studio/app/src/main/java/com/gpac/Osmo4/Osmo4.java Log.v(LOG_OSMO_TAG, f + " has been deleted"); //$NON-NLS-1$ f 888 applications/osmo4_android_studio/app/src/main/java/com/gpac/Osmo4/Osmo4.java File f = gpacConfig.getGpacConfigFile(); f 889 applications/osmo4_android_studio/app/src/main/java/com/gpac/Osmo4/Osmo4.java if (f.exists() && !f.delete()) { f 890 applications/osmo4_android_studio/app/src/main/java/com/gpac/Osmo4/Osmo4.java Log.e(LOG_OSMO_TAG, "Failed to delete " + f.getAbsolutePath()); //$NON-NLS-1$ f 892 applications/osmo4_android_studio/app/src/main/java/com/gpac/Osmo4/Osmo4.java f = gpacConfig.getGpacLastRevFile(); f 893 applications/osmo4_android_studio/app/src/main/java/com/gpac/Osmo4/Osmo4.java if (f.exists() && !f.delete()) { f 894 applications/osmo4_android_studio/app/src/main/java/com/gpac/Osmo4/Osmo4.java Log.e(LOG_OSMO_TAG, "Failed to delete " + f.getAbsolutePath()); //$NON-NLS-1$ f 101 applications/osmo4_android_studio/app/src/main/java/com/gpac/Osmo4/extra/FileChooserFragment.java File f = adapter.getItem(position); f 102 applications/osmo4_android_studio/app/src/main/java/com/gpac/Osmo4/extra/FileChooserFragment.java if (f.isDirectory()) f 103 applications/osmo4_android_studio/app/src/main/java/com/gpac/Osmo4/extra/FileChooserFragment.java onDirectoryClick(f); f 104 applications/osmo4_android_studio/app/src/main/java/com/gpac/Osmo4/extra/FileChooserFragment.java else if (f.isFile()) f 105 applications/osmo4_android_studio/app/src/main/java/com/gpac/Osmo4/extra/FileChooserFragment.java onFileClick(f); f 109 applications/osmo4_android_studio/app/src/main/java/com/gpac/Osmo4/extra/FileChooserFragment.java private void onFileClick(File f) { f 111 applications/osmo4_android_studio/app/src/main/java/com/gpac/Osmo4/extra/FileChooserFragment.java data.setData(Uri.fromFile(f)); f 116 applications/osmo4_android_studio/app/src/main/java/com/gpac/Osmo4/extra/FileChooserFragment.java private void onDirectoryClick(File f) { f 117 applications/osmo4_android_studio/app/src/main/java/com/gpac/Osmo4/extra/FileChooserFragment.java if (f.canRead()) f 118 applications/osmo4_android_studio/app/src/main/java/com/gpac/Osmo4/extra/FileChooserFragment.java populateList(f); f 119 applications/osmo4_android_studio/app/src/main/java/com/gpac/Osmo4/extra/FileChooserFragment.java else Toast.makeText(getActivity(), "Cannot read " + f, Toast.LENGTH_LONG).show(); f 169 applications/osmo4_android_studio/app/src/main/java/com/gpac/Osmo4/extra/FileManager.java for (File f : file.listFiles()) { f 170 applications/osmo4_android_studio/app/src/main/java/com/gpac/Osmo4/extra/FileManager.java if (f.isFile()) size += f.length(); f 171 applications/osmo4_android_studio/app/src/main/java/com/gpac/Osmo4/extra/FileManager.java else size += getFolderSize(f); f 843 applications/testapps/svg2bifs/main.c Fixed *f = gf_list_get(*converter->all_atts.keyTimes, i); f 845 applications/testapps/svg2bifs/main.c *g = *f; f 885 applications/testapps/svg2bifs/main.c Fixed *f = gf_list_get(*converter->all_atts.keyTimes, i); f 887 applications/testapps/svg2bifs/main.c *g = *f; f 932 applications/testapps/svg2bifs/main.c Fixed *f = gf_list_get(*converter->all_atts.keyTimes, i); f 934 applications/testapps/svg2bifs/main.c *g = *f; f 36 applications/ts2hds/f4m.c FILE *f; f 44 applications/ts2hds/f4m.c FILE *f; f 52 applications/ts2hds/f4m.c fprintf(as->f, "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n"); f 53 applications/ts2hds/f4m.c fprintf(as->f, "<manifest xmlns=\"http://ns.adobe.com/f4m/1.0\">\n"); f 54 applications/ts2hds/f4m.c fprintf(as->f, "<id>%s</id>\n", as->id); f 56 applications/ts2hds/f4m.c fprintf(as->f, "<baseURL>%s</baseURL>\n", as->base_url); f 57 applications/ts2hds/f4m.c fprintf(as->f, "<bootstrapInfo profile=\"named\" id=\"boot_%s_%d\" url=\"%s_%d.bootstrap\"/>\n", as->id, as->bitrate, as->id, as->bitrate); f 58 applications/ts2hds/f4m.c fprintf(as->f, "<media url=\"%s_%u_\" bitrate=\"%u\" bootstrapInfoId=\"boot_%s_%d\"/>\n", as->id, as->bitrate, as->bitrate, as->id, as->bitrate); f 59 applications/ts2hds/f4m.c fprintf(as->f, "</manifest>\n"); f 73 applications/ts2hds/f4m.c am->f = gf_fopen(filename, "wt"); f 74 applications/ts2hds/f4m.c if (!am->f) { f 88 applications/ts2hds/f4m.c as->f = gf_fopen(filename, "wt"); f 89 applications/ts2hds/f4m.c if (!as->f) { f 107 applications/ts2hds/f4m.c if (am->f) f 108 applications/ts2hds/f4m.c gf_fclose(am->f); f 113 applications/ts2hds/f4m.c if (as->f) f 114 applications/ts2hds/f4m.c gf_fclose(as->f); f 133 applications/ts2hds/f4m.c fprintf(am->f, "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n"); f 134 applications/ts2hds/f4m.c fprintf(am->f, "<manifest xmlns=\"http://ns.adobe.com/f4m/2.0\">\n"); f 135 applications/ts2hds/f4m.c fprintf(am->f, "<id>%s</id>\n", am->id); f 136 applications/ts2hds/f4m.c fprintf(am->f, "<baseURL>%s</baseURL>\n", am->base_url); f 137 applications/ts2hds/f4m.c fprintf(am->f, "<streamType>live</streamType>\n"); f 144 applications/ts2hds/f4m.c fprintf(am->f, "<bootstrapInfo profile=\"named\" id=\"boot_%s_%d\">\n", as->id, as->bitrate); f 146 applications/ts2hds/f4m.c fwrite(bootstrap64, bootstrap64_len, 1, am->f); f 151 applications/ts2hds/f4m.c fprintf(am->f, "\n</bootstrapInfo>\n"); f 167 applications/ts2hds/f4m.c fprintf(am->f, "<media href=\"%s_%s_%d.f4m\" bitrate=\"%d\"/>\n", am->id, as->id, as->bitrate, as->bitrate); f 170 applications/ts2hds/f4m.c fprintf(am->f, "</manifest>\n"); f 162 applications/ts2hds/main.c FILE *f = gf_fopen("metamoov64"/*input*/, "rt"); f 163 applications/ts2hds/main.c gf_fseek(f, 0, SEEK_END); f 164 applications/ts2hds/main.c metamoov64_len = (u32)gf_ftell(f); f 165 applications/ts2hds/main.c gf_fseek(f, 0, SEEK_SET); f 166 applications/ts2hds/main.c fread(metamoov64, metamoov64_len, 1, f); f 168 applications/ts2hds/main.c gf_fclose(f); f 169 applications/ts2hds/main.c f = gf_fopen("metamoov", "wb"); f 170 applications/ts2hds/main.c fwrite(metamoov, metamoov_len, 1, f); f 171 applications/ts2hds/main.c gf_fclose(f); f 185 applications/ts2hds/main.c FILE *f = gf_fopen("bootstrap64"/*input*/, "rt"); f 186 applications/ts2hds/main.c gf_fseek(f, 0, SEEK_END); f 187 applications/ts2hds/main.c bootstrap64_len = (u32)gf_ftell(f); f 188 applications/ts2hds/main.c gf_fseek(f, 0, SEEK_SET); f 189 applications/ts2hds/main.c fread(bootstrap64, bootstrap64_len, 1, f); f 192 applications/ts2hds/main.c FILE *f = gf_fopen("bootstrap.bin"/*input*/, "rb"); f 193 applications/ts2hds/main.c gf_fseek(f, 0, SEEK_END); f 194 applications/ts2hds/main.c bootstrap_len = (u32)gf_ftell(f); f 195 applications/ts2hds/main.c gf_fseek(f, 0, SEEK_SET); f 196 applications/ts2hds/main.c fread(bootstrap, bootstrap_len, 1, f); f 209 applications/ts2hds/main.c gf_fclose(f); f 210 applications/ts2hds/main.c f = gf_fopen("bootstrap", "wt"); f 212 applications/ts2hds/main.c fwrite(bootstrap64, bootstrap64_len, 1, f); f 213 applications/ts2hds/main.c fprintf(f, "\n\n"); f 214 applications/ts2hds/main.c abst_dump((GF_Box*)abst, f); f 215 applications/ts2hds/main.c gf_fclose(f); f 161 extra_lib/include/avcap/FormatManager.h inline Format(const std::string& n, uint32_t f): f 162 extra_lib/include/avcap/FormatManager.h mName(n), mFourcc(f) f 158 extra_lib/include/avcap/Tuner_avcap.h virtual inline int setFreq(double f) f 80 extra_lib/include/avcap/linux/V4L2_FormatManager.h void queryResolutions(Format* f); f 114 extra_lib/include/avcap/linux/V4L2_Tuner.h int setFreq(double f); f 119 extra_lib/include/avcap/windows/DS_Tuner.h int setFreq(double f); f 5036 extra_lib/include/ffmpeg_android/libavcodec/avcodec.h AVBitStreamFilter *av_bitstream_filter_next(const AVBitStreamFilter *f); f 1793 extra_lib/include/ffmpeg_android/libavformat/avformat.h AVInputFormat *av_iformat_next(const AVInputFormat *f); f 1800 extra_lib/include/ffmpeg_android/libavformat/avformat.h AVOutputFormat *av_oformat_next(const AVOutputFormat *f); f 2424 extra_lib/include/ffmpeg_android/libavformat/avformat.h void av_hex_dump(FILE *f, const uint8_t *buf, int size); f 2448 extra_lib/include/ffmpeg_android/libavformat/avformat.h void av_pkt_dump2(FILE *f, const AVPacket *pkt, int dump_payload, const AVStream *st); f 56 extra_lib/include/ffmpeg_android/libavutil/fifo.h void av_fifo_free(AVFifoBuffer *f); f 62 extra_lib/include/ffmpeg_android/libavutil/fifo.h void av_fifo_freep(AVFifoBuffer **f); f 68 extra_lib/include/ffmpeg_android/libavutil/fifo.h void av_fifo_reset(AVFifoBuffer *f); f 76 extra_lib/include/ffmpeg_android/libavutil/fifo.h int av_fifo_size(FF_CONST_AVUTIL53 AVFifoBuffer *f); f 84 extra_lib/include/ffmpeg_android/libavutil/fifo.h int av_fifo_space(FF_CONST_AVUTIL53 AVFifoBuffer *f); f 93 extra_lib/include/ffmpeg_android/libavutil/fifo.h int av_fifo_generic_read(AVFifoBuffer *f, void *dest, int buf_size, void (*func)(void*, void*, int)); f 108 extra_lib/include/ffmpeg_android/libavutil/fifo.h int av_fifo_generic_write(AVFifoBuffer *f, void *src, int size, int (*func)(void*, void*, int)); f 118 extra_lib/include/ffmpeg_android/libavutil/fifo.h int av_fifo_realloc2(AVFifoBuffer *f, unsigned int size); f 129 extra_lib/include/ffmpeg_android/libavutil/fifo.h int av_fifo_grow(AVFifoBuffer *f, unsigned int additional_space); f 136 extra_lib/include/ffmpeg_android/libavutil/fifo.h void av_fifo_drain(AVFifoBuffer *f, int size); f 148 extra_lib/include/ffmpeg_android/libavutil/fifo.h static inline uint8_t *av_fifo_peek2(const AVFifoBuffer *f, int offs) f 150 extra_lib/include/ffmpeg_android/libavutil/fifo.h uint8_t *ptr = f->rptr + offs; f 151 extra_lib/include/ffmpeg_android/libavutil/fifo.h if (ptr >= f->end) f 152 extra_lib/include/ffmpeg_android/libavutil/fifo.h ptr = f->buffer + (ptr - f->end); f 153 extra_lib/include/ffmpeg_android/libavutil/fifo.h else if (ptr < f->buffer) f 154 extra_lib/include/ffmpeg_android/libavutil/fifo.h ptr = f->end - (f->buffer - ptr); f 214 extra_lib/include/ffmpeg_android/libavutil/fifo.h void av_fifo_free(AVFifoBuffer *f); f 220 extra_lib/include/ffmpeg_android/libavutil/fifo.h void av_fifo_freep(AVFifoBuffer **f); f 226 extra_lib/include/ffmpeg_android/libavutil/fifo.h void av_fifo_reset(AVFifoBuffer *f); f 234 extra_lib/include/ffmpeg_android/libavutil/fifo.h int av_fifo_size(FF_CONST_AVUTIL53 AVFifoBuffer *f); f 242 extra_lib/include/ffmpeg_android/libavutil/fifo.h int av_fifo_space(FF_CONST_AVUTIL53 AVFifoBuffer *f); f 251 extra_lib/include/ffmpeg_android/libavutil/fifo.h int av_fifo_generic_read(AVFifoBuffer *f, void *dest, int buf_size, void (*func)(void*, void*, int)); f 266 extra_lib/include/ffmpeg_android/libavutil/fifo.h int av_fifo_generic_write(AVFifoBuffer *f, void *src, int size, int (*func)(void*, void*, int)); f 276 extra_lib/include/ffmpeg_android/libavutil/fifo.h int av_fifo_realloc2(AVFifoBuffer *f, unsigned int size); f 287 extra_lib/include/ffmpeg_android/libavutil/fifo.h int av_fifo_grow(AVFifoBuffer *f, unsigned int additional_space); f 294 extra_lib/include/ffmpeg_android/libavutil/fifo.h void av_fifo_drain(AVFifoBuffer *f, int size); f 306 extra_lib/include/ffmpeg_android/libavutil/fifo.h static inline uint8_t *av_fifo_peek2(const AVFifoBuffer *f, int offs) f 308 extra_lib/include/ffmpeg_android/libavutil/fifo.h uint8_t *ptr = f->rptr + offs; f 309 extra_lib/include/ffmpeg_android/libavutil/fifo.h if (ptr >= f->end) f 310 extra_lib/include/ffmpeg_android/libavutil/fifo.h ptr = f->buffer + (ptr - f->end); f 311 extra_lib/include/ffmpeg_android/libavutil/fifo.h else if (ptr < f->buffer) f 312 extra_lib/include/ffmpeg_android/libavutil/fifo.h ptr = f->end - (f->buffer - ptr); f 579 extra_lib/include/ffmpeg_android/libavutil/frame.h int8_t *av_frame_get_qp_table(AVFrame *f, int *stride, int *type); f 580 extra_lib/include/ffmpeg_android/libavutil/frame.h int av_frame_set_qp_table(AVFrame *f, AVBufferRef *buf, int stride, int type); f 1338 extra_lib/include/ffmpeg_android/libavutil/frame.h int8_t *av_frame_get_qp_table(AVFrame *f, int *stride, int *type); f 1339 extra_lib/include/ffmpeg_android/libavutil/frame.h int av_frame_set_qp_table(AVFrame *f, AVBufferRef *buf, int stride, int type); f 29 extra_lib/include/ffmpeg_android/libavutil/intfloat.h float f; f 34 extra_lib/include/ffmpeg_android/libavutil/intfloat.h double f; f 44 extra_lib/include/ffmpeg_android/libavutil/intfloat.h return v.f; f 50 extra_lib/include/ffmpeg_android/libavutil/intfloat.h static av_always_inline uint32_t av_float2int(float f) f 53 extra_lib/include/ffmpeg_android/libavutil/intfloat.h v.f = f; f 64 extra_lib/include/ffmpeg_android/libavutil/intfloat.h return v.f; f 70 extra_lib/include/ffmpeg_android/libavutil/intfloat.h static av_always_inline uint64_t av_double2int(double f) f 73 extra_lib/include/ffmpeg_android/libavutil/intfloat.h v.f = f; f 106 extra_lib/include/ffmpeg_android/libavutil/intfloat.h float f; f 111 extra_lib/include/ffmpeg_android/libavutil/intfloat.h double f; f 121 extra_lib/include/ffmpeg_android/libavutil/intfloat.h return v.f; f 127 extra_lib/include/ffmpeg_android/libavutil/intfloat.h static av_always_inline uint32_t av_float2int(float f) f 130 extra_lib/include/ffmpeg_android/libavutil/intfloat.h v.f = f; f 141 extra_lib/include/ffmpeg_android/libavutil/intfloat.h return v.f; f 147 extra_lib/include/ffmpeg_android/libavutil/intfloat.h static av_always_inline uint64_t av_double2int(double f) f 150 extra_lib/include/ffmpeg_android/libavutil/intfloat.h v.f = f; f 191 extra_lib/include/freetype/freetype/ftcache.h #define FTC_FONT_HASH( f ) \ f 192 extra_lib/include/freetype/freetype/ftcache.h (FT_UInt32)( FTC_FACE_ID_HASH((f)->face_id) ^ \ f 193 extra_lib/include/freetype/freetype/ftcache.h ((f)->pix_width << 8) ^ \ f 194 extra_lib/include/freetype/freetype/ftcache.h ((f)->pix_height) ) f 99 extra_lib/include/freetype/freetype/internal/ftstream.h #define FT_FIELD_SIZE( f ) \ f 100 extra_lib/include/freetype/freetype/internal/ftstream.h (FT_Byte)sizeof ( ((FT_STRUCTURE*)0)->f ) f 102 extra_lib/include/freetype/freetype/internal/ftstream.h #define FT_FIELD_SIZE_DELTA( f ) \ f 103 extra_lib/include/freetype/freetype/internal/ftstream.h (FT_Byte)sizeof ( ((FT_STRUCTURE*)0)->f[0] ) f 105 extra_lib/include/freetype/freetype/internal/ftstream.h #define FT_FIELD_OFFSET( f ) \ f 106 extra_lib/include/freetype/freetype/internal/ftstream.h (FT_UShort)( offsetof( FT_STRUCTURE, f ) ) f 120 extra_lib/include/freetype/freetype/internal/ftstream.h #define FT_FRAME_LONG( f ) FT_FRAME_FIELD( ft_frame_long_be, f ) f 121 extra_lib/include/freetype/freetype/internal/ftstream.h #define FT_FRAME_ULONG( f ) FT_FRAME_FIELD( ft_frame_ulong_be, f ) f 122 extra_lib/include/freetype/freetype/internal/ftstream.h #define FT_FRAME_SHORT( f ) FT_FRAME_FIELD( ft_frame_short_be, f ) f 123 extra_lib/include/freetype/freetype/internal/ftstream.h #define FT_FRAME_USHORT( f ) FT_FRAME_FIELD( ft_frame_ushort_be, f ) f 124 extra_lib/include/freetype/freetype/internal/ftstream.h #define FT_FRAME_OFF3( f ) FT_FRAME_FIELD( ft_frame_off3_be, f ) f 125 extra_lib/include/freetype/freetype/internal/ftstream.h #define FT_FRAME_UOFF3( f ) FT_FRAME_FIELD( ft_frame_uoff3_be, f ) f 126 extra_lib/include/freetype/freetype/internal/ftstream.h #define FT_FRAME_BYTE( f ) FT_FRAME_FIELD( ft_frame_byte, f ) f 127 extra_lib/include/freetype/freetype/internal/ftstream.h #define FT_FRAME_CHAR( f ) FT_FRAME_FIELD( ft_frame_schar, f ) f 129 extra_lib/include/freetype/freetype/internal/ftstream.h #define FT_FRAME_LONG_LE( f ) FT_FRAME_FIELD( ft_frame_long_le, f ) f 130 extra_lib/include/freetype/freetype/internal/ftstream.h #define FT_FRAME_ULONG_LE( f ) FT_FRAME_FIELD( ft_frame_ulong_le, f ) f 131 extra_lib/include/freetype/freetype/internal/ftstream.h #define FT_FRAME_SHORT_LE( f ) FT_FRAME_FIELD( ft_frame_short_le, f ) f 132 extra_lib/include/freetype/freetype/internal/ftstream.h #define FT_FRAME_USHORT_LE( f ) FT_FRAME_FIELD( ft_frame_ushort_le, f ) f 133 extra_lib/include/freetype/freetype/internal/ftstream.h #define FT_FRAME_OFF3_LE( f ) FT_FRAME_FIELD( ft_frame_off3_le, f ) f 134 extra_lib/include/freetype/freetype/internal/ftstream.h #define FT_FRAME_UOFF3_LE( f ) FT_FRAME_FIELD( ft_frame_uoff3_le, f ) f 136 extra_lib/include/js/jsapi.h #define JSFUN_DISJOINT_FLAGS(f) ((f) & 0x0f) f 137 extra_lib/include/js/jsapi.h #define JSFUN_GSFLAGS(f) ((f) & (JSFUN_GETTER | JSFUN_SETTER)) f 145 extra_lib/include/js/jsapi.h #define JSFUN_GETTER_TEST(f) (JSFUN_GSFLAGS(f) == JSFUN_GETTER) f 146 extra_lib/include/js/jsapi.h #define JSFUN_SETTER_TEST(f) (JSFUN_GSFLAGS(f) == JSFUN_SETTER) f 147 extra_lib/include/js/jsapi.h #define JSFUN_FLAGS_TEST(f,t) (JSFUN_GSFLAGS(~(f)) ? (f) & (t) : 0) f 148 extra_lib/include/js/jsapi.h #define JSFUN_BOUND_METHOD_TEST(f) JSFUN_FLAGS_TEST(f, JSFUN_BOUND_METHOD) f 149 extra_lib/include/js/jsapi.h #define JSFUN_HEAVYWEIGHT_TEST(f) JSFUN_FLAGS_TEST(f, JSFUN_HEAVYWEIGHT) f 151 extra_lib/include/js/jsapi.h #define JSFUN_GSFLAG2ATTR(f) (JSFUN_GETTER_TEST(f) ? JSPROP_GETTER : \ f 152 extra_lib/include/js/jsapi.h JSFUN_SETTER_TEST(f) ? JSPROP_SETTER : 0) f 154 extra_lib/include/js/jsapi.h #define JSFUN_THISP_FLAGS(f) (JSFUN_GSFLAGS(~(f)) ? 0 : \ f 155 extra_lib/include/js/jsapi.h (f) & JSFUN_THISP_PRIMITIVE) f 156 extra_lib/include/js/jsapi.h #define JSFUN_THISP_TEST(f,t) ((f) == (t) || (f) == JSFUN_THISP_PRIMITIVE) f 167 extra_lib/include/js/jsapi.h #define JSFUN_GETTER_TEST(f) ((f) & JSFUN_GETTER) f 168 extra_lib/include/js/jsapi.h #define JSFUN_SETTER_TEST(f) ((f) & JSFUN_SETTER) f 169 extra_lib/include/js/jsapi.h #define JSFUN_BOUND_METHOD_TEST(f) ((f) & JSFUN_BOUND_METHOD) f 170 extra_lib/include/js/jsapi.h #define JSFUN_HEAVYWEIGHT_TEST(f) ((f) & JSFUN_HEAVYWEIGHT) f 172 extra_lib/include/js/jsapi.h #define JSFUN_GSFLAG2ATTR(f) JSFUN_GSFLAGS(f) f 174 extra_lib/include/js/jsapi.h #define JSFUN_THISP_FLAGS(f) (f) f 175 extra_lib/include/js/jsapi.h #define JSFUN_THISP_TEST(f,t) ((f) & t) f 177 extra_lib/include/js/jslong.h #define JSLL_L2F(f, l) ((f) = (JSFloat64)(l)) f 182 extra_lib/include/js/jslong.h #define JSLL_F2L(l, f) ((l) = (JSInt64)(f)) f 387 extra_lib/include/js/jslong.h #define JSLL_L2F(f, l) { double _d; JSLL_L2D(_d, l); (f) = (JSFloat64)_d; } f 406 extra_lib/include/js/jslong.h #define JSLL_F2L(l, f) { double _d = (double)f; JSLL_D2L(l, _d); } f 4949 extra_lib/include/libavcodec/avcodec.h AVBitStreamFilter *av_bitstream_filter_next(AVBitStreamFilter *f); f 1636 extra_lib/include/libavformat/avformat.h AVInputFormat *av_iformat_next(AVInputFormat *f); f 1643 extra_lib/include/libavformat/avformat.h AVOutputFormat *av_oformat_next(AVOutputFormat *f); f 2256 extra_lib/include/libavformat/avformat.h void av_hex_dump(FILE *f, const uint8_t *buf, int size); f 2280 extra_lib/include/libavformat/avformat.h void av_pkt_dump2(FILE *f, AVPacket *pkt, int dump_payload, AVStream *st); f 48 extra_lib/include/libavutil/fifo.h void av_fifo_free(AVFifoBuffer *f); f 54 extra_lib/include/libavutil/fifo.h void av_fifo_reset(AVFifoBuffer *f); f 62 extra_lib/include/libavutil/fifo.h int av_fifo_size(AVFifoBuffer *f); f 70 extra_lib/include/libavutil/fifo.h int av_fifo_space(AVFifoBuffer *f); f 79 extra_lib/include/libavutil/fifo.h int av_fifo_generic_read(AVFifoBuffer *f, void *dest, int buf_size, void (*func)(void*, void*, int)); f 94 extra_lib/include/libavutil/fifo.h int av_fifo_generic_write(AVFifoBuffer *f, void *src, int size, int (*func)(void*, void*, int)); f 104 extra_lib/include/libavutil/fifo.h int av_fifo_realloc2(AVFifoBuffer *f, unsigned int size); f 115 extra_lib/include/libavutil/fifo.h int av_fifo_grow(AVFifoBuffer *f, unsigned int additional_space); f 122 extra_lib/include/libavutil/fifo.h void av_fifo_drain(AVFifoBuffer *f, int size); f 134 extra_lib/include/libavutil/fifo.h static inline uint8_t *av_fifo_peek2(const AVFifoBuffer *f, int offs) f 136 extra_lib/include/libavutil/fifo.h uint8_t *ptr = f->rptr + offs; f 137 extra_lib/include/libavutil/fifo.h if (ptr >= f->end) f 138 extra_lib/include/libavutil/fifo.h ptr = f->buffer + (ptr - f->end); f 139 extra_lib/include/libavutil/fifo.h else if (ptr < f->buffer) f 140 extra_lib/include/libavutil/fifo.h ptr = f->end - (f->buffer - ptr); f 564 extra_lib/include/libavutil/frame.h int8_t *av_frame_get_qp_table(AVFrame *f, int *stride, int *type); f 565 extra_lib/include/libavutil/frame.h int av_frame_set_qp_table(AVFrame *f, AVBufferRef *buf, int stride, int type); f 29 extra_lib/include/libavutil/intfloat.h float f; f 34 extra_lib/include/libavutil/intfloat.h double f; f 44 extra_lib/include/libavutil/intfloat.h return v.f; f 50 extra_lib/include/libavutil/intfloat.h static av_always_inline uint32_t av_float2int(float f) f 53 extra_lib/include/libavutil/intfloat.h v.f = f; f 64 extra_lib/include/libavutil/intfloat.h return v.f; f 70 extra_lib/include/libavutil/intfloat.h static av_always_inline uint64_t av_double2int(double f) f 73 extra_lib/include/libavutil/intfloat.h v.f = f; f 465 extra_lib/include/openssl/crypto.h int CRYPTO_set_mem_functions(void *(*m)(size_t),void *(*r)(void *,size_t), void (*f)(void *)); f 469 extra_lib/include/openssl/crypto.h void (*f)(void *)); f 474 extra_lib/include/openssl/crypto.h void (*f)(void *,int), f 477 extra_lib/include/openssl/crypto.h void CRYPTO_get_mem_functions(void *(**m)(size_t),void *(**r)(void *, size_t), void (**f)(void *)); f 478 extra_lib/include/openssl/crypto.h void CRYPTO_get_locked_mem_functions(void *(**m)(size_t), void (**f)(void *)); f 481 extra_lib/include/openssl/crypto.h void (**f)(void *)); f 483 extra_lib/include/openssl/crypto.h void (**f)(void *)); f 486 extra_lib/include/openssl/crypto.h void (**f)(void *,int), f 204 extra_lib/include/openssl/err.h #define SYSerr(f,r) ERR_PUT_error(ERR_LIB_SYS,(f),(r),__FILE__,__LINE__) f 205 extra_lib/include/openssl/err.h #define BNerr(f,r) ERR_PUT_error(ERR_LIB_BN,(f),(r),__FILE__,__LINE__) f 206 extra_lib/include/openssl/err.h #define RSAerr(f,r) ERR_PUT_error(ERR_LIB_RSA,(f),(r),__FILE__,__LINE__) f 207 extra_lib/include/openssl/err.h #define DHerr(f,r) ERR_PUT_error(ERR_LIB_DH,(f),(r),__FILE__,__LINE__) f 208 extra_lib/include/openssl/err.h #define EVPerr(f,r) ERR_PUT_error(ERR_LIB_EVP,(f),(r),__FILE__,__LINE__) f 209 extra_lib/include/openssl/err.h #define BUFerr(f,r) ERR_PUT_error(ERR_LIB_BUF,(f),(r),__FILE__,__LINE__) f 210 extra_lib/include/openssl/err.h #define OBJerr(f,r) ERR_PUT_error(ERR_LIB_OBJ,(f),(r),__FILE__,__LINE__) f 211 extra_lib/include/openssl/err.h #define PEMerr(f,r) ERR_PUT_error(ERR_LIB_PEM,(f),(r),__FILE__,__LINE__) f 212 extra_lib/include/openssl/err.h #define DSAerr(f,r) ERR_PUT_error(ERR_LIB_DSA,(f),(r),__FILE__,__LINE__) f 213 extra_lib/include/openssl/err.h #define X509err(f,r) ERR_PUT_error(ERR_LIB_X509,(f),(r),__FILE__,__LINE__) f 214 extra_lib/include/openssl/err.h #define ASN1err(f,r) ERR_PUT_error(ERR_LIB_ASN1,(f),(r),__FILE__,__LINE__) f 215 extra_lib/include/openssl/err.h #define CONFerr(f,r) ERR_PUT_error(ERR_LIB_CONF,(f),(r),__FILE__,__LINE__) f 216 extra_lib/include/openssl/err.h #define CRYPTOerr(f,r) ERR_PUT_error(ERR_LIB_CRYPTO,(f),(r),__FILE__,__LINE__) f 217 extra_lib/include/openssl/err.h #define ECerr(f,r) ERR_PUT_error(ERR_LIB_EC,(f),(r),__FILE__,__LINE__) f 218 extra_lib/include/openssl/err.h #define SSLerr(f,r) ERR_PUT_error(ERR_LIB_SSL,(f),(r),__FILE__,__LINE__) f 219 extra_lib/include/openssl/err.h #define BIOerr(f,r) ERR_PUT_error(ERR_LIB_BIO,(f),(r),__FILE__,__LINE__) f 220 extra_lib/include/openssl/err.h #define PKCS7err(f,r) ERR_PUT_error(ERR_LIB_PKCS7,(f),(r),__FILE__,__LINE__) f 221 extra_lib/include/openssl/err.h #define X509V3err(f,r) ERR_PUT_error(ERR_LIB_X509V3,(f),(r),__FILE__,__LINE__) f 222 extra_lib/include/openssl/err.h #define PKCS12err(f,r) ERR_PUT_error(ERR_LIB_PKCS12,(f),(r),__FILE__,__LINE__) f 223 extra_lib/include/openssl/err.h #define RANDerr(f,r) ERR_PUT_error(ERR_LIB_RAND,(f),(r),__FILE__,__LINE__) f 224 extra_lib/include/openssl/err.h #define DSOerr(f,r) ERR_PUT_error(ERR_LIB_DSO,(f),(r),__FILE__,__LINE__) f 225 extra_lib/include/openssl/err.h #define ENGINEerr(f,r) ERR_PUT_error(ERR_LIB_ENGINE,(f),(r),__FILE__,__LINE__) f 226 extra_lib/include/openssl/err.h #define OCSPerr(f,r) ERR_PUT_error(ERR_LIB_OCSP,(f),(r),__FILE__,__LINE__) f 227 extra_lib/include/openssl/err.h #define UIerr(f,r) ERR_PUT_error(ERR_LIB_UI,(f),(r),__FILE__,__LINE__) f 228 extra_lib/include/openssl/err.h #define COMPerr(f,r) ERR_PUT_error(ERR_LIB_COMP,(f),(r),__FILE__,__LINE__) f 229 extra_lib/include/openssl/err.h #define ECDSAerr(f,r) ERR_PUT_error(ERR_LIB_ECDSA,(f),(r),__FILE__,__LINE__) f 230 extra_lib/include/openssl/err.h #define ECDHerr(f,r) ERR_PUT_error(ERR_LIB_ECDH,(f),(r),__FILE__,__LINE__) f 231 extra_lib/include/openssl/err.h #define STOREerr(f,r) ERR_PUT_error(ERR_LIB_STORE,(f),(r),__FILE__,__LINE__) f 232 extra_lib/include/openssl/err.h #define FIPSerr(f,r) ERR_PUT_error(ERR_LIB_FIPS,(f),(r),__FILE__,__LINE__) f 233 extra_lib/include/openssl/err.h #define CMSerr(f,r) ERR_PUT_error(ERR_LIB_CMS,(f),(r),__FILE__,__LINE__) f 234 extra_lib/include/openssl/err.h #define TSerr(f,r) ERR_PUT_error(ERR_LIB_TS,(f),(r),__FILE__,__LINE__) f 235 extra_lib/include/openssl/err.h #define HMACerr(f,r) ERR_PUT_error(ERR_LIB_HMAC,(f),(r),__FILE__,__LINE__) f 236 extra_lib/include/openssl/err.h #define JPAKEerr(f,r) ERR_PUT_error(ERR_LIB_JPAKE,(f),(r),__FILE__,__LINE__) f 240 extra_lib/include/openssl/err.h #define ERR_PACK(l,f,r) (((((unsigned long)l)&0xffL)*0x1000000)| \ f 241 extra_lib/include/openssl/err.h ((((unsigned long)f)&0xfffL)*0x1000)| \ f 596 extra_lib/include/openssl/evp.h int EVP_EncodeBlock(unsigned char *t, const unsigned char *f, int n); f 603 extra_lib/include/openssl/evp.h int EVP_DecodeBlock(unsigned char *t, const unsigned char *f, int n); f 348 extra_lib/include/openssl/rsa.h const unsigned char *f,int fl); f 350 extra_lib/include/openssl/rsa.h const unsigned char *f,int fl,int rsa_len); f 352 extra_lib/include/openssl/rsa.h const unsigned char *f,int fl); f 354 extra_lib/include/openssl/rsa.h const unsigned char *f,int fl,int rsa_len); f 358 extra_lib/include/openssl/rsa.h const unsigned char *f,int fl, f 361 extra_lib/include/openssl/rsa.h const unsigned char *f,int fl,int rsa_len, f 364 extra_lib/include/openssl/rsa.h const unsigned char *f,int fl); f 366 extra_lib/include/openssl/rsa.h const unsigned char *f,int fl,int rsa_len); f 368 extra_lib/include/openssl/rsa.h const unsigned char *f,int fl); f 370 extra_lib/include/openssl/rsa.h const unsigned char *f,int fl,int rsa_len); f 372 extra_lib/include/openssl/rsa.h const unsigned char *f,int fl); f 374 extra_lib/include/openssl/rsa.h const unsigned char *f,int fl,int rsa_len); f 865 extra_lib/include/openssl/x509v3.h unsigned v3_addr_get_afi(const IPAddressFamily *f); f 222 extra_lib/include/platinum/NptConfig.h #define NPT_vsnprintf(s,c,f,a) _vsnprintf_s(s,c,_TRUNCATE,f,a) f 223 extra_lib/include/platinum/NptConfig.h #define NPT_snprintf(s,c,f,...) _snprintf_s(s,c,_TRUNCATE,f,__VA_ARGS__) f 168 extra_lib/include/platinum/NptUtils.h #define NPT_FormatStringVN(s,c,f,a) NPT_vsnprintf(s,c,f,a) f 51 extra_lib/include/vorbis/vorbisfile.h static int _ov_header_fseek_wrap(FILE *f,ogg_int64_t off,int whence){ f 52 extra_lib/include/vorbis/vorbisfile.h if(f==NULL)return(-1); f 53 extra_lib/include/vorbis/vorbisfile.h return fseek(f,off,whence); f 130 extra_lib/include/vorbis/vorbisfile.h extern int ov_open(FILE *f,OggVorbis_File *vf,char *initial,long ibytes); f 134 extra_lib/include/vorbis/vorbisfile.h extern int ov_test(FILE *f,OggVorbis_File *vf,char *initial,long ibytes); f 84 include/gpac/bitstream.h GF_BitStream *gf_bs_from_file(FILE *f, u32 mode); f 1107 include/gpac/internal/scenegraph_dev.h void gf_dom_event_dump_listeners(GF_Node *n, FILE *f); f 564 include/gpac/maths.h GF_Vec gf_vec_scale(GF_Vec v, Fixed f); f 155 include/gpac/tools.h u64 gf_ftell(FILE *f); f 166 include/gpac/tools.h u64 gf_fseek(FILE *f, s64 pos, s32 whence); f 236 modules/ac3_in/liba52_dec.c s32 * f = (s32 *) _f; // XXX assumes IEEE float format f 242 modules/ac3_in/liba52_dec.c samps[j++] = blah (f[i + c]); f 153 modules/ctx_load/ctx_load.c FILE *f; f 158 modules/ctx_load/ctx_load.c f = gf_fopen(priv->file_name, "rt"); f 159 modules/ctx_load/ctx_load.c if (!f) return GF_FALSE; f 160 modules/ctx_load/ctx_load.c gf_fseek(f, 0, SEEK_END); f 161 modules/ctx_load/ctx_load.c size = gf_ftell(f); f 162 modules/ctx_load/ctx_load.c gf_fclose(f); f 146 modules/dektec_out/dektec_video.cpp FILE *f = fopen(szName, "ab"); f 147 modules/dektec_out/dektec_video.cpp fwrite(dtc->pixels_UYVY, dtc->width*dtc->height*2, 1, f); f 148 modules/dektec_out/dektec_video.cpp fclose(f); f 351 modules/dummy_in/dummy_in.c FILE *f = gf_fopen(read->url, "rt"); f 352 modules/dummy_in/dummy_in.c gf_fseek(f, 0, SEEK_END); f 353 modules/dummy_in/dummy_in.c size = (u32) gf_ftell(f); f 354 modules/dummy_in/dummy_in.c gf_fclose(f); f 42 modules/isom_in/isom_cache.c FILE *f = gf_fopen(szPath, "rb"); f 43 modules/isom_in/isom_cache.c if (f) { f 45 modules/isom_in/isom_cache.c gf_fclose(f); f 48 modules/isom_in/isom_cache.c f = gf_fopen(szPath, "rb"); f 49 modules/isom_in/isom_cache.c if (!f) break; f 50 modules/isom_in/isom_cache.c gf_fclose(f); f 886 modules/mediacodec_dec/mediacodec_dec.c MC_Frame *f = (MC_Frame *)frame->user_data; f 887 modules/mediacodec_dec/mediacodec_dec.c if(f->ctx->codec && !f->flushed) { f 888 modules/mediacodec_dec/mediacodec_dec.c if ( AMediaCodec_releaseOutputBuffer(f->ctx->codec, f->outIndex, GF_FALSE) != AMEDIA_OK) { f 889 modules/mediacodec_dec/mediacodec_dec.c GF_LOG(GF_LOG_ERROR, GF_LOG_CODEC,("NOT Release Output Buffer Index: %d", f->outIndex)); f 892 modules/mediacodec_dec/mediacodec_dec.c f->ctx->decoded_frames_pending--; f 893 modules/mediacodec_dec/mediacodec_dec.c gf_free(f); f 900 modules/mediacodec_dec/mediacodec_dec.c MC_Frame *f = (MC_Frame *)frame->user_data; f 905 modules/mediacodec_dec/mediacodec_dec.c f->ctx->format = AMediaCodec_getOutputFormat(f->ctx->codec); f 906 modules/mediacodec_dec/mediacodec_dec.c AMediaFormat_getInt32(f->ctx->format, AMEDIAFORMAT_KEY_STRIDE, outStride); f 910 modules/mediacodec_dec/mediacodec_dec.c *outPlane = f->frame ; f 913 modules/mediacodec_dec/mediacodec_dec.c *outPlane = f->frame + *outStride * f->ctx->height ; f 917 modules/mediacodec_dec/mediacodec_dec.c *outPlane = f->frame + 5 * *outStride * f->ctx->height/4 ; f 930 modules/mediacodec_dec/mediacodec_dec.c MC_Frame *f = (MC_Frame *)frame->user_data; f 933 modules/mediacodec_dec/mediacodec_dec.c *gl_tex_id = f->ctx->gl_tex_id; f 935 modules/mediacodec_dec/mediacodec_dec.c if(!f->flushed && f->ctx->codec) { f 936 modules/mediacodec_dec/mediacodec_dec.c if (AMediaCodec_releaseOutputBuffer(f->ctx->codec, f->outIndex, GF_TRUE) != AMEDIA_OK) { f 937 modules/mediacodec_dec/mediacodec_dec.c GF_LOG(GF_LOG_ERROR, GF_LOG_CODEC,("NOT Release Output Buffer Index: %d to surface", f->outIndex)); f 942 modules/mediacodec_dec/mediacodec_dec.c f->flushed = GF_TRUE; f 410 modules/platinum/GPACFileMediaServer.cpp FILE *f = gf_fopen(abs_url, "rt"); f 411 modules/platinum/GPACFileMediaServer.cpp if (f) { f 412 modules/platinum/GPACFileMediaServer.cpp gf_fclose(f); f 1620 modules/platinum/GPACPlatinum.cpp FILE *f = gf_fopen(szFile, "rt"); f 1621 modules/platinum/GPACPlatinum.cpp if (!f) continue; f 1628 modules/platinum/GPACPlatinum.cpp gf_fseek(f, 0, SEEK_END); f 1629 modules/platinum/GPACPlatinum.cpp u32 size = (u32) gf_ftell(f); f 1630 modules/platinum/GPACPlatinum.cpp gf_fseek(f, 0, SEEK_SET); f 1632 modules/platinum/GPACPlatinum.cpp size = (u32) fread(buf, 1, size, f); f 1641 modules/platinum/GPACPlatinum.cpp gf_fclose(f); f 296 modules/rtp_in/rtp_in.c FILE *f = gf_fopen(session_cache, "rb"); f 297 modules/rtp_in/rtp_in.c if (f) { f 298 modules/rtp_in/rtp_in.c gf_fclose(f); f 570 modules/rtp_in/sdp_load.c FILE *f = gf_fopen(opt, "wt"); f 571 modules/rtp_in/sdp_load.c if (f) { f 573 modules/rtp_in/sdp_load.c gf_fwrite(sdp_buf, 1, strlen(sdp_buf), f); f 574 modules/rtp_in/sdp_load.c gf_fclose(f); f 98 modules/rvc_dec/rvc_dec.c FILE *f; f 103 modules/rvc_dec/rvc_dec.c f = gf_fopen(path, "rt"); f 104 modules/rvc_dec/rvc_dec.c if (!f) return GF_NOT_SUPPORTED; f 105 modules/rvc_dec/rvc_dec.c fseek(f, 0, SEEK_END); f 106 modules/rvc_dec/rvc_dec.c size = ftell(f); f 107 modules/rvc_dec/rvc_dec.c fseek(f, 0, SEEK_SET); f 110 modules/rvc_dec/rvc_dec.c gf_fclose(f); f 113 modules/rvc_dec/rvc_dec.c fread(XDF_doc, 1, size, f); f 114 modules/rvc_dec/rvc_dec.c gf_fclose(f); f 260 modules/soft_raster/stencil.c Fixed f; f 270 modules/soft_raster/stencil.c f = gf_v2d_len(&s); f 271 modules/soft_raster/stencil.c if (f) f = gf_invfix(f); f 283 modules/soft_raster/stencil.c gf_mx2d_add_scale(&mtx, f, f); f 51 modules/svg_in/svg_in.c FILE *f = gf_fopen(svgin->file_name, "rb"); f 52 modules/svg_in/svg_in.c if (!f) return GF_FALSE; f 53 modules/svg_in/svg_in.c gf_fseek(f, 0, SEEK_END); f 54 modules/svg_in/svg_in.c size = gf_ftell(f); f 55 modules/svg_in/svg_in.c gf_fclose(f); f 1008 modules/vtb_decode/vtb_decode.c VTB_Frame *f = (VTB_Frame *)frame->user_data; f 1009 modules/vtb_decode/vtb_decode.c if (f->locked) { f 1010 modules/vtb_decode/vtb_decode.c CVPixelBufferUnlockBaseAddress(f->frame, kCVPixelBufferLock_ReadOnly); f 1013 modules/vtb_decode/vtb_decode.c if (f->y) CVBufferRelease(f->y); f 1014 modules/vtb_decode/vtb_decode.c if (f->u) CVBufferRelease(f->u); f 1015 modules/vtb_decode/vtb_decode.c if (f->v) CVBufferRelease(f->v); f 1016 modules/vtb_decode/vtb_decode.c if (f->ctx->cache_texture) f 1017 modules/vtb_decode/vtb_decode.c CVOpenGLESTextureCacheFlush(f->ctx->cache_texture, 0); f 1020 modules/vtb_decode/vtb_decode.c if (f->frame) { f 1021 modules/vtb_decode/vtb_decode.c CVPixelBufferRelease(f->frame); f 1023 modules/vtb_decode/vtb_decode.c f->ctx->decoded_frames_pending--; f 1025 modules/vtb_decode/vtb_decode.c gf_free(f); f 1033 modules/vtb_decode/vtb_decode.c VTB_Frame *f = (VTB_Frame *)frame->user_data; f 1039 modules/vtb_decode/vtb_decode.c status = CVPixelBufferLockBaseAddress(f->frame, kCVPixelBufferLock_ReadOnly); f 1048 modules/vtb_decode/vtb_decode.c if (CVPixelBufferIsPlanar(f->frame)) { f 1049 modules/vtb_decode/vtb_decode.c *outStride = (u32) CVPixelBufferGetBytesPerRowOfPlane(f->frame, plane_idx); f 1050 modules/vtb_decode/vtb_decode.c *outPlane = CVPixelBufferGetBaseAddressOfPlane(f->frame, plane_idx); f 1052 modules/vtb_decode/vtb_decode.c *outStride = (u32) CVPixelBufferGetBytesPerRow(f->frame); f 1053 modules/vtb_decode/vtb_decode.c *outPlane = CVPixelBufferGetBaseAddress(f->frame); f 1057 modules/vtb_decode/vtb_decode.c CVPixelBufferUnlockBaseAddress(f->frame, kCVPixelBufferLock_ReadOnly); f 1072 modules/vtb_decode/vtb_decode.c VTB_Frame *f = (VTB_Frame *)frame->user_data; f 1077 modules/vtb_decode/vtb_decode.c if (!f->ctx->gl_context) { f 1078 modules/vtb_decode/vtb_decode.c f->ctx->gl_context = myGetGLContext(); f 1079 modules/vtb_decode/vtb_decode.c if (!f->ctx->gl_context) { f 1084 modules/vtb_decode/vtb_decode.c if (! f->ctx->decoded_frames_pending) return GF_IO_ERR; f 1086 modules/vtb_decode/vtb_decode.c if (!f->ctx->cache_texture) { f 1087 modules/vtb_decode/vtb_decode.c status = CVOpenGLESTextureCacheCreate(kCFAllocatorDefault, NULL, f->ctx->gl_context, NULL, &f->ctx->cache_texture); f 1094 modules/vtb_decode/vtb_decode.c if (!f->locked) { f 1095 modules/vtb_decode/vtb_decode.c status = CVPixelBufferLockBaseAddress(f->frame, kCVPixelBufferLock_ReadOnly); f 1100 modules/vtb_decode/vtb_decode.c f->locked = GF_TRUE; f 1103 modules/vtb_decode/vtb_decode.c if (plane_idx >= (u32) CVPixelBufferGetPlaneCount(f->frame)) { f 1109 modules/vtb_decode/vtb_decode.c w = f->ctx->width; f 1110 modules/vtb_decode/vtb_decode.c h = f->ctx->height; f 1117 modules/vtb_decode/vtb_decode.c outTexture = &f->y; f 1120 modules/vtb_decode/vtb_decode.c outTexture = &f->u; f 1124 modules/vtb_decode/vtb_decode.c status = CVOpenGLESTextureCacheCreateTextureFromImage(kCFAllocatorDefault, f->ctx->cache_texture, f->frame, NULL, GL_TEXTURE_2D, target_fmt, w, h, target_fmt, GL_UNSIGNED_BYTE, plane_idx, outTexture); f 89 modules/vtt_in/vtt_dec.c FILE *f = gf_fopen(vttdec->file_name, "rt"); f 90 modules/vtt_in/vtt_dec.c if (!f) return GF_FALSE; f 91 modules/vtt_in/vtt_dec.c gf_fseek(f, 0, SEEK_END); f 92 modules/vtt_in/vtt_dec.c size = gf_ftell(f); f 93 modules/vtt_in/vtt_dec.c gf_fclose(f); f 1372 modules/widgetman/unzip.c FILE *f = gf_fopen(zipfilename, "r"); f 1373 modules/widgetman/unzip.c if (!f) return 0; f 1374 modules/widgetman/unzip.c if (fgetc(f)=='P') f 1375 modules/widgetman/unzip.c if (fgetc(f)=='K') f 1376 modules/widgetman/unzip.c if (fgetc(f)==3) f 1377 modules/widgetman/unzip.c if (fgetc(f)==4) f 1379 modules/widgetman/unzip.c gf_fclose(f); f 598 modules/widgetman/widgetman.c GF_WidgetFeature *f = (GF_WidgetFeature*)gf_list_get(wid->features, 0); f 600 modules/widgetman/widgetman.c if (f->name) gf_free(f->name); f 601 modules/widgetman/widgetman.c while (gf_list_count(f->params)) { f 602 modules/widgetman/widgetman.c GF_WidgetFeatureParam *p = (GF_WidgetFeatureParam*)gf_list_get(f->params, 0); f 603 modules/widgetman/widgetman.c gf_list_rem(f->params, 0); f 608 modules/widgetman/widgetman.c gf_free(f); f 995 src/bifs/com_dec.c u8 flag, field_type, event_type, useQuant, useAnim, f; f 1063 src/bifs/com_dec.c f = gf_bs_read_int(bs, 1); f 1065 src/bifs/com_dec.c assert(!f); f 1068 src/bifs/com_dec.c f = gf_bs_read_int(bs, 1); f 1069 src/bifs/com_dec.c if (!f) { f 100 src/bifs/field_encode.c FILE *f; f 103 src/bifs/field_encode.c f = gf_fopen(res_src ? res_src : src, "rb"); f 104 src/bifs/field_encode.c if (!f) { f 109 src/bifs/field_encode.c gf_fseek(f, 0, SEEK_END); f 110 src/bifs/field_encode.c size = (u32) gf_ftell(f); f 114 src/bifs/field_encode.c gf_fseek(f, 0, SEEK_SET); f 116 src/bifs/field_encode.c u32 read = (u32) fread(buf, 1, 4096, f); f 120 src/bifs/field_encode.c gf_fclose(f); f 94 src/bifs/quantize.c Float f; f 102 src/bifs/quantize.c ft_val.f = FIX2FLT(ft); f 97 src/bifs/unquantize.c Float f; f 118 src/bifs/unquantize.c return FLT2FIX(ft_value.f); f 1001 src/compositor/svg_text.c Fixed *f = gf_list_last(tr_state->x_anchors); f 1003 src/compositor/svg_text.c gf_free(f); f 275 src/ietf/rtcp.c Double f; f 315 src/ietf/rtcp.c f = 1000 * (sec - ch->last_pck_ntp_sec); f 316 src/ietf/rtcp.c f += ((frac - ch->last_pck_ntp_frac) >> 4) / 0x10000; f 317 src/ietf/rtcp.c f /= 1000; f 318 src/ietf/rtcp.c f *= ch->TimeScale; f 319 src/ietf/rtcp.c val = (u32) f + ch->last_pck_ts; f 108 src/isomedia/isom_read.c FILE *f = gf_fopen(fileName, "rb"); f 109 src/isomedia/isom_read.c if (!f) return 0; f 111 src/isomedia/isom_read.c if (fread(data, 1, 4, f) == 4) { f 112 src/isomedia/isom_read.c if (fread(data, 1, 4, f) == 4) { f 116 src/isomedia/isom_read.c gf_fclose(f); f 4103 src/isomedia/isom_write.c FILE *f = gf_fopen(nameUTF8+7, "rb"); f 4105 src/isomedia/isom_write.c if (!f) return GF_URL_ERROR; f 4106 src/isomedia/isom_write.c gf_fseek(f, 0, SEEK_END); f 4107 src/isomedia/isom_write.c size = gf_ftell(f); f 4108 src/isomedia/isom_write.c gf_fseek(f, 0, SEEK_SET); f 4109 src/isomedia/isom_write.c if (3!=fread(BOM, sizeof(char), 3, f)) { f 4110 src/isomedia/isom_write.c gf_fclose(f); f 4116 src/isomedia/isom_write.c gf_fclose(f); f 4119 src/isomedia/isom_write.c else gf_fseek(f, 0, SEEK_SET); f 4121 src/isomedia/isom_write.c size = fread(trak->Media->handler->nameUTF8, sizeof(char), (size_t)size, f); f 4123 src/isomedia/isom_write.c gf_fclose(f); f 2246 src/laser/lsr_dec.c Fixed *f; f 2279 src/laser/lsr_dec.c f = (Fixed*)gf_list_get(l, 0); f 2280 src/laser/lsr_dec.c if (f) { f 2281 src/laser/lsr_dec.c p->angle = *f; f 2282 src/laser/lsr_dec.c gf_free(f); f 2284 src/laser/lsr_dec.c f = (Fixed*)gf_list_get(l, 1); f 2285 src/laser/lsr_dec.c if (f) { f 2286 src/laser/lsr_dec.c p->x = *f; f 2287 src/laser/lsr_dec.c gf_free(f); f 2289 src/laser/lsr_dec.c f = (Fixed*)gf_list_get(l, 2); f 2290 src/laser/lsr_dec.c if (f) { f 2291 src/laser/lsr_dec.c p->y = *f; f 2292 src/laser/lsr_dec.c gf_free(f); f 2308 src/laser/lsr_dec.c f = (Fixed*)gf_list_get(l, 0); f 2309 src/laser/lsr_dec.c if (f) { f 2310 src/laser/lsr_dec.c pt->x = *f; f 2311 src/laser/lsr_dec.c gf_free(f); f 2313 src/laser/lsr_dec.c f = (Fixed*)gf_list_get(l, 1); f 2314 src/laser/lsr_dec.c if (f) { f 2315 src/laser/lsr_dec.c pt->y = *f; f 2316 src/laser/lsr_dec.c gf_free(f); f 2325 src/laser/lsr_dec.c f = (Fixed*)gf_malloc(sizeof(Fixed)); f 2326 src/laser/lsr_dec.c *f = ((SVG_Number *)val->value)->value; f 2328 src/laser/lsr_dec.c val->value = f; f 2338 src/laser/lsr_dec.c Fixed *f; f 2380 src/laser/lsr_dec.c f = (Fixed*)gf_list_get(l, 0); f 2381 src/laser/lsr_dec.c p->angle = *f; f 2382 src/laser/lsr_dec.c f = (Fixed*)gf_list_get(l, 1); f 2383 src/laser/lsr_dec.c if (f) p->x = *f; f 2384 src/laser/lsr_dec.c f = (Fixed*)gf_list_get(l, 2); f 2385 src/laser/lsr_dec.c if (f) p->y = *f; f 2387 src/laser/lsr_dec.c f = (Fixed*)gf_list_last(l); f 2389 src/laser/lsr_dec.c gf_free(f); f 2402 src/laser/lsr_dec.c f = (Fixed*)gf_malloc(sizeof(Fixed)); f 2403 src/laser/lsr_dec.c *f = ((SVG_Number *)a_val)->value; f 2406 src/laser/lsr_dec.c gf_list_insert(val->values, f, i); f 2411 src/laser/lsr_dec.c f = (Fixed*)gf_list_get(l, 0); f 2412 src/laser/lsr_dec.c if (f) pt->x = *f; f 2413 src/laser/lsr_dec.c f = (Fixed*)gf_list_get(l, 1); f 2414 src/laser/lsr_dec.c if (f) pt->y = *f; f 2417 src/laser/lsr_dec.c f = (Fixed*)gf_list_last(l); f 2419 src/laser/lsr_dec.c gf_free(f); f 2480 src/laser/lsr_dec.c Fixed *f; f 2481 src/laser/lsr_dec.c GF_SAFEALLOC(f, Fixed); f 2482 src/laser/lsr_dec.c if (!f) { f 2489 src/laser/lsr_dec.c if (flag) *f = 0; f 2490 src/laser/lsr_dec.c else *f = FIX_ONE; f 2494 src/laser/lsr_dec.c *f = INT2FIX(v) / 4096/*(1<<12)*/; f 2496 src/laser/lsr_dec.c return f; f 2510 src/laser/lsr_dec.c Fixed *f = lsr_read_fraction_12_item(lsr); f 2511 src/laser/lsr_dec.c gf_list_add( *((SMIL_KeyTimes*)info.far_ptr), f); f 2857 src/laser/lsr_dec.c SVG_Coordinate *f; f 2858 src/laser/lsr_dec.c GF_SAFEALLOC(f, SVG_Coordinate ); f 2859 src/laser/lsr_dec.c if (!f) { f 2864 src/laser/lsr_dec.c f->value = lsr_translate_coords(lsr, res, lsr->coord_bits); f 2865 src/laser/lsr_dec.c gf_list_add(*(SVG_Coordinates*)info.far_ptr, f); f 675 src/laser/lsr_enc.c static void lsr_write_fixed_clamp(GF_LASeRCodec *lsr, Fixed f, const char *name) f 678 src/laser/lsr_enc.c s32 val = f >> 8; f 680 src/laser/lsr_enc.c s32 val = (u32) (255 * f); f 1972 src/laser/lsr_enc.c Fixed f = * (Fixed *) gf_list_get(*l, i); f 1973 src/laser/lsr_enc.c if (!f || (f == FIX_ONE)) { f 1975 src/laser/lsr_enc.c GF_LSR_WRITE_INT(lsr, f ? 0 : 1, 1, "isZero"); f 1977 src/laser/lsr_enc.c u32 ft = (u32) ( FIX2FLT(f) * 4096/*(1<<12)*/ ); f 3673 src/laser/lsr_enc.c Fixed *f = (Fixed*)gf_list_get(*(GF_List **)val, 0); f 3674 src/laser/lsr_enc.c lsr_write_fixed_clamp(lsr, *f, "v"); f 3679 src/laser/lsr_enc.c Fixed *f = (Fixed*)gf_list_get(*(GF_List **)val, 0); f 3680 src/laser/lsr_enc.c lsr_write_fixed_16_8(lsr, *f, "v"); f 3686 src/laser/lsr_enc.c Fixed f = *v; f 3687 src/laser/lsr_enc.c if ((f==0) || (f==FIX_ONE)) { f 3689 src/laser/lsr_enc.c GF_LSR_WRITE_INT(lsr, (f==0) ? 0 : 1, 1, "isZero"); f 3692 src/laser/lsr_enc.c lsr_write_fixed_clamp(lsr, f, "timevalue"); f 33 src/mcrypt/des.c static u32 f(); f 270 src/mcrypt/des.c left ^= f(key, right, knp); f 272 src/mcrypt/des.c right ^= f(key, left, knp); f 274 src/mcrypt/des.c left ^= f(key, right, knp); f 276 src/mcrypt/des.c right ^= f(key, left, knp); f 278 src/mcrypt/des.c left ^= f(key, right, knp); f 280 src/mcrypt/des.c right ^= f(key, left, knp); f 282 src/mcrypt/des.c left ^= f(key, right, knp); f 284 src/mcrypt/des.c right ^= f(key, left, knp); f 286 src/mcrypt/des.c left ^= f(key, right, knp); f 288 src/mcrypt/des.c right ^= f(key, left, knp); f 290 src/mcrypt/des.c left ^= f(key, right, knp); f 292 src/mcrypt/des.c right ^= f(key, left, knp); f 294 src/mcrypt/des.c left ^= f(key, right, knp); f 296 src/mcrypt/des.c right ^= f(key, left, knp); f 298 src/mcrypt/des.c left ^= f(key, right, knp); f 300 src/mcrypt/des.c right ^= f(key, left, knp); f 339 src/mcrypt/des.c right ^= f(key, left, knp); f 341 src/mcrypt/des.c left ^= f(key, right, knp); f 343 src/mcrypt/des.c right ^= f(key, left, knp); f 345 src/mcrypt/des.c left ^= f(key, right, knp); f 347 src/mcrypt/des.c right ^= f(key, left, knp); f 349 src/mcrypt/des.c left ^= f(key, right, knp); f 351 src/mcrypt/des.c right ^= f(key, left, knp); f 353 src/mcrypt/des.c left ^= f(key, right, knp); f 355 src/mcrypt/des.c right ^= f(key, left, knp); f 357 src/mcrypt/des.c left ^= f(key, right, knp); f 359 src/mcrypt/des.c right ^= f(key, left, knp); f 361 src/mcrypt/des.c left ^= f(key, right, knp); f 363 src/mcrypt/des.c right ^= f(key, left, knp); f 365 src/mcrypt/des.c left ^= f(key, right, knp); f 367 src/mcrypt/des.c right ^= f(key, left, knp); f 369 src/mcrypt/des.c left ^= f(key, right, knp); f 36 src/mcrypt/tripledes.c static u32 f(); f 334 src/mcrypt/tripledes.c left ^= f(key, 0, right, knp); f 336 src/mcrypt/tripledes.c right ^= f(key, 0, left, knp); f 338 src/mcrypt/tripledes.c left ^= f(key, 0, right, knp); f 340 src/mcrypt/tripledes.c right ^= f(key, 0, left, knp); f 342 src/mcrypt/tripledes.c left ^= f(key, 0, right, knp); f 344 src/mcrypt/tripledes.c right ^= f(key, 0, left, knp); f 346 src/mcrypt/tripledes.c left ^= f(key, 0, right, knp); f 348 src/mcrypt/tripledes.c right ^= f(key, 0, left, knp); f 350 src/mcrypt/tripledes.c left ^= f(key, 0, right, knp); f 352 src/mcrypt/tripledes.c right ^= f(key, 0, left, knp); f 354 src/mcrypt/tripledes.c left ^= f(key, 0, right, knp); f 356 src/mcrypt/tripledes.c right ^= f(key, 0, left, knp); f 358 src/mcrypt/tripledes.c left ^= f(key, 0, right, knp); f 360 src/mcrypt/tripledes.c right ^= f(key, 0, left, knp); f 362 src/mcrypt/tripledes.c left ^= f(key, 0, right, knp); f 364 src/mcrypt/tripledes.c right ^= f(key, 0, left, knp); f 374 src/mcrypt/tripledes.c right ^= f(key, 1, left, knp); f 376 src/mcrypt/tripledes.c left ^= f(key, 1, right, knp); f 378 src/mcrypt/tripledes.c right ^= f(key, 1, left, knp); f 380 src/mcrypt/tripledes.c left ^= f(key, 1, right, knp); f 382 src/mcrypt/tripledes.c right ^= f(key, 1, left, knp); f 384 src/mcrypt/tripledes.c left ^= f(key, 1, right, knp); f 386 src/mcrypt/tripledes.c right ^= f(key, 1, left, knp); f 388 src/mcrypt/tripledes.c left ^= f(key, 1, right, knp); f 390 src/mcrypt/tripledes.c right ^= f(key, 1, left, knp); f 392 src/mcrypt/tripledes.c left ^= f(key, 1, right, knp); f 394 src/mcrypt/tripledes.c right ^= f(key, 1, left, knp); f 396 src/mcrypt/tripledes.c left ^= f(key, 1, right, knp); f 398 src/mcrypt/tripledes.c right ^= f(key, 1, left, knp); f 400 src/mcrypt/tripledes.c left ^= f(key, 1, right, knp); f 402 src/mcrypt/tripledes.c right ^= f(key, 1, left, knp); f 404 src/mcrypt/tripledes.c left ^= f(key, 1, right, knp); f 412 src/mcrypt/tripledes.c left ^= f(key, 2, right, knp); f 414 src/mcrypt/tripledes.c right ^= f(key, 2, left, knp); f 416 src/mcrypt/tripledes.c left ^= f(key, 2, right, knp); f 418 src/mcrypt/tripledes.c right ^= f(key, 2, left, knp); f 420 src/mcrypt/tripledes.c left ^= f(key, 2, right, knp); f 422 src/mcrypt/tripledes.c right ^= f(key, 2, left, knp); f 424 src/mcrypt/tripledes.c left ^= f(key, 2, right, knp); f 426 src/mcrypt/tripledes.c right ^= f(key, 2, left, knp); f 428 src/mcrypt/tripledes.c left ^= f(key, 2, right, knp); f 430 src/mcrypt/tripledes.c right ^= f(key, 2, left, knp); f 432 src/mcrypt/tripledes.c left ^= f(key, 2, right, knp); f 434 src/mcrypt/tripledes.c right ^= f(key, 2, left, knp); f 436 src/mcrypt/tripledes.c left ^= f(key, 2, right, knp); f 438 src/mcrypt/tripledes.c right ^= f(key, 2, left, knp); f 440 src/mcrypt/tripledes.c left ^= f(key, 2, right, knp); f 442 src/mcrypt/tripledes.c right ^= f(key, 2, left, knp); f 485 src/mcrypt/tripledes.c right ^= f(key, 2, left, knp); f 487 src/mcrypt/tripledes.c left ^= f(key, 2, right, knp); f 489 src/mcrypt/tripledes.c right ^= f(key, 2, left, knp); f 491 src/mcrypt/tripledes.c left ^= f(key, 2, right, knp); f 493 src/mcrypt/tripledes.c right ^= f(key, 2, left, knp); f 495 src/mcrypt/tripledes.c left ^= f(key, 2, right, knp); f 497 src/mcrypt/tripledes.c right ^= f(key, 2, left, knp); f 499 src/mcrypt/tripledes.c left ^= f(key, 2, right, knp); f 501 src/mcrypt/tripledes.c right ^= f(key, 2, left, knp); f 503 src/mcrypt/tripledes.c left ^= f(key, 2, right, knp); f 505 src/mcrypt/tripledes.c right ^= f(key, 2, left, knp); f 507 src/mcrypt/tripledes.c left ^= f(key, 2, right, knp); f 509 src/mcrypt/tripledes.c right ^= f(key, 2, left, knp); f 511 src/mcrypt/tripledes.c left ^= f(key, 2, right, knp); f 513 src/mcrypt/tripledes.c right ^= f(key, 2, left, knp); f 515 src/mcrypt/tripledes.c left ^= f(key, 2, right, knp); f 525 src/mcrypt/tripledes.c left ^= f(key, 1, right, knp); f 527 src/mcrypt/tripledes.c right ^= f(key, 1, left, knp); f 529 src/mcrypt/tripledes.c left ^= f(key, 1, right, knp); f 531 src/mcrypt/tripledes.c right ^= f(key, 1, left, knp); f 533 src/mcrypt/tripledes.c left ^= f(key, 1, right, knp); f 535 src/mcrypt/tripledes.c right ^= f(key, 1, left, knp); f 537 src/mcrypt/tripledes.c left ^= f(key, 1, right, knp); f 539 src/mcrypt/tripledes.c right ^= f(key, 1, left, knp); f 541 src/mcrypt/tripledes.c left ^= f(key, 1, right, knp); f 543 src/mcrypt/tripledes.c right ^= f(key, 1, left, knp); f 545 src/mcrypt/tripledes.c left ^= f(key, 1, right, knp); f 547 src/mcrypt/tripledes.c right ^= f(key, 1, left, knp); f 549 src/mcrypt/tripledes.c left ^= f(key, 1, right, knp); f 551 src/mcrypt/tripledes.c right ^= f(key, 1, left, knp); f 553 src/mcrypt/tripledes.c left ^= f(key, 1, right, knp); f 555 src/mcrypt/tripledes.c right ^= f(key, 1, left, knp); f 564 src/mcrypt/tripledes.c right ^= f(key, 0, left, knp); f 566 src/mcrypt/tripledes.c left ^= f(key, 0, right, knp); f 568 src/mcrypt/tripledes.c right ^= f(key, 0, left, knp); f 570 src/mcrypt/tripledes.c left ^= f(key, 0, right, knp); f 572 src/mcrypt/tripledes.c right ^= f(key, 0, left, knp); f 574 src/mcrypt/tripledes.c left ^= f(key, 0, right, knp); f 576 src/mcrypt/tripledes.c right ^= f(key, 0, left, knp); f 578 src/mcrypt/tripledes.c left ^= f(key, 0, right, knp); f 580 src/mcrypt/tripledes.c right ^= f(key, 0, left, knp); f 582 src/mcrypt/tripledes.c left ^= f(key, 0, right, knp); f 584 src/mcrypt/tripledes.c right ^= f(key, 0, left, knp); f 586 src/mcrypt/tripledes.c left ^= f(key, 0, right, knp); f 588 src/mcrypt/tripledes.c right ^= f(key, 0, left, knp); f 590 src/mcrypt/tripledes.c left ^= f(key, 0, right, knp); f 592 src/mcrypt/tripledes.c right ^= f(key, 0, left, knp); f 594 src/mcrypt/tripledes.c left ^= f(key, 0, right, knp); f 1517 src/media_tools/avilib.c char f[4]; f 1524 src/media_tools/avilib.c long2str((unsigned char *)f, len); f 1525 src/media_tools/avilib.c avi_write(AVI->fdes, f, 4); f 1530 src/media_tools/avilib.c long2str((unsigned char *)f, len); f 1531 src/media_tools/avilib.c avi_write(AVI->fdes, f, 4); f 3709 src/media_tools/dash_client.c FILE *f=NULL; f 3718 src/media_tools/dash_client.c FILE *f = gf_fopen(cache_name, "rb"); f 3719 src/media_tools/dash_client.c if (!f) return GF_IO_ERR; f 3720 src/media_tools/dash_client.c bs = gf_bs_from_file(f, GF_BITSTREAM_READ); f 3742 src/media_tools/dash_client.c if (f) gf_fclose(f); f 3762 src/media_tools/dash_client.c FILE *f = gf_fopen(cache_name, "rb"); f 3763 src/media_tools/dash_client.c if (!f) return GF_IO_ERR; f 3764 src/media_tools/dash_client.c if (gf_fseek(f, offset, SEEK_SET)) f 3766 src/media_tools/dash_client.c if (fread(data, 1, 4, f) == 4) { f 3768 src/media_tools/dash_client.c if (fread(data, 1, 4, f) == 4) { f 3772 src/media_tools/dash_client.c gf_fclose(f); f 5974 src/media_tools/dash_client.c FILE *f = gf_fopen(local_url, "rt"); f 5975 src/media_tools/dash_client.c if (!f) { f 5981 src/media_tools/dash_client.c f = gf_fopen(local_url, "rt"); f 5982 src/media_tools/dash_client.c if (!f) { f 5988 src/media_tools/dash_client.c gf_fclose(f); f 716 src/media_tools/img.c FILE *f; f 719 src/media_tools/img.c f = gf_fopen(png_filename, "rb"); f 720 src/media_tools/img.c if (!f) return GF_URL_ERROR; f 731 src/media_tools/img.c gf_fseek(f, 0, SEEK_END); f 732 src/media_tools/img.c fsize = (u32)gf_ftell(f); f 733 src/media_tools/img.c gf_fseek(f, 0, SEEK_SET); f 735 src/media_tools/img.c read = (s32) fread(data, sizeof(char), fsize, f); f 736 src/media_tools/img.c gf_fclose( f ); f 132 src/media_tools/isom_hinter.c FILE *f; f 134 src/media_tools/isom_hinter.c f = gf_fopen(name, "wt"); f 137 src/media_tools/isom_hinter.c gf_fwrite(sdp, size, 1, f); f 138 src/media_tools/isom_hinter.c fprintf(f, "\r\n"); f 144 src/media_tools/isom_hinter.c gf_fwrite(sdp, size, 1, f); f 146 src/media_tools/isom_hinter.c gf_fclose(f); f 953 src/media_tools/m3u8.c FILE *f = NULL; f 966 src/media_tools/m3u8.c f = gf_fopen(file, "rt"); f 967 src/media_tools/m3u8.c if (!f) { f 975 src/media_tools/m3u8.c if (f) gf_fclose(f); f 984 src/media_tools/m3u8.c if (f) { f 985 src/media_tools/m3u8.c if (!fgets(currentLine, sizeof(currentLine), f)) f 1016 src/media_tools/m3u8.c gf_fclose(f); f 1053 src/media_tools/m3u8.c if (f) gf_fclose(f); f 1063 src/media_tools/m3u8.c if (f) gf_fclose(f); f 1074 src/media_tools/m3u8.c if (f) gf_fclose(f); f 3722 src/media_tools/media_import.c FILE *f = mdia; f 3740 src/media_tools/media_import.c f = gf_fopen(szMediaTemp, "rb"); f 3741 src/media_tools/media_import.c if (!f) { f 3746 src/media_tools/media_import.c if (offset) gf_fseek(f, offset, SEEK_SET); f 3751 src/media_tools/media_import.c if (f) { f 3754 src/media_tools/media_import.c gf_fseek(f, 0, SEEK_END); f 3755 src/media_tools/media_import.c assert(gf_ftell(f) < 1<<31); f 3756 src/media_tools/media_import.c samp->dataLength = (u32) gf_ftell(f); f 3759 src/media_tools/media_import.c gf_fseek(f, offset, SEEK_SET); f 3771 src/media_tools/media_import.c read = (u32) fread( samp->data+3, sizeof(char), samp->dataLength, f); f 3787 src/media_tools/media_import.c read = (u32) fread(samp->data, sizeof(char), samp->dataLength, f); f 3792 src/media_tools/media_import.c if (close) gf_fclose(f); f 3842 src/media_tools/media_import.c FILE *f = sub_file_url ? gf_fopen(sub_file_url, "rb") : NULL; f 3845 src/media_tools/media_import.c if (!f) { f 3850 src/media_tools/media_import.c gf_fseek(f, 0, SEEK_END); f 3851 src/media_tools/media_import.c assert(gf_ftell(f) < (1 << 31)); f 3852 src/media_tools/media_import.c subsMediaFileSize = (u32)gf_ftell(f); f 3854 src/media_tools/media_import.c gf_fseek(f, 0, SEEK_SET); f 3855 src/media_tools/media_import.c gf_fread(subsMediaFileData, 1, subsMediaFileSize, f); f 3856 src/media_tools/media_import.c gf_fclose(f); f 9433 src/media_tools/media_import.c FILE *f = gf_fopen(import->in_name, "rt"); f 9434 src/media_tools/media_import.c if (!f) return GF_URL_ERROR; f 9436 src/media_tools/media_import.c read = (s32) fread(line, 1, 4, f); f 9464 src/media_tools/media_import.c gf_fseek(f, offset, SEEK_SET); f 9469 src/media_tools/media_import.c while (!is_chap_or_sub && (fgets(line, 1024, f) != NULL)) { f 9483 src/media_tools/media_import.c gf_fclose(f); f 9520 src/media_tools/media_import.c while (fgets(line, 1024, f) != NULL) { f 9668 src/media_tools/media_import.c gf_fclose(f); f 3939 src/media_tools/mpegts.c FILE *f = NULL; f 3975 src/media_tools/mpegts.c f = gf_fopen(fileName, "rb"); f 3977 src/media_tools/mpegts.c if (!f) { f 3981 src/media_tools/mpegts.c bs = gf_bs_from_file(f, GF_BITSTREAM_READ); f 4031 src/media_tools/mpegts.c gf_fclose(f); f 174 src/odf/ipmpx_parse.c FILE *f; f 179 src/odf/ipmpx_parse.c f = gf_fopen(fileName, "rb"); f 180 src/odf/ipmpx_parse.c if (!f) { f 184 src/odf/ipmpx_parse.c gf_fseek(f, 0, SEEK_END); f 185 src/odf/ipmpx_parse.c assert(gf_ftell(f) < 1<<31); f 186 src/odf/ipmpx_parse.c size = (u32) gf_ftell(f); f 187 src/odf/ipmpx_parse.c gf_fseek(f, 0, SEEK_SET); f 189 src/odf/ipmpx_parse.c size = (s32) fread(*out_data, sizeof(char), size, f); f 192 src/odf/ipmpx_parse.c gf_fclose(f); f 155 src/odf/odf_parse.c FILE *f; f 161 src/odf/odf_parse.c f = gf_fopen(fileName, "rb"); f 162 src/odf/odf_parse.c if (!f) { f 166 src/odf/odf_parse.c gf_fseek(f, 0, SEEK_END); f 167 src/odf/odf_parse.c assert(gf_ftell(f) < 1<<31); f 168 src/odf/odf_parse.c size = (u32) gf_ftell(f); f 169 src/odf/odf_parse.c gf_fseek(f, 0, SEEK_SET); f 172 src/odf/odf_parse.c readen = fread(*out_data, sizeof(char), (size_t)size, f); f 176 src/odf/odf_parse.c gf_fclose(f); f 626 src/scene_manager/loader_bt.c Float f; f 635 src/scene_manager/loader_bt.c if (sscanf(str, "%g", &f) != 1) { f 638 src/scene_manager/loader_bt.c *val = FLT2FIX(f); f 684 src/scene_manager/loader_bt.c Float f; f 690 src/scene_manager/loader_bt.c if (sscanf(str, "%f", &f) == 1) { f 691 src/scene_manager/loader_bt.c col->red = FLT2FIX(f); f 711 src/scene_manager/loader_bt.c Float f; f 726 src/scene_manager/loader_bt.c if (sscanf(str, "%f", &f) != 1) { f 729 src/scene_manager/loader_bt.c col->red = FLT2FIX(f); f 1362 src/scene_manager/loader_bt.c Fixed f; f 1363 src/scene_manager/loader_bt.c gf_bt_parse_float(parser, "x", &f); f 1364 src/scene_manager/loader_bt.c gf_bt_parse_float(parser, "y", &f); f 1365 src/scene_manager/loader_bt.c gf_bt_parse_float(parser, "z", &f); f 232 src/scene_manager/loader_svg.c FILE *f; f 233 src/scene_manager/loader_svg.c f = gf_fopen(iri->string, "rb"); f 234 src/scene_manager/loader_svg.c if (!f) { f 237 src/scene_manager/loader_svg.c gf_fseek(f, 0, SEEK_END); f 238 src/scene_manager/loader_svg.c size = gf_ftell(f); f 239 src/scene_manager/loader_svg.c gf_fseek(f, 0, SEEK_SET); f 242 src/scene_manager/loader_svg.c size = fread(buffer, sizeof(char), (size_t)size, f); f 243 src/scene_manager/loader_svg.c gf_fclose(f); f 2676 src/scene_manager/scene_dump.c GF_CommandField *f; f 2684 src/scene_manager/scene_dump.c f = (GF_CommandField *) gf_list_get(com->command_fields, 0); f 2685 src/scene_manager/scene_dump.c if (f && (f->pos>=0) ) fprintf(sdump->trace, "index=\"%d\" ", f->pos); f 2686 src/scene_manager/scene_dump.c if (f) { f 2688 src/scene_manager/scene_dump.c if (!f->new_node && !f->node_list) { f 2690 src/scene_manager/scene_dump.c if (f->fieldType==SVG_Transform_Scale_datatype) att_name = "scale"; f 2691 src/scene_manager/scene_dump.c else if (f->fieldType==SVG_Transform_Rotate_datatype) att_name = "rotation"; f 2692 src/scene_manager/scene_dump.c else if (f->fieldType==SVG_Transform_Translate_datatype) att_name = "translation"; f 2693 src/scene_manager/scene_dump.c else if (f->fieldIndex==(u32) -1) att_name = "textContent"; f 2694 src/scene_manager/scene_dump.c else att_name = (char*) gf_svg_get_attribute_name(com->node, f->fieldIndex); f 2697 src/scene_manager/scene_dump.c if (f->field_ptr) { f 2699 src/scene_manager/scene_dump.c info.far_ptr = f->field_ptr; f 2700 src/scene_manager/scene_dump.c info.fieldIndex = f->fieldIndex; f 2701 src/scene_manager/scene_dump.c info.fieldType = f->fieldType; f 2704 src/scene_manager/scene_dump.c if ((s32) f->pos >= 0) { f 2721 src/scene_manager/scene_dump.c if (!f->new_node && !f->node_list) { f 2725 src/scene_manager/scene_dump.c if (f->new_node && f->new_node->sgprivate->tag==TAG_DOMText) is_text = 1; f 2727 src/scene_manager/scene_dump.c if (f->fieldIndex>0) f 2737 src/scene_manager/scene_dump.c if (f) { f 2738 src/scene_manager/scene_dump.c if (f->new_node) { f 2739 src/scene_manager/scene_dump.c gf_dump_svg_element(sdump, f->new_node, com->node, 0); f 2740 src/scene_manager/scene_dump.c } else if (f->node_list) { f 2741 src/scene_manager/scene_dump.c GF_ChildNodeItem *list = f->node_list; f 2760 src/scene_manager/scene_dump.c GF_CommandField *f; f 2764 src/scene_manager/scene_dump.c f = (GF_CommandField *) gf_list_get(com->command_fields, 0); f 2765 src/scene_manager/scene_dump.c if (f && (f->pos>=0) ) fprintf(sdump->trace, "index=\"%d\" ", f->pos); f 762 src/scene_manager/scene_manager.c FILE *f = gf_fopen(url, "rb"); f 763 src/scene_manager/scene_manager.c if (f) { f 764 src/scene_manager/scene_manager.c fseek(f, 0, SEEK_END); f 765 src/scene_manager/scene_manager.c data_size = (u32) ftell(f); f 766 src/scene_manager/scene_manager.c fseek(f, 0, SEEK_SET); f 769 src/scene_manager/scene_manager.c if (fread(data, 1, data_size, f) != data_size) { f 773 src/scene_manager/scene_manager.c gf_fclose(f); f 47 src/scene_manager/swf_bifs.c GF_CommandField *f; f 57 src/scene_manager/swf_bifs.c f = gf_sg_command_field_new(com); f 58 src/scene_manager/swf_bifs.c f->field_ptr = &f->new_node; f 59 src/scene_manager/swf_bifs.c f->fieldType = GF_SG_VRML_SFNODE; f 60 src/scene_manager/swf_bifs.c f->fieldIndex = 0; /*choice index*/ f 61 src/scene_manager/swf_bifs.c f->pos = -1; f 62 src/scene_manager/swf_bifs.c f->new_node = n; f 63 src/scene_manager/swf_bifs.c gf_node_register(f->new_node, NULL); f 859 src/scene_manager/swf_bifs.c M_FontStyle *f = (M_FontStyle *) s2b_new_node(read, TAG_MPEG4_FontStyle); f 860 src/scene_manager/swf_bifs.c t->fontStyle = (GF_Node *) f; f 864 src/scene_manager/swf_bifs.c f->size = FLT2FIX(gr->fontSize * SWF_TWIP_SCALE); f 867 src/scene_manager/swf_bifs.c gf_sg_vrml_mf_reset(&f->family, GF_SG_VRML_MFSTRING); f 868 src/scene_manager/swf_bifs.c gf_sg_vrml_mf_append(&f->family, GF_SG_VRML_MFSTRING, &ptr); f 871 src/scene_manager/swf_bifs.c gf_sg_vrml_mf_reset(&f->justify, GF_SG_VRML_MFSTRING); f 872 src/scene_manager/swf_bifs.c gf_sg_vrml_mf_append(&f->justify, GF_SG_VRML_MFSTRING, &ptr); f 875 src/scene_manager/swf_bifs.c if (f->style.buffer) gf_free(f->style.buffer); f 876 src/scene_manager/swf_bifs.c if (ft->is_italic && ft->is_bold) f->style.buffer = gf_strdup("BOLDITALIC"); f 877 src/scene_manager/swf_bifs.c else if (ft->is_bold) f->style.buffer = gf_strdup("BOLD"); f 878 src/scene_manager/swf_bifs.c else if (ft->is_italic) f->style.buffer = gf_strdup("ITALIC"); f 879 src/scene_manager/swf_bifs.c else f->style.buffer = gf_strdup("PLAIN"); f 984 src/scene_manager/swf_bifs.c M_FontStyle *f; f 1001 src/scene_manager/swf_bifs.c f = (M_FontStyle *) s2b_new_node(read, TAG_MPEG4_FontStyle); f 1002 src/scene_manager/swf_bifs.c t->fontStyle = (GF_Node *) f; f 1006 src/scene_manager/swf_bifs.c f->size = text->font_height; f 1007 src/scene_manager/swf_bifs.c f->spacing = text->font_height + text->leading; f 1009 src/scene_manager/swf_bifs.c gf_sg_vrml_mf_reset(&f->justify, GF_SG_VRML_MFSTRING); f 1010 src/scene_manager/swf_bifs.c gf_sg_vrml_mf_append(&f->justify, GF_SG_VRML_MFSTRING, (void**)&ptr); f 1030 src/scene_manager/swf_bifs.c if (f->style.buffer) gf_free(f->style.buffer); f 1031 src/scene_manager/swf_bifs.c f->style.buffer = gf_strdup(styles); f 1110 src/scene_manager/swf_bifs.c GF_CommandField *f; f 1125 src/scene_manager/swf_bifs.c f = gf_sg_command_field_new(com); f 1126 src/scene_manager/swf_bifs.c f->field_ptr = &f->new_node; f 1127 src/scene_manager/swf_bifs.c f->fieldType = GF_SG_VRML_SFNODE; f 1128 src/scene_manager/swf_bifs.c f->pos = i; f 1129 src/scene_manager/swf_bifs.c f->fieldIndex = 2; /*children index*/ f 1130 src/scene_manager/swf_bifs.c f->new_node = empty; f 1131 src/scene_manager/swf_bifs.c gf_node_register(f->new_node, com->node); f 1550 src/scene_manager/swf_bifs.c GF_CommandField *f; f 1558 src/scene_manager/swf_bifs.c f = gf_list_get(com->command_fields, 0); f 1559 src/scene_manager/swf_bifs.c if (f->fieldIndex != info.fieldIndex) continue; f 1560 src/scene_manager/swf_bifs.c if (f->pos != pos) continue; f 1565 src/scene_manager/swf_bifs.c if (((SFString*)f->field_ptr)->buffer) f 1566 src/scene_manager/swf_bifs.c gf_free(((SFString*)f->field_ptr)->buffer); f 1567 src/scene_manager/swf_bifs.c ((SFString*)f->field_ptr)->buffer = gf_strdup( (char *) val); f 1569 src/scene_manager/swf_bifs.c gf_sg_vrml_field_copy(f->field_ptr, val, type); f 1579 src/scene_manager/swf_bifs.c f = gf_sg_command_field_new(com); f 1580 src/scene_manager/swf_bifs.c f->field_ptr = gf_sg_vrml_field_pointer_new(type); f 1582 src/scene_manager/swf_bifs.c ((SFString*)f->field_ptr)->buffer = gf_strdup( (char *) val); f 1584 src/scene_manager/swf_bifs.c gf_sg_vrml_field_copy(f->field_ptr, val, type); f 1586 src/scene_manager/swf_bifs.c f->fieldType = type; f 1587 src/scene_manager/swf_bifs.c f->pos = pos; f 1588 src/scene_manager/swf_bifs.c f->fieldIndex = info.fieldIndex; f 1638 src/scene_manager/swf_bifs.c GF_CommandField *f = gf_list_get(com->command_fields, 0); f 1639 src/scene_manager/swf_bifs.c if ((f->fieldIndex == 3) && (*((SFFloat*)f->field_ptr) != 0)) f 1665 src/scene_manager/swf_bifs.c GF_CommandField *f; f 1687 src/scene_manager/swf_bifs.c f = gf_sg_command_field_new(com); f 1688 src/scene_manager/swf_bifs.c f->field_ptr = &f->new_node; f 1689 src/scene_manager/swf_bifs.c f->fieldType = GF_SG_VRML_SFNODE; f 1690 src/scene_manager/swf_bifs.c f->pos = depth; f 1691 src/scene_manager/swf_bifs.c f->fieldIndex = 2; /*children index*/ f 1692 src/scene_manager/swf_bifs.c f->new_node = par; f 1693 src/scene_manager/swf_bifs.c gf_node_register(f->new_node, NULL); f 1726 src/scene_manager/swf_bifs.c GF_CommandField *f; f 1732 src/scene_manager/swf_bifs.c f = gf_sg_command_field_new(com); f 1733 src/scene_manager/swf_bifs.c f->field_ptr = &f->new_node; f 1734 src/scene_manager/swf_bifs.c f->fieldType = GF_SG_VRML_SFNODE; f 1735 src/scene_manager/swf_bifs.c f->pos = depth; f 1736 src/scene_manager/swf_bifs.c f->fieldIndex = 2; /*children index*/ f 1737 src/scene_manager/swf_bifs.c f->new_node = gf_sg_find_node_by_name(read->load->scene_graph, "Shape0"); f 1738 src/scene_manager/swf_bifs.c gf_node_register(f->new_node, NULL); f 1754 src/scene_manager/swf_bifs.c GF_CommandField *f; f 1758 src/scene_manager/swf_bifs.c f = gf_sg_command_field_new(com); f 1759 src/scene_manager/swf_bifs.c f->field_ptr = gf_sg_vrml_field_pointer_new(GF_SG_VRML_SFINT32); f 1760 src/scene_manager/swf_bifs.c f->fieldType = GF_SG_VRML_SFINT32; f 1761 src/scene_manager/swf_bifs.c f->fieldIndex = 1; /*whichCoice index*/ f 1763 src/scene_manager/swf_bifs.c *((SFInt32 *)f->field_ptr) = -1; f 233 src/scenegraph/base_scenegraph.c GF_CommandField *f; f 235 src/scenegraph/base_scenegraph.c while ((f=gf_list_enum(com->command_fields, &k))) { f 236 src/scenegraph/base_scenegraph.c switch (f->fieldType) { f 238 src/scenegraph/base_scenegraph.c if (f->new_node) { f 239 src/scenegraph/base_scenegraph.c if (f->new_node->sgprivate->scenegraph==sg) { f 241 src/scenegraph/base_scenegraph.c if (sg->RootNode!=f->new_node) { f 242 src/scenegraph/base_scenegraph.c gf_node_unregister(f->new_node, node); f 244 src/scenegraph/base_scenegraph.c f->new_node = NULL; f 247 src/scenegraph/base_scenegraph.c SG_GraphRemoved(f->new_node, sg); f 252 src/scenegraph/base_scenegraph.c if (f->node_list) { f 253 src/scenegraph/base_scenegraph.c GF_ChildNodeItem *cur, *prev, *list = f->node_list; f 260 src/scenegraph/base_scenegraph.c else f->node_list = list->next; f 887 src/scenegraph/dom_events.c void gf_dom_event_dump_listeners(GF_Node *n, FILE *f) f 916 src/scenegraph/dom_events.c fprintf(f, " on%s=\"%s\"", gf_dom_event_get_name( ((XMLEV_Event*)info.far_ptr)->type), txt->textContent); f 737 src/scenegraph/svg_attributes.c static u32 svg_parse_number(char *d, Fixed *f, Bool is_angle) f 819 src/scenegraph/svg_attributes.c (*f) = gf_mulfix(FLT2FIX(_val), GF_PI); f 821 src/scenegraph/svg_attributes.c (*f) = FLT2FIX(_val); f 877 src/scenegraph/svg_attributes.c Float f; f 878 src/scenegraph/svg_attributes.c if (sscanf(d, "%fh", &f) == 0) return GF_BAD_PARAM; f 879 src/scenegraph/svg_attributes.c *clock_value = 3600*f; f 881 src/scenegraph/svg_attributes.c Float f; f 882 src/scenegraph/svg_attributes.c if (sscanf(d, "%fmin", &f) == 0) return GF_BAD_PARAM; f 883 src/scenegraph/svg_attributes.c *clock_value = 60*f; f 885 src/scenegraph/svg_attributes.c Float f; f 886 src/scenegraph/svg_attributes.c if (sscanf(d, "%fms", &f) == 0) return GF_BAD_PARAM; f 887 src/scenegraph/svg_attributes.c *clock_value = f/1000; f 889 src/scenegraph/svg_attributes.c Float f; f 890 src/scenegraph/svg_attributes.c if (sscanf(d, "%fs", &f) == 0) return GF_BAD_PARAM; f 891 src/scenegraph/svg_attributes.c *clock_value = f; f 893 src/scenegraph/svg_attributes.c Float f; f 894 src/scenegraph/svg_attributes.c if (sscanf(d, "%f", &f) == 0) return GF_BAD_PARAM; f 895 src/scenegraph/svg_attributes.c *clock_value = f; f 2710 src/scenegraph/svg_attributes.c Fixed *f; f 2711 src/scenegraph/svg_attributes.c GF_SAFEALLOC(f, Fixed) f 2712 src/scenegraph/svg_attributes.c read_chars = svg_parse_number(&(str[i]), f, is_angle); f 2714 src/scenegraph/svg_attributes.c gf_free(f); f 2718 src/scenegraph/svg_attributes.c gf_list_add(values, f); f 2782 src/scenegraph/svg_attributes.c SVG_Length *f; f 2783 src/scenegraph/svg_attributes.c GF_SAFEALLOC(f, SVG_Length) f 2784 src/scenegraph/svg_attributes.c read_chars = svg_parse_length(f, &(str[i]), 0); f 2786 src/scenegraph/svg_attributes.c gf_free(f); f 2790 src/scenegraph/svg_attributes.c gf_list_add(values, f); f 2796 src/scenegraph/svg_attributes.c SVG_Length *f = (SVG_Length *)gf_list_get(values, i); f 2797 src/scenegraph/svg_attributes.c vals->vals[i] = f->value; f 2798 src/scenegraph/svg_attributes.c vals->units[i] = f->type; f 2799 src/scenegraph/svg_attributes.c gf_free(f); f 2891 src/scenegraph/svg_attributes.c static void svg_parse_focusable(SVG_Focusable *f, char *attribute_content) f 2894 src/scenegraph/svg_attributes.c *f = SVG_FOCUSABLE_TRUE; f 2896 src/scenegraph/svg_attributes.c *f = SVG_FOCUSABLE_FALSE; f 2898 src/scenegraph/svg_attributes.c *f = SVG_FOCUSABLE_AUTO; f 4459 src/scenegraph/svg_attributes.c SVG_FontFamily *f = (SVG_FontFamily *)info->far_ptr; f 4460 src/scenegraph/svg_attributes.c return gf_strdup( (f->type==SVG_FONTFAMILY_INHERIT) ? "inherit" : (const char *) f->value); f 4509 src/scenegraph/svg_attributes.c SVG_Focusable *f = (SVG_Focusable *)info->far_ptr; f 4510 src/scenegraph/svg_attributes.c if (*f == SVG_FOCUSABLE_TRUE) return gf_strdup("true"); f 4511 src/scenegraph/svg_attributes.c else if (*f == SVG_FOCUSABLE_FALSE) return gf_strdup("false"); f 4602 src/scenegraph/svg_attributes.c Fixed *f = (Fixed *)info->far_ptr; f 4604 src/scenegraph/svg_attributes.c sprintf(tmp, "%g", FIX2FLT( 180 * gf_divfix(*f, GF_PI) )); f 486 src/scenegraph/vrml_smjs.c Fixed f, q, t, p, hue, sat, val; f 498 src/scenegraph/vrml_smjs.c f = hue-i; f 500 src/scenegraph/vrml_smjs.c q = gf_mulfix(val, FIX_ONE - gf_mulfix(sat,f)); f 501 src/scenegraph/vrml_smjs.c t = gf_mulfix(val, FIX_ONE - gf_mulfix(sat, FIX_ONE - f)); f 1103 src/scenegraph/vrml_smjs.c GF_JSField *f; f 1122 src/scenegraph/vrml_smjs.c f = (GF_JSField *) SMJS_GET_PRIVATE(c, p); f 1123 src/scenegraph/vrml_smjs.c if (!f || !f->js_list) return JS_FALSE; f 1124 src/scenegraph/vrml_smjs.c JS_GetArrayLength(c, f->js_list, &len); f 1127 src/scenegraph/vrml_smjs.c JS_GetElement(c, f->js_list, (jsint) i, &item); f 1398 src/scenegraph/vrml_smjs.c GF_JSField *f = (GF_JSField *) SMJS_GET_PRIVATE(c, obj); f 1399 src/scenegraph/vrml_smjs.c if (!f) return JS_FALSE; f 1403 src/scenegraph/vrml_smjs.c if (gf_sg_vrml_is_sf_field(f->field.fieldType)) { f 1404 src/scenegraph/vrml_smjs.c sffield_toString(str, f->field.far_ptr, f->field.fieldType); f 1406 src/scenegraph/vrml_smjs.c if (f->field.fieldType == GF_SG_VRML_MFNODE) return JS_TRUE; f 1409 src/scenegraph/vrml_smjs.c JS_GetArrayLength(c, f->js_list, &len); f 1411 src/scenegraph/vrml_smjs.c JS_GetElement(c, f->js_list, (jsint) i, &item); f 1412 src/scenegraph/vrml_smjs.c switch (f->field.fieldType) { f 1690 src/scenegraph/vrml_smjs.c GF_JSField *f; f 1694 src/scenegraph/vrml_smjs.c f = (GF_JSField *) SMJS_GET_PRIVATE(c, obj); f 1695 src/scenegraph/vrml_smjs.c if (!f) return JS_FALSE; f 1698 src/scenegraph/vrml_smjs.c n = * ((GF_Node **)f->field.far_ptr); f 1719 src/scenegraph/vrml_smjs.c GF_JSField *f; f 1722 src/scenegraph/vrml_smjs.c f = (GF_JSField *) SMJS_GET_PRIVATE(c, obj); f 1723 src/scenegraph/vrml_smjs.c if (!f) return JS_FALSE; f 1725 src/scenegraph/vrml_smjs.c n = * ((GF_Node **)f->field.far_ptr); f 3869 src/scenegraph/vrml_smjs.c MFBool *f = (MFBool *) field->far_ptr; f 3871 src/scenegraph/vrml_smjs.c JS_SetArrayLength(priv->js_ctx, jsf->js_list, f->count); f 3872 src/scenegraph/vrml_smjs.c for (i=0; i<f->count; i++) { f 3873 src/scenegraph/vrml_smjs.c newVal = BOOLEAN_TO_JSVAL(f->vals[i]); f 3880 src/scenegraph/vrml_smjs.c MFInt32 *f = (MFInt32 *) field->far_ptr; f 3882 src/scenegraph/vrml_smjs.c JS_SetArrayLength(priv->js_ctx, jsf->js_list, f->count); f 3883 src/scenegraph/vrml_smjs.c for (i=0; i<f->count; i++) { f 3884 src/scenegraph/vrml_smjs.c newVal = INT_TO_JSVAL(f->vals[i]); f 3891 src/scenegraph/vrml_smjs.c MFFloat *f = (MFFloat *) field->far_ptr; f 3893 src/scenegraph/vrml_smjs.c JS_SetArrayLength(priv->js_ctx, jsf->js_list, f->count); f 3894 src/scenegraph/vrml_smjs.c for (i=0; i<f->count; i++) { f 3895 src/scenegraph/vrml_smjs.c newVal = JS_MAKE_DOUBLE(priv->js_ctx, FIX2FLT(f->vals[i])); f 3902 src/scenegraph/vrml_smjs.c MFTime *f = (MFTime *) field->far_ptr; f 3904 src/scenegraph/vrml_smjs.c JS_SetArrayLength(priv->js_ctx, jsf->js_list, f->count); f 3905 src/scenegraph/vrml_smjs.c for (i=0; i<f->count; i++) { f 3906 src/scenegraph/vrml_smjs.c newVal = JS_MAKE_DOUBLE(priv->js_ctx, f->vals[i]); f 3913 src/scenegraph/vrml_smjs.c MFString *f = (MFString *) field->far_ptr; f 3915 src/scenegraph/vrml_smjs.c JS_SetArrayLength(priv->js_ctx, jsf->js_list, f->count); f 3916 src/scenegraph/vrml_smjs.c for (i=0; i<f->count; i++) { f 3917 src/scenegraph/vrml_smjs.c s = JS_NewStringCopyZ(priv->js_ctx, f->vals[i]); f 3925 src/scenegraph/vrml_smjs.c MFURL *f = (MFURL *) field->far_ptr; f 3927 src/scenegraph/vrml_smjs.c JS_SetArrayLength(priv->js_ctx, jsf->js_list, f->count); f 3928 src/scenegraph/vrml_smjs.c for (i=0; i<f->count; i++) { f 3929 src/scenegraph/vrml_smjs.c if (f->vals[i].OD_ID > 0) { f 3931 src/scenegraph/vrml_smjs.c sprintf(msg, "od:%d", f->vals[i].OD_ID); f 3934 src/scenegraph/vrml_smjs.c s = JS_NewStringCopyZ(priv->js_ctx, f->vals[i].url); f 3949 src/scenegraph/vrml_smjs.c GF_ChildNodeItem *f = *(GF_ChildNodeItem **) field->far_ptr; f 3959 src/scenegraph/vrml_smjs.c if (gf_node_list_get_count(f)==count) return; f 3962 src/scenegraph/vrml_smjs.c while (f) { f 3970 src/scenegraph/vrml_smjs.c if (slot && (slot->node==f->node)) { f 3977 src/scenegraph/vrml_smjs.c JSObject *an_obj = node_get_binding(priv, f->node, 0); f 3980 src/scenegraph/vrml_smjs.c f = f->next; f 4134 src/scenegraph/vrml_smjs.c MFBool *f = (MFBool *) field->far_ptr; f 4137 src/scenegraph/vrml_smjs.c for (i = 0; i<f->count; i++) { f 4138 src/scenegraph/vrml_smjs.c jsval newVal = BOOLEAN_TO_JSVAL(f->vals[i]); f 4145 src/scenegraph/vrml_smjs.c MFInt32 *f = (MFInt32 *) field->far_ptr; f 4148 src/scenegraph/vrml_smjs.c for (i=0; i<f->count; i++) { f 4149 src/scenegraph/vrml_smjs.c jsval newVal = INT_TO_JSVAL(f->vals[i]); f 4156 src/scenegraph/vrml_smjs.c MFFloat *f = (MFFloat *) field->far_ptr; f 4159 src/scenegraph/vrml_smjs.c for (i=0; i<f->count; i++) { f 4160 src/scenegraph/vrml_smjs.c jsval newVal = JS_MAKE_DOUBLE(priv->js_ctx, FIX2FLT(f->vals[i])); f 4167 src/scenegraph/vrml_smjs.c MFTime *f = (MFTime *) field->far_ptr; f 4170 src/scenegraph/vrml_smjs.c for (i=0; i<f->count; i++) { f 4171 src/scenegraph/vrml_smjs.c jsval newVal = JS_MAKE_DOUBLE(priv->js_ctx, f->vals[i]); f 4178 src/scenegraph/vrml_smjs.c MFString *f = (MFString *) field->far_ptr; f 4181 src/scenegraph/vrml_smjs.c for (i=0; i<f->count; i++) { f 4182 src/scenegraph/vrml_smjs.c s = JS_NewStringCopyZ(priv->js_ctx, f->vals[i]); f 4190 src/scenegraph/vrml_smjs.c MFURL *f = (MFURL *) field->far_ptr; f 4193 src/scenegraph/vrml_smjs.c for (i=0; i<f->count; i++) { f 4194 src/scenegraph/vrml_smjs.c if (f->vals[i].OD_ID > 0) { f 4196 src/scenegraph/vrml_smjs.c sprintf(msg, "od:%d", f->vals[i].OD_ID); f 4199 src/scenegraph/vrml_smjs.c s = JS_NewStringCopyZ(priv->js_ctx, f->vals[i].url); f 4209 src/scenegraph/vrml_smjs.c MFVec2f *f = (MFVec2f *) field->far_ptr; f 4214 src/scenegraph/vrml_smjs.c for (i=0; i<f->count; i++) { f 4217 src/scenegraph/vrml_smjs.c slot = SFVec2f_Create(priv->js_ctx, pf, f->vals[i].x, f->vals[i].y); f 4225 src/scenegraph/vrml_smjs.c MFVec3f *f = (MFVec3f *) field->far_ptr; f 4230 src/scenegraph/vrml_smjs.c for (i=0; i<f->count; i++) { f 4233 src/scenegraph/vrml_smjs.c slot = SFVec3f_Create(priv->js_ctx, pf, f->vals[i].x, f->vals[i].y, f->vals[i].z); f 4241 src/scenegraph/vrml_smjs.c MFRotation *f = (MFRotation*) field->far_ptr; f 4246 src/scenegraph/vrml_smjs.c for (i=0; i<f->count; i++) { f 4249 src/scenegraph/vrml_smjs.c slot = SFRotation_Create(priv->js_ctx, pf, f->vals[i].x, f->vals[i].y, f->vals[i].z, f->vals[i].q); f 4257 src/scenegraph/vrml_smjs.c MFColor *f = (MFColor *) field->far_ptr; f 4262 src/scenegraph/vrml_smjs.c for (i=0; i<f->count; i++) { f 4265 src/scenegraph/vrml_smjs.c slot = SFColor_Create(priv->js_ctx, pf, f->vals[i].red, f->vals[i].green, f->vals[i].blue); f 4275 src/scenegraph/vrml_smjs.c GF_ChildNodeItem *f = * ((GF_ChildNodeItem **)field->far_ptr); f 4278 src/scenegraph/vrml_smjs.c size = gf_node_list_get_count(f); f 4282 src/scenegraph/vrml_smjs.c while (f) { f 4283 src/scenegraph/vrml_smjs.c node_get_binding(priv, f->node, 0); f 4284 src/scenegraph/vrml_smjs.c f = f->next; f 4289 src/scenegraph/vrml_smjs.c while (f) { f 4293 src/scenegraph/vrml_smjs.c n = f->node; f 4307 src/scenegraph/vrml_smjs.c f = f->next; f 1035 src/scenegraph/xml_ns.c FILE *f; f 1039 src/scenegraph/xml_ns.c f = gf_fopen(szFile, "rb"); f 1040 src/scenegraph/xml_ns.c if (!f) return 0; f 1042 src/scenegraph/xml_ns.c gf_fseek(f, 0, SEEK_END); f 1043 src/scenegraph/xml_ns.c fsize = gf_ftell(f); f 1047 src/scenegraph/xml_ns.c gf_fseek(f, 0, SEEK_SET); f 1049 src/scenegraph/xml_ns.c u32 read = (u32) fread(cache, 1, 1024, f); f 1055 src/scenegraph/xml_ns.c gf_fclose(f); f 1056 src/scenegraph/xml_ns.c f = NULL; f 1060 src/scenegraph/xml_ns.c if (f) f 1061 src/scenegraph/xml_ns.c gf_fclose(f); f 1072 src/scenegraph/xml_ns.c FILE *f; f 1140 src/scenegraph/xml_ns.c f = gf_fopen(szFile, "wb"); f 1141 src/scenegraph/xml_ns.c if (!f) { f 1147 src/scenegraph/xml_ns.c gf_fwrite(data, data_size, 1, f); f 1148 src/scenegraph/xml_ns.c gf_fclose(f); f 236 src/terminal/terminal.c FILE *f; f 242 src/terminal/terminal.c f = gf_fopen(loc->szAbsRelocatedPath, "rb"); f 243 src/terminal/terminal.c if (f) { f 244 src/terminal/terminal.c gf_fclose(f); f 120 src/utils/bitstream.c GF_BitStream *gf_bs_from_file(FILE *f, u32 mode) f 123 src/utils/bitstream.c if (!f) return NULL; f 135 src/utils/bitstream.c tmp->stream = f; f 138 src/utils/bitstream.c tmp->position = gf_ftell(f); f 139 src/utils/bitstream.c gf_fseek(f, 0, SEEK_END); f 140 src/utils/bitstream.c tmp->size = gf_ftell(f); f 141 src/utils/bitstream.c gf_fseek(f, tmp->position, SEEK_SET); f 614 src/utils/bitstream.c { float f; f 617 src/utils/bitstream.c float_value.f = value; f 3096 src/utils/downloader.c FILE * f; f 3099 src/utils/downloader.c f = gf_fopen(filename, "rb"); f 3101 src/utils/downloader.c if (!f) { f 3128 src/utils/downloader.c read = (s32) fread(file_cache_buff, sizeof(char), 16384, f); f 3142 src/utils/downloader.c gf_fclose(f); f 3386 src/utils/downloader.c FILE * f = (FILE*) cbk; f 3390 src/utils/downloader.c s32 written = (u32) gf_fwrite( param->data, sizeof(char), param->size, f); f 3413 src/utils/downloader.c FILE * f; f 3417 src/utils/downloader.c f = gf_fopen(filename, "wb"); f 3418 src/utils/downloader.c if (!f) { f 3422 src/utils/downloader.c dnload = gf_dm_sess_new_simple(dm, (char *)url, GF_NETIO_SESSION_NOT_THREADED, &wget_NetIO, f, &e); f 3437 src/utils/downloader.c gf_fclose(f); f 3450 src/utils/downloader.c FILE * f; f 3457 src/utils/downloader.c f = gf_temp_file_new(&f_fn); f 3458 src/utils/downloader.c if (!f) { f 3465 src/utils/downloader.c gf_fclose(f); f 3470 src/utils/downloader.c dnload = gf_dm_sess_new_simple(dm, (char *)url, GF_NETIO_SESSION_NOT_THREADED, &wget_NetIO, f, &e); f 3473 src/utils/downloader.c gf_fclose(f); f 3486 src/utils/downloader.c u32 size = (u32) ftell(f); f 3490 src/utils/downloader.c fseek(f, 0, SEEK_SET); f 3491 src/utils/downloader.c read = (s32) fread(*out_data, 1, size, f); f 3503 src/utils/downloader.c gf_fclose(f); f 1133 src/utils/math.c GF_Vec gf_vec_scale(GF_Vec v, Fixed f) f 1136 src/utils/math.c res.x = gf_mulfix(v.x, f); f 1137 src/utils/math.c res.y = gf_mulfix(v.y, f); f 1138 src/utils/math.c res.z = gf_mulfix(v.z, f); f 1210 src/utils/math.c GF_Vec gf_vec_scale(GF_Vec v, Fixed f) f 1213 src/utils/math.c res.x *= f; f 1214 src/utils/math.c res.y *= f; f 1215 src/utils/math.c res.z *= f; f 1523 src/utils/math.c Fixed f = gf_divfix(gf_cos(fieldOfView/2), gf_sin(fieldOfView/2)); f 1525 src/utils/math.c mx->m[0] = gf_divfix(f, aspectRatio); f 1526 src/utils/math.c mx->m[5] = f; f 1538 src/utils/math.c GF_Vec f, s, u; f 1540 src/utils/math.c gf_vec_diff(f, center, eye); f 1541 src/utils/math.c gf_vec_norm(&f); f 1544 src/utils/math.c s = gf_vec_cross(f, upVector); f 1545 src/utils/math.c u = gf_vec_cross(s, f); f 1550 src/utils/math.c mx->m[2] = -f.x; f 1553 src/utils/math.c mx->m[6] = -f.y; f 1556 src/utils/math.c mx->m[10] = -f.z; f 79 src/utils/os_config_init.c FILE *f; f 90 src/utils/os_config_init.c f = fopen(szPath, "rb"); f 91 src/utils/os_config_init.c if (!f) return GF_FALSE; f 92 src/utils/os_config_init.c fclose(f); f 108 src/utils/os_config_init.c FILE *f; f 186 src/utils/os_config_init.c f = fopen(szPath, "wb"); f 187 src/utils/os_config_init.c if (f != NULL) { f 188 src/utils/os_config_init.c fclose(f); f 203 src/utils/os_config_init.c f = fopen(szPath, "wb"); f 205 src/utils/os_config_init.c if (!f) return GF_FALSE; f 207 src/utils/os_config_init.c fclose(f); f 480 src/utils/os_config_init.c FILE *f; f 495 src/utils/os_config_init.c f = fopen(szPath, "wt"); f 496 src/utils/os_config_init.c if (!f) return NULL; f 497 src/utils/os_config_init.c fclose(f); f 609 src/utils/os_config_init.c f = gf_fopen(gui_path, "rt"); f 610 src/utils/os_config_init.c if (f) { f 611 src/utils/os_config_init.c gf_fclose(f); f 1254 src/utils/os_divers.c FILE *f; f 1265 src/utils/os_divers.c f = gf_fopen("/proc/stat", "r"); f 1266 src/utils/os_divers.c if (f) { f 1268 src/utils/os_divers.c if (fgets(line, 128, f) != NULL) { f 1273 src/utils/os_divers.c gf_fclose(f); f 1283 src/utils/os_divers.c f = gf_fopen(szProc, "r"); f 1284 src/utils/os_divers.c if (f) { f 1285 src/utils/os_divers.c fflush(f); f 1286 src/utils/os_divers.c if (fgets(line, 2048, f) != NULL) { f 1315 src/utils/os_divers.c gf_fclose(f); f 1320 src/utils/os_divers.c f = gf_fopen(szProc, "r"); f 1321 src/utils/os_divers.c if (f) { f 1322 src/utils/os_divers.c while (fgets(line, 1024, f) != NULL) { f 1328 src/utils/os_divers.c gf_fclose(f); f 1337 src/utils/os_divers.c f = gf_fopen("/proc/meminfo", "r"); f 1338 src/utils/os_divers.c if (f) { f 1339 src/utils/os_divers.c while (fgets(line, 1024, f) != NULL) { f 1349 src/utils/os_divers.c gf_fclose(f); f 214 src/utils/os_file.c FILE *f = gf_fopen(fileName, "r"); f 215 src/utils/os_file.c if (f) { f 216 src/utils/os_file.c gf_fclose(f); f 694 src/utils/sha1.c FILE *f; f 709 src/utils/sha1.c if( ( f = gf_fopen( path, "rb" ) ) == NULL ) f 714 src/utils/sha1.c while( ( n = fread( buf, 1, sizeof( buf ), f ) ) > 0 ) f 719 src/utils/sha1.c gf_fclose( f );