Lines Matching full:preader
62 long long ReadUInt(IMkvReader* pReader, long long pos, long& len) {
63 if (!pReader || pos < 0)
68 int status = pReader->Read(pos, 1, &b);
90 status = pReader->Read(pos, 1, &b);
118 long long ReadID(IMkvReader* pReader, long long pos, long& len) {
119 if (pReader == NULL || pos < 0)
125 int read_status = pReader->Read(pos, 1, &temp_byte);
158 read_status = pReader->Read(pos + i, 1, &temp_byte);
172 long long GetUIntLength(IMkvReader* pReader, long long pos, long& len) {
173 if (!pReader || pos < 0)
178 int status = pReader->Length(&total, &available);
189 status = pReader->Read(pos, 1, &b);
209 long long UnserializeUInt(IMkvReader* pReader, long long pos, long long size) {
210 if (!pReader || pos < 0 || (size <= 0) || (size > 8))
218 const long status = pReader->Read(pos, 1, &b);
232 long UnserializeFloat(IMkvReader* pReader, long long pos, long long size_,
234 if (!pReader || pos < 0 || ((size_ != 4) && (size_ != 8)))
241 const int status = pReader->Read(pos, size, buf);
290 long UnserializeInt(IMkvReader* pReader, long long pos, long long size,
292 if (!pReader || pos < 0 || size < 1 || size > 8)
296 const long status = pReader->Read(pos, 1, (unsigned char*)&first_byte);
307 const long status = pReader->Read(pos, 1, &b);
322 long UnserializeString(IMkvReader* pReader, long long pos, long long size,
339 const long status = pReader->Read(pos, static_cast<long>(size), buf);
352 long ParseElementHeader(IMkvReader* pReader, long long& pos, long long stop,
359 id = ReadID(pReader, pos, len);
369 size = ReadUInt(pReader, pos, len);
393 bool Match(IMkvReader* pReader, long long& pos, unsigned long expected_id,
395 if (!pReader || pos < 0)
401 const long status = pReader->Length(&total, &available);
407 const long long id = ReadID(pReader, pos, len);
416 const long long size = ReadUInt(pReader, pos, len);
422 val = UnserializeUInt(pReader, pos, size);
431 bool Match(IMkvReader* pReader, long long& pos, unsigned long expected_id,
433 if (!pReader || pos < 0)
439 long status = pReader->Length(&total, &available);
444 const long long id = ReadID(pReader, pos, len);
453 const long long size = ReadUInt(pReader, pos, len);
480 status = pReader->Read(pos, buflen_, buf);
509 long long EBMLHeader::Parse(IMkvReader* pReader, long long& pos) {
510 if (!pReader)
515 long status = pReader->Length(&total, &available);
528 status = pReader->Read(pos, 1, &scan_byte);
542 const long long ebml_id = ReadID(pReader, pos, len);
554 long long result = GetUIntLength(pReader, pos, len);
571 result = ReadUInt(pReader, pos, len);
593 status = ParseElementHeader(pReader, pos, end, id, size);
602 m_version = UnserializeUInt(pReader, pos, size);
607 m_readVersion = UnserializeUInt(pReader, pos, size);
612 m_maxIdLength = UnserializeUInt(pReader, pos, size);
617 m_maxSizeLength = UnserializeUInt(pReader, pos, size);
625 status = UnserializeString(pReader, pos, size, m_docType);
630 m_docTypeVersion = UnserializeUInt(pReader, pos, size);
635 m_docTypeReadVersion = UnserializeUInt(pReader, pos, size);
659 Segment::Segment(IMkvReader* pReader, long long elem_start,
662 : m_pReader(pReader),
701 pReader, long long pos,
703 if (pReader == NULL || pos < 0)
710 const long status = pReader->Length(&total, &available);
744 long long result = GetUIntLength(pReader, pos, len);
756 const long long id = ReadID(pReader, pos, len);
765 result = GetUIntLength(pReader, pos, len);
776 long long size = ReadUInt(pReader, pos, len);
798 pSegment = new (std::nothrow) Segment(pReader, idpos, pos, size);
1496 IMkvReader* const pReader = m_pSegment->m_pReader;
1509 const long status = ParseElementHeader(pReader, pos, stop, id, size);
1550 const long status = ParseElementHeader(pReader, pos, stop, id, size);
1556 if (ParseEntry(pReader, pos, size, pEntry)) {
1732 bool SeekHead::ParseEntry(IMkvReader* pReader, long long start, long long size_,
1744 const long long seekIdId = ReadID(pReader, pos, len);
1756 const long long seekIdSize = ReadUInt(pReader, pos, len);
1780 pEntry->id = ReadUInt(pReader, pos, len); // payload
1790 const long long seekPosId = ReadID(pReader, pos, len);
1800 const long long seekPosSize = ReadUInt(pReader, pos, len);
1813 pEntry->pos = UnserializeUInt(pReader, pos, seekPosSize);
1873 IMkvReader* const pReader = m_pSegment->m_pReader;
1885 const long long id = ReadID(pReader, pos, len);
1892 const long long size = ReadUInt(pReader, pos, len);
1956 IMkvReader* const pReader = m_pSegment->m_pReader;
1963 const long long id = ReadID(pReader, m_pos, len);
1969 const long long size = ReadUInt(pReader, m_pos, len);
1992 if (!pCP->Load(pReader)) {
2269 bool CuePoint::Load(IMkvReader* pReader) {
2287 const long long id = ReadID(pReader, pos_, len);
2293 const long long size = ReadUInt(pReader, pos_, len);
2311 const long long id = ReadID(pReader, pos, len);
2318 const long long size = ReadUInt(pReader, pos, len);
2329 m_timecode = UnserializeUInt(pReader, pos, size);
2357 const long long id = ReadID(pReader, pos, len);
2363 const long long size = ReadUInt(pReader, pos, len);
2372 if (!tp.Parse(pReader, pos, size)) {
2390 bool CuePoint::TrackPosition::Parse(IMkvReader* pReader, long long start_,
2402 const long long id = ReadID(pReader, pos, len);
2409 const long long size = ReadUInt(pReader, pos, len);
2420 m_track = UnserializeUInt(pReader, pos, size);
2422 m_pos = UnserializeUInt(pReader, pos, size);
2424 m_block = UnserializeUInt(pReader, pos, size);
3245 IMkvReader* const pReader = m_pSegment->m_pReader;
3253 long status = ParseElementHeader(pReader, pos, stop, id, size);
3362 long Chapters::Edition::Parse(IMkvReader* pReader, long long pos,
3369 long status = ParseElementHeader(pReader, pos, stop, id, size);
3378 status = ParseAtom(pReader, pos, size);
3394 long Chapters::Edition::ParseAtom(IMkvReader* pReader, long long pos,
3402 return a.Parse(pReader, pos, size);
3496 long Chapters::Atom::Parse(IMkvReader* pReader, long long pos, long long size) {
3502 long status = ParseElementHeader(pReader, pos, stop, id, size);
3511 status = ParseDisplay(pReader, pos, size);
3516 status = UnserializeString(pReader, pos, size, m_string_uid);
3522 status = UnserializeInt(pReader, pos, size, val);
3529 const long long val = UnserializeUInt(pReader, pos, size);
3536 const long long val = UnserializeUInt(pReader, pos, size);
3582 long Chapters::Atom::ParseDisplay(IMkvReader* pReader, long long pos,
3590 return d.Parse(pReader, pos, size);
3648 long Chapters::Display::Parse(IMkvReader* pReader, long long pos,
3655 long status = ParseElementHeader(pReader, pos, stop, id, size);
3664 status = UnserializeString(pReader, pos, size, m_string);
3669 status = UnserializeString(pReader, pos, size, m_language);
3674 status = UnserializeString(pReader, pos, size, m_country);
3710 IMkvReader* const pReader = m_pSegment->m_pReader;
3718 long status = ParseElementHeader(pReader, pos, stop, id, size);
3828 long Tags::Tag::Parse(IMkvReader* pReader, long long pos, long long size) {
3834 long status = ParseElementHeader(pReader, pos, stop, id, size);
3843 status = ParseSimpleTag(pReader, pos, size);
3859 long Tags::Tag::ParseSimpleTag(IMkvReader* pReader, long long pos,
3867 return st.Parse(pReader, pos, size);
3918 long Tags::SimpleTag::Parse(IMkvReader* pReader, long long pos,
3925 long status = ParseElementHeader(pReader, pos, stop, id, size);
3934 status = UnserializeString(pReader, pos, size, m_tag_name);
3939 status = UnserializeString(pReader, pos, size, m_tag_string);
3982 IMkvReader* const pReader = m_pSegment->m_pReader;
3993 const long status = ParseElementHeader(pReader, pos, stop, id, size);
3999 m_timecodeScale = UnserializeUInt(pReader, pos, size);
4004 const long status = UnserializeFloat(pReader, pos, size, m_duration);
4013 UnserializeString(pReader, pos, size, m_pMuxingAppAsUTF8);
4019 UnserializeString(pReader, pos, size, m_pWritingAppAsUTF8);
4024 const long status = UnserializeString(pReader, pos, size, m_pTitleAsUTF8);
4164 long long start, long long size, IMkvReader* pReader,
4166 assert(pReader);
4174 const long status = ParseElementHeader(pReader, pos, stop, id, size);
4179 aes->cipher_mode = UnserializeUInt(pReader, pos, size);
4193 IMkvReader* pReader) {
4194 assert(pReader);
4205 const long status = ParseElementHeader(pReader, pos, stop, id, size);
4244 long status = ParseElementHeader(pReader, pos, stop, id, size);
4249 encoding_order_ = UnserializeUInt(pReader, pos, size);
4251 encoding_scope_ = UnserializeUInt(pReader, pos, size);
4255 encoding_type_ = UnserializeUInt(pReader, pos, size);
4262 status = ParseCompressionEntry(pos, size, pReader, compression);
4274 status = ParseEncryptionEntry(pos, size, pReader, encryption);
4293 IMkvReader* pReader,
4295 assert(pReader);
4305 const long status = ParseElementHeader(pReader, pos, stop, id, size);
4310 long long algo = UnserializeUInt(pReader, pos, size);
4325 pReader->Read(pos, static_cast<long>(buflen), buf);
4348 IMkvReader* pReader,
4350 assert(pReader);
4358 const long status = ParseElementHeader(pReader, pos, stop, id, size);
4363 encryption->algo = UnserializeUInt(pReader, pos, size);
4380 pReader->Read(pos, static_cast<long>(buflen), buf);
4402 pReader->Read(pos, static_cast<long>(buflen), buf);
4424 pReader->Read(pos, static_cast<long>(buflen), buf);
4433 encryption->sig_algo = UnserializeUInt(pReader, pos, size);
4435 encryption->sig_hash_algo = UnserializeUInt(pReader, pos, size);
4438 pos, size, pReader, &encryption->aes_settings);
4908 IMkvReader* const pReader = m_pSegment->m_pReader;
4909 assert(pReader);
4918 const long status = ParseElementHeader(pReader, pos, stop, id, size);
4943 long status = ParseElementHeader(pReader, pos, stop, id, size);
4954 status = content_encoding->ParseContentEncodingEntry(pos, size, pReader);
5215 IMkvReader* const pReader = pSegment->m_pReader;
5231 const long status = ParseElementHeader(pReader, pos, stop, id, size);
5237 width = UnserializeUInt(pReader, pos, size);
5242 height = UnserializeUInt(pReader, pos, size);
5247 display_width = UnserializeUInt(pReader, pos, size);
5252 display_height = UnserializeUInt(pReader, pos, size);
5257 display_unit = UnserializeUInt(pReader, pos, size);
5262 stereo_mode = UnserializeUInt(pReader, pos, size);
5267 const long status = UnserializeFloat(pReader, pos, size, rate);
5275 if (!Colour::Parse(pReader, pos, size, &colour))
5439 IMkvReader* const pReader = pSegment->m_pReader;
5457 long status = ParseElementHeader(pReader, pos, stop, id, size);
5463 status = UnserializeFloat(pReader, pos, size, rate);
5471 channels = UnserializeUInt(pReader, pos, size);
5476 bit_depth = UnserializeUInt(pReader, pos, size);
5532 IMkvReader* const pReader = m_pSegment->m_pReader;
5540 const long status = ParseElementHeader(pReader, pos, stop, id, size);
5577 ParseElementHeader(pReader, pos, stop, id, payload_size);
5627 IMkvReader* const pReader = m_pSegment->m_pReader;
5656 const long status = ParseElementHeader(pReader, pos, track_stop, id, size);
5687 const int status = pReader->Read(pos_, 1, &b);
5698 const long long num = UnserializeUInt(pReader, pos, size);
5705 const long long type = UnserializeUInt(pReader, pos, size);
5713 UnserializeString(pReader, pos, size, info.nameAsUTF8);
5718 const long status = UnserializeString(pReader, pos, size, info.language);
5723 const long long duration = UnserializeUInt(pReader, pos, size);
5730 const long status = UnserializeString(pReader, pos, size, info.codecId);
5735 lacing = UnserializeUInt(pReader, pos, size);
5752 const int status = pReader->Read(pos, static_cast<long>(buflen), buf);
5764 UnserializeString(pReader, pos, size, info.codecNameAsUTF8);
5769 info.codecDelay = UnserializeUInt(pReader, pos, size);
5771 info.seekPreRoll = UnserializeUInt(pReader, pos, size);
5918 IMkvReader* const pReader = m_pSegment->m_pReader;
5920 const int status = pReader->Length(&total, &avail);
5937 long long result = GetUIntLength(pReader, pos, len);
5948 const long long id_ = ReadID(pReader, pos, len);
5965 result = GetUIntLength(pReader, pos, len);
5976 const long long size = ReadUInt(pReader, pos, len);
6009 long long result = GetUIntLength(pReader, pos, len);
6023 const long long id = ReadID(pReader, pos, len);
6050 result = GetUIntLength(pReader, pos, len);
6064 const long long size = ReadUInt(pReader, pos, len);
6093 timecode = UnserializeUInt(pReader, pos, size);
6148 IMkvReader* const pReader = m_pSegment->m_pReader;
6152 status = pReader->Length(&total, &avail);
6180 long long result = GetUIntLength(pReader, pos, len);
6194 const long long id = ReadID(pReader, pos, len);
6219 result = GetUIntLength(pReader, pos, len);
6233 const long long size = ReadUInt(pReader, pos, len);
6328 IMkvReader* const pReader = m_pSegment->m_pReader;
6332 long status = pReader->Length(&total, &avail);
6346 long long result = GetUIntLength(pReader, pos, len);
6360 const long long track = ReadUInt(pReader, pos, len);
6390 status = pReader->Read(pos, 1, &flags);
6426 IMkvReader* const pReader = m_pSegment->m_pReader;
6430 long status = pReader->Length(&total, &avail);
6455 long long result = GetUIntLength(pReader, pos, len);
6469 const long long id = ReadID(pReader, pos, len);
6486 result = GetUIntLength(pReader, pos, len);
6500 const long long size = ReadUInt(pReader, pos, len);
6521 status = UnserializeInt(pReader, pos, size, discard_padding);
6548 result = GetUIntLength(pReader, pos, len);
6562 const long long track = ReadUInt(pReader, pos, len);
6592 status = pReader->Read(pos, 1, &flags);
6737 IMkvReader* const pReader = pSegment->m_pReader;
6741 long status = pReader->Length(&total, &avail);
6764 long long result = GetUIntLength(pReader, pos, len);
6781 const long long id = ReadID(pReader, pos, len);
6798 result = GetUIntLength(pReader, pos, len);
6815 const long long size = ReadUInt(pReader, pos, len);
6851 long long result = GetUIntLength(pReader, pos, len);
6865 const long long id = ReadID(pReader, pos, len);
6892 result = GetUIntLength(pReader, pos, len);
6906 const long long size = ReadUInt(pReader, pos, len);
7060 IMkvReader* const pReader = m_pSegment->m_pReader;
7080 const long long id = ReadID(pReader, pos, len);
7086 const long long size = ReadUInt(pReader, pos, len);
7101 duration = UnserializeUInt(pReader, pos, size);
7112 long status = UnserializeInt(pReader, pos, size_, time);
7519 IMkvReader* const pReader = pCluster->m_pSegment->m_pReader;
7521 m_track = ReadUInt(pReader, pos, len);
7537 status = UnserializeInt(pReader, pos, 2, value);
7555 status = pReader->Read(pos, 1, &m_flags);
7591 status = pReader->Read(pos, 1, &biased_count);
7625 status = pReader->Read(pos, 1, &val);
7737 long long frame_size = ReadUInt(pReader, pos, len);
7788 const long long delta_size_ = ReadUInt(pReader, pos, len);
7930 long Block::Frame::Read(IMkvReader* pReader, unsigned char* buf) const {
7931 assert(pReader);
7934 const long status = pReader->Read(pos, len, buf);