Lines Matching refs:glob
17 void writeHeader(EbmlGlobal *glob)
20 Ebml_StartSubElement(glob, &start, EBML);
21 Ebml_SerializeUnsigned(glob, EBMLVersion, 1);
22 Ebml_SerializeUnsigned(glob, EBMLReadVersion, 1); //EBML Read Version
23 Ebml_SerializeUnsigned(glob, EBMLMaxIDLength, 4); //EBML Max ID Length
24 Ebml_SerializeUnsigned(glob, EBMLMaxSizeLength, 8); //EBML Max Size Length
25 Ebml_SerializeString(glob, DocType, "webm"); //Doc Type
26 Ebml_SerializeUnsigned(glob, DocTypeVersion, 2); //Doc Type Version
27 Ebml_SerializeUnsigned(glob, DocTypeReadVersion, 2); //Doc Type Read Version
28 Ebml_EndSubElement(glob, &start);
31 void writeSimpleBlock(EbmlGlobal *glob, unsigned char trackNumber, short timeCode,
35 Ebml_WriteID(glob, SimpleBlock);
38 Ebml_Serialize(glob, &blockLength, 4);
40 Ebml_Write(glob, &trackNumber, 1);
41 //Ebml_WriteSigned16(glob, timeCode,2); //this is 3 bytes
42 Ebml_Serialize(glob, &timeCode, 2);
44 Ebml_Write(glob, &flags, 1);
45 Ebml_Write(glob, data, dataLength);
58 void writeVideoTrack(EbmlGlobal *glob, unsigned int trackNumber, int flagLacing,
63 Ebml_StartSubElement(glob, &start, TrackEntry);
64 Ebml_SerializeUnsigned(glob, TrackNumber, trackNumber);
66 Ebml_SerializeUnsigned(glob, TrackUID, trackID);
67 Ebml_SerializeString(glob, CodecName, "VP8"); //TODO shouldn't be fixed
69 Ebml_SerializeUnsigned(glob, TrackType, 1); //video is always 1
70 Ebml_SerializeString(glob, CodecID, codecId);
73 Ebml_StartSubElement(glob, &videoStart, Video);
74 Ebml_SerializeUnsigned(glob, PixelWidth, pixelWidth);
75 Ebml_SerializeUnsigned(glob, PixelHeight, pixelHeight);
76 Ebml_SerializeFloat(glob, FrameRate, frameRate);
77 Ebml_EndSubElement(glob, &videoStart); //Video
79 Ebml_EndSubElement(glob, &start); //Track Entry
81 void writeAudioTrack(EbmlGlobal *glob, unsigned int trackNumber, int flagLacing,
86 Ebml_StartSubElement(glob, &start, TrackEntry);
87 Ebml_SerializeUnsigned(glob, TrackNumber, trackNumber);
89 Ebml_SerializeUnsigned(glob, TrackUID, trackID);
90 Ebml_SerializeUnsigned(glob, TrackType, 2); //audio is always 2
92 /* Ebml_SerializeUnsigned(glob, FlagEnabled, 1);
93 Ebml_SerializeUnsigned(glob, FlagDefault, 1);
94 Ebml_SerializeUnsigned(glob, FlagForced, 1);
95 Ebml_SerializeUnsigned(glob, FlagLacing, flagLacing);*/
96 Ebml_SerializeString(glob, CodecID, codecId);
97 Ebml_SerializeData(glob, CodecPrivate, private, privateSize);
99 Ebml_SerializeString(glob, CodecName, "VORBIS"); //fixed for now
102 Ebml_StartSubElement(glob, &AudioStart, Audio);
103 Ebml_SerializeFloat(glob, SamplingFrequency, samplingFrequency);
104 Ebml_SerializeUnsigned(glob, Channels, channels);
105 Ebml_EndSubElement(glob, &AudioStart);
107 Ebml_EndSubElement(glob, &start);