Lines Matching refs:glob
17 void writeHeader(EbmlGlobal *glob) {
19 Ebml_StartSubElement(glob, &start, EBML);
20 Ebml_SerializeUnsigned(glob, EBMLVersion, 1);
21 Ebml_SerializeUnsigned(glob, EBMLReadVersion, 1); // EBML Read Version
22 Ebml_SerializeUnsigned(glob, EBMLMaxIDLength, 4); // EBML Max ID Length
23 Ebml_SerializeUnsigned(glob, EBMLMaxSizeLength, 8); // EBML Max Size Length
24 Ebml_SerializeString(glob, DocType, "webm"); // Doc Type
25 Ebml_SerializeUnsigned(glob, DocTypeVersion, 2); // Doc Type Version
26 Ebml_SerializeUnsigned(glob, DocTypeReadVersion, 2); // Doc Type Read Version
27 Ebml_EndSubElement(glob, &start);
30 void writeSimpleBlock(EbmlGlobal *glob, unsigned char trackNumber, short timeCode,
33 Ebml_WriteID(glob, SimpleBlock);
36 Ebml_Serialize(glob, &blockLength, sizeof(blockLength), 4);
38 Ebml_Write(glob, &trackNumber, 1);
39 // Ebml_WriteSigned16(glob, timeCode,2); //this is 3 bytes
40 Ebml_Serialize(glob, &timeCode, sizeof(timeCode), 2);
42 Ebml_Write(glob, &flags, 1);
43 Ebml_Write(glob, data, dataLength);
55 void writeVideoTrack(EbmlGlobal *glob, unsigned int trackNumber, int flagLacing,
59 Ebml_StartSubElement(glob, &start, TrackEntry);
60 Ebml_SerializeUnsigned(glob, TrackNumber, trackNumber);
62 Ebml_SerializeUnsigned(glob, TrackUID, trackID);
63 Ebml_SerializeString(glob, CodecName, "VP8"); // TODO shouldn't be fixed
65 Ebml_SerializeUnsigned(glob, TrackType, 1); // video is always 1
66 Ebml_SerializeString(glob, CodecID, codecId);
69 Ebml_StartSubElement(glob, &videoStart, Video);
70 Ebml_SerializeUnsigned(glob, PixelWidth, pixelWidth);
71 Ebml_SerializeUnsigned(glob, PixelHeight, pixelHeight);
72 Ebml_SerializeFloat(glob, FrameRate, frameRate);
73 Ebml_EndSubElement(glob, &videoStart); // Video
75 Ebml_EndSubElement(glob, &start); // Track Entry
77 void writeAudioTrack(EbmlGlobal *glob, unsigned int trackNumber, int flagLacing,
81 Ebml_StartSubElement(glob, &start, TrackEntry);
82 Ebml_SerializeUnsigned(glob, TrackNumber, trackNumber);
84 Ebml_SerializeUnsigned(glob, TrackUID, trackID);
85 Ebml_SerializeUnsigned(glob, TrackType, 2); // audio is always 2
87 /* Ebml_SerializeUnsigned(glob, FlagEnabled, 1);
88 Ebml_SerializeUnsigned(glob, FlagDefault, 1);
89 Ebml_SerializeUnsigned(glob, FlagForced, 1);
90 Ebml_SerializeUnsigned(glob, FlagLacing, flagLacing);*/
91 Ebml_SerializeString(glob, CodecID, codecId);
92 Ebml_SerializeData(glob, CodecPrivate, private, privateSize);
94 Ebml_SerializeString(glob, CodecName, "VORBIS"); // fixed for now
97 Ebml_StartSubElement(glob, &AudioStart, Audio);
98 Ebml_SerializeFloat(glob, SamplingFrequency, samplingFrequency);
99 Ebml_SerializeUnsigned(glob, Channels, channels);
100 Ebml_EndSubElement(glob, &AudioStart);
102 Ebml_EndSubElement(glob, &start);