Lines Matching refs:pReader

29 long long mkvparser::ReadUInt(IMkvReader* pReader, long long pos, long& len) {  in ReadUInt()  argument
30 assert(pReader); in ReadUInt()
48 status = pReader->Read(pos, 1, &b); in ReadUInt()
74 status = pReader->Read(pos, 1, &b); in ReadUInt()
95 long long mkvparser::GetUIntLength(IMkvReader* pReader, long long pos, in GetUIntLength() argument
97 assert(pReader); in GetUIntLength()
102 int status = pReader->Length(&total, &available); in GetUIntLength()
113 status = pReader->Read(pos, 1, &b); in GetUIntLength()
135 long long mkvparser::UnserializeUInt(IMkvReader* pReader, long long pos, in UnserializeUInt() argument
137 assert(pReader); in UnserializeUInt()
148 const long status = pReader->Read(pos, 1, &b); in UnserializeUInt()
162 long mkvparser::UnserializeFloat(IMkvReader* pReader, long long pos, in UnserializeFloat() argument
164 assert(pReader); in UnserializeFloat()
174 const int status = pReader->Read(pos, size, buf); in UnserializeFloat()
222 long mkvparser::UnserializeInt(IMkvReader* pReader, long long pos, long size, in UnserializeInt() argument
224 assert(pReader); in UnserializeInt()
232 const long status = pReader->Read(pos, 1, (unsigned char*)&b); in UnserializeInt()
245 const long status = pReader->Read(pos, 1, &b); in UnserializeInt()
259 long mkvparser::UnserializeString(IMkvReader* pReader, long long pos, in UnserializeString() argument
276 const long status = pReader->Read(pos, size, buf); in UnserializeString()
290 long mkvparser::ParseElementHeader(IMkvReader* pReader, long long& pos, in ParseElementHeader() argument
298 id = ReadUInt(pReader, pos, len); in ParseElementHeader()
308 size = ReadUInt(pReader, pos, len); in ParseElementHeader()
323 bool mkvparser::Match(IMkvReader* pReader, long long& pos, unsigned long id_, in Match() argument
325 assert(pReader); in Match()
330 const long status = pReader->Length(&total, &available); in Match()
338 const long long id = ReadUInt(pReader, pos, len); in Match()
349 const long long size = ReadUInt(pReader, pos, len); in Match()
358 val = UnserializeUInt(pReader, pos, size); in Match()
366 bool mkvparser::Match(IMkvReader* pReader, long long& pos, unsigned long id_, in Match() argument
368 assert(pReader); in Match()
373 long status = pReader->Length(&total, &available); in Match()
380 const long long id = ReadUInt(pReader, pos, len); in Match()
391 const long long size_ = ReadUInt(pReader, pos, len); in Match()
405 status = pReader->Read(pos, buflen_, buf); in Match()
435 long long EBMLHeader::Parse(IMkvReader* pReader, long long& pos) { in Parse() argument
436 assert(pReader); in Parse()
440 long status = pReader->Length(&total, &available); in Parse()
452 status = pReader->Read(pos, 1, &b); in Parse()
481 const long long result = ReadUInt(pReader, pos, len); in Parse()
499 long long result = GetUIntLength(pReader, pos, len); in Parse()
518 result = ReadUInt(pReader, pos, len); in Parse()
540 status = ParseElementHeader(pReader, pos, end, id, size); in Parse()
549 m_version = UnserializeUInt(pReader, pos, size); in Parse()
554 m_readVersion = UnserializeUInt(pReader, pos, size); in Parse()
559 m_maxIdLength = UnserializeUInt(pReader, pos, size); in Parse()
564 m_maxSizeLength = UnserializeUInt(pReader, pos, size); in Parse()
572 status = UnserializeString(pReader, pos, size, m_docType); in Parse()
577 m_docTypeVersion = UnserializeUInt(pReader, pos, size); in Parse()
582 m_docTypeReadVersion = UnserializeUInt(pReader, pos, size); in Parse()
595 Segment::Segment(IMkvReader* pReader, long long elem_start, in Segment() argument
598 : m_pReader(pReader), in Segment()
637 long long Segment::CreateInstance(IMkvReader* pReader, long long pos, in CreateInstance() argument
639 assert(pReader); in CreateInstance()
646 const long status = pReader->Length(&total, &available); in CreateInstance()
680 long long result = GetUIntLength(pReader, pos, len); in CreateInstance()
692 const long long id = ReadUInt(pReader, pos, len); in CreateInstance()
701 result = GetUIntLength(pReader, pos, len); in CreateInstance()
712 long long size = ReadUInt(pReader, pos, len); in CreateInstance()
734 pSegment = new (std::nothrow) Segment(pReader, idpos, in CreateInstance()
1684 IMkvReader* const pReader = m_pSegment->m_pReader; in Parse() local
1697 const long status = ParseElementHeader(pReader, pos, stop, id, size); in Parse()
1735 const long status = ParseElementHeader(pReader, pos, stop, id, size); in Parse()
1741 if (ParseEntry(pReader, pos, size, pEntry)) { in Parse()
2023 bool SeekHead::ParseEntry(IMkvReader* pReader, long long start, long long size_, in ParseEntry() argument
2035 const long long seekIdId = ReadUInt(pReader, pos, len); in ParseEntry()
2046 const long long seekIdSize = ReadUInt(pReader, pos, len); in ParseEntry()
2070 pEntry->id = ReadUInt(pReader, pos, len); // payload in ParseEntry()
2080 const long long seekPosId = ReadUInt(pReader, pos, len); in ParseEntry()
2090 const long long seekPosSize = ReadUInt(pReader, pos, len); in ParseEntry()
2103 pEntry->pos = UnserializeUInt(pReader, pos, seekPosSize); in ParseEntry()
2164 IMkvReader* const pReader = m_pSegment->m_pReader; in Init() local
2176 const long long id = ReadUInt(pReader, pos, len); in Init()
2182 const long long size = ReadUInt(pReader, pos, len); in Init()
2233 IMkvReader* const pReader = m_pSegment->m_pReader; in LoadCuePoint() local
2240 const long long id = ReadUInt(pReader, m_pos, len); in LoadCuePoint()
2246 const long long size = ReadUInt(pReader, m_pos, len); in LoadCuePoint()
2268 pCP->Load(pReader); in LoadCuePoint()
2308 IMkvReader* const pReader = m_pSegment->m_pReader; in Find()
2323 pCP->Load(pReader); in Find()
2710 void CuePoint::Load(IMkvReader* pReader) { in Load() argument
2728 const long long id = ReadUInt(pReader, pos_, len); in Load()
2735 const long long size = ReadUInt(pReader, pos_, len); in Load()
2753 const long long id = ReadUInt(pReader, pos, len); in Load()
2759 const long long size = ReadUInt(pReader, pos, len); in Load()
2767 m_timecode = UnserializeUInt(pReader, pos, size); in Load()
2793 const long long id = ReadUInt(pReader, pos, len); in Load()
2799 const long long size = ReadUInt(pReader, pos, len); in Load()
2808 tp.Parse(pReader, pos, size); in Load()
2821 void CuePoint::TrackPosition::Parse(IMkvReader* pReader, long long start_, in Parse() argument
2833 const long long id = ReadUInt(pReader, pos, len); in Parse()
2839 const long long size = ReadUInt(pReader, pos, len); in Parse()
2847 m_track = UnserializeUInt(pReader, pos, size); in Parse()
2850 m_pos = UnserializeUInt(pReader, pos, size); in Parse()
2853 m_block = UnserializeUInt(pReader, pos, size); in Parse()
3861 IMkvReader* const pReader = m_pSegment->m_pReader; in Parse() local
3869 long status = ParseElementHeader(pReader, pos, stop, id, size); in Parse()
3976 long Chapters::Edition::Parse(IMkvReader* pReader, long long pos, in Parse() argument
3983 long status = ParseElementHeader(pReader, pos, stop, id, size); in Parse()
3992 status = ParseAtom(pReader, pos, size); in Parse()
4006 long Chapters::Edition::ParseAtom(IMkvReader* pReader, long long pos, in ParseAtom() argument
4014 return a.Parse(pReader, pos, size); in ParseAtom()
4108 long Chapters::Atom::Parse(IMkvReader* pReader, long long pos, long long size) { in Parse() argument
4114 long status = ParseElementHeader(pReader, pos, stop, id, size); in Parse()
4123 status = ParseDisplay(pReader, pos, size); in Parse()
4128 status = UnserializeString(pReader, pos, size, m_string_uid); in Parse()
4134 status = UnserializeInt(pReader, pos, size, val); in Parse()
4141 const long long val = UnserializeUInt(pReader, pos, size); in Parse()
4148 const long long val = UnserializeUInt(pReader, pos, size); in Parse()
4192 long Chapters::Atom::ParseDisplay(IMkvReader* pReader, long long pos, in ParseDisplay() argument
4200 return d.Parse(pReader, pos, size); in ParseDisplay()
4258 long Chapters::Display::Parse(IMkvReader* pReader, long long pos, in Parse() argument
4265 long status = ParseElementHeader(pReader, pos, stop, id, size); in Parse()
4274 status = UnserializeString(pReader, pos, size, m_string); in Parse()
4279 status = UnserializeString(pReader, pos, size, m_language); in Parse()
4284 status = UnserializeString(pReader, pos, size, m_country); in Parse()
4325 IMkvReader* const pReader = m_pSegment->m_pReader; in Parse() local
4336 const long status = ParseElementHeader(pReader, pos, stop, id, size); in Parse()
4342 m_timecodeScale = UnserializeUInt(pReader, pos, size); in Parse()
4347 const long status = UnserializeFloat(pReader, pos, size, m_duration); in Parse()
4356 UnserializeString(pReader, pos, size, m_pMuxingAppAsUTF8); in Parse()
4362 UnserializeString(pReader, pos, size, m_pWritingAppAsUTF8); in Parse()
4367 const long status = UnserializeString(pReader, pos, size, m_pTitleAsUTF8); in Parse()
4500 long long start, long long size, IMkvReader* pReader, in ParseContentEncAESSettingsEntry() argument
4502 assert(pReader); in ParseContentEncAESSettingsEntry()
4510 const long status = ParseElementHeader(pReader, pos, stop, id, size); in ParseContentEncAESSettingsEntry()
4516 aes->cipher_mode = UnserializeUInt(pReader, pos, size); in ParseContentEncAESSettingsEntry()
4529 IMkvReader* pReader) { in ParseContentEncodingEntry() argument
4530 assert(pReader); in ParseContentEncodingEntry()
4541 const long status = ParseElementHeader(pReader, pos, stop, id, size); in ParseContentEncodingEntry()
4579 long status = ParseElementHeader(pReader, pos, stop, id, size); in ParseContentEncodingEntry()
4585 encoding_order_ = UnserializeUInt(pReader, pos, size); in ParseContentEncodingEntry()
4588 encoding_scope_ = UnserializeUInt(pReader, pos, size); in ParseContentEncodingEntry()
4593 encoding_type_ = UnserializeUInt(pReader, pos, size); in ParseContentEncodingEntry()
4601 status = ParseCompressionEntry(pos, size, pReader, compression); in ParseContentEncodingEntry()
4614 status = ParseEncryptionEntry(pos, size, pReader, encryption); in ParseContentEncodingEntry()
4631 IMkvReader* pReader, in ParseCompressionEntry() argument
4633 assert(pReader); in ParseCompressionEntry()
4643 const long status = ParseElementHeader(pReader, pos, stop, id, size); in ParseCompressionEntry()
4649 long long algo = UnserializeUInt(pReader, pos, size); in ParseCompressionEntry()
4666 pReader->Read(pos, static_cast<long>(buflen), buf); in ParseCompressionEntry()
4688 IMkvReader* pReader, in ParseEncryptionEntry() argument
4690 assert(pReader); in ParseEncryptionEntry()
4698 const long status = ParseElementHeader(pReader, pos, stop, id, size); in ParseEncryptionEntry()
4704 encryption->algo = UnserializeUInt(pReader, pos, size); in ParseEncryptionEntry()
4723 pReader->Read(pos, static_cast<long>(buflen), buf); in ParseEncryptionEntry()
4747 pReader->Read(pos, static_cast<long>(buflen), buf); in ParseEncryptionEntry()
4771 pReader->Read(pos, static_cast<long>(buflen), buf); in ParseEncryptionEntry()
4781 encryption->sig_algo = UnserializeUInt(pReader, pos, size); in ParseEncryptionEntry()
4784 encryption->sig_hash_algo = UnserializeUInt(pReader, pos, size); in ParseEncryptionEntry()
4788 pos, size, pReader, &encryption->aes_settings); in ParseEncryptionEntry()
5272 IMkvReader* const pReader = m_pSegment->m_pReader; in ParseContentEncodingsEntry() local
5273 assert(pReader); in ParseContentEncodingsEntry()
5282 const long status = ParseElementHeader(pReader, pos, stop, id, size); in ParseContentEncodingsEntry()
5306 long status = ParseElementHeader(pReader, pos, stop, id, size); in ParseContentEncodingsEntry()
5317 status = content_encoding->ParseContentEncodingEntry(pos, size, pReader); in ParseContentEncodingsEntry()
5358 IMkvReader* const pReader = pSegment->m_pReader; in Parse() local
5372 const long status = ParseElementHeader(pReader, pos, stop, id, size); in Parse()
5378 width = UnserializeUInt(pReader, pos, size); in Parse()
5383 height = UnserializeUInt(pReader, pos, size); in Parse()
5388 const long status = UnserializeFloat(pReader, pos, size, rate); in Parse()
5545 IMkvReader* const pReader = pSegment->m_pReader; in Parse() local
5563 long status = ParseElementHeader(pReader, pos, stop, id, size); in Parse()
5569 status = UnserializeFloat(pReader, pos, size, rate); in Parse()
5577 channels = UnserializeUInt(pReader, pos, size); in Parse()
5582 bit_depth = UnserializeUInt(pReader, pos, size); in Parse()
5636 IMkvReader* const pReader = m_pSegment->m_pReader; in Parse() local
5644 const long status = ParseElementHeader(pReader, pos, stop, id, size); in Parse()
5679 ParseElementHeader(pReader, pos, stop, id, payload_size); in Parse()
5728 IMkvReader* const pReader = m_pSegment->m_pReader; in ParseTrackEntry() local
5757 const long status = ParseElementHeader(pReader, pos, track_stop, id, size); in ParseTrackEntry()
5788 const int status = pReader->Read(pos_, 1, &b); in ParseTrackEntry()
5799 const long long num = UnserializeUInt(pReader, pos, size); in ParseTrackEntry()
5806 const long long type = UnserializeUInt(pReader, pos, size); in ParseTrackEntry()
5814 UnserializeString(pReader, pos, size, info.nameAsUTF8); in ParseTrackEntry()
5819 const long status = UnserializeString(pReader, pos, size, info.language); in ParseTrackEntry()
5824 const long long duration = UnserializeUInt(pReader, pos, size); in ParseTrackEntry()
5831 const long status = UnserializeString(pReader, pos, size, info.codecId); in ParseTrackEntry()
5836 lacing = UnserializeUInt(pReader, pos, size); in ParseTrackEntry()
5855 const int status = pReader->Read(pos, static_cast<long>(buflen), buf); in ParseTrackEntry()
5867 UnserializeString(pReader, pos, size, info.codecNameAsUTF8); in ParseTrackEntry()
5872 info.codecDelay = UnserializeUInt(pReader, pos, size); in ParseTrackEntry()
5874 info.seekPreRoll = UnserializeUInt(pReader, pos, size); in ParseTrackEntry()
6038 IMkvReader* const pReader = m_pSegment->m_pReader; in Load() local
6042 const int status = pReader->Length(&total, &avail); in Load()
6060 long long result = GetUIntLength(pReader, pos, len); in Load()
6074 const long long id_ = ReadUInt(pReader, pos, len); in Load()
6091 result = GetUIntLength(pReader, pos, len); in Load()
6105 const long long size = ReadUInt(pReader, pos, len); in Load()
6147 long long result = GetUIntLength(pReader, pos, len); in Load()
6161 const long long id = ReadUInt(pReader, pos, len); in Load()
6188 result = GetUIntLength(pReader, pos, len); in Load()
6202 const long long size = ReadUInt(pReader, pos, len); in Load()
6231 timecode = UnserializeUInt(pReader, pos, size); in Load()
6286 IMkvReader* const pReader = m_pSegment->m_pReader; in Parse() local
6290 status = pReader->Length(&total, &avail); in Parse()
6317 long long result = GetUIntLength(pReader, pos, len); in Parse()
6331 const long long id = ReadUInt(pReader, pos, len); in Parse()
6359 result = GetUIntLength(pReader, pos, len); in Parse()
6373 const long long size = ReadUInt(pReader, pos, len); in Parse()
6461 IMkvReader* const pReader = m_pSegment->m_pReader; in ParseSimpleBlock() local
6465 long status = pReader->Length(&total, &avail); in ParseSimpleBlock()
6479 long long result = GetUIntLength(pReader, pos, len); in ParseSimpleBlock()
6493 const long long track = ReadUInt(pReader, pos, len); in ParseSimpleBlock()
6553 status = pReader->Read(pos, 1, &flags); in ParseSimpleBlock()
6590 IMkvReader* const pReader = m_pSegment->m_pReader; in ParseBlockGroup() local
6594 long status = pReader->Length(&total, &avail); in ParseBlockGroup()
6619 long long result = GetUIntLength(pReader, pos, len); in ParseBlockGroup()
6633 const long long id = ReadUInt(pReader, pos, len); in ParseBlockGroup()
6650 result = GetUIntLength(pReader, pos, len); in ParseBlockGroup()
6664 const long long size = ReadUInt(pReader, pos, len); in ParseBlockGroup()
6685 status = UnserializeInt(pReader, pos, size, discard_padding); in ParseBlockGroup()
6712 result = GetUIntLength(pReader, pos, len); in ParseBlockGroup()
6726 const long long track = ReadUInt(pReader, pos, len); in ParseBlockGroup()
6786 status = pReader->Read(pos, 1, &flags); in ParseBlockGroup()
6932 IMkvReader* const pReader = pSegment->m_pReader;
6940 const long long id = ReadUInt(pReader, pos, len);
6947 size = ReadUInt(pReader, pos, len);
6961 const long long id = ReadUInt(pReader, pos, len);
6967 const long long size = ReadUInt(pReader, pos, len);
6994 IMkvReader* const pReader = pSegment->m_pReader; in HasBlockEntries() local
6998 long status = pReader->Length(&total, &avail); in HasBlockEntries()
7021 long long result = GetUIntLength(pReader, pos, len); in HasBlockEntries()
7038 const long long id = ReadUInt(pReader, pos, len); in HasBlockEntries()
7055 result = GetUIntLength(pReader, pos, len); in HasBlockEntries()
7072 const long long size = ReadUInt(pReader, pos, len); in HasBlockEntries()
7108 long long result = GetUIntLength(pReader, pos, len); in HasBlockEntries()
7122 const long long id = ReadUInt(pReader, pos, len); in HasBlockEntries()
7149 result = GetUIntLength(pReader, pos, len); in HasBlockEntries()
7163 const long long size = ReadUInt(pReader, pos, len); in HasBlockEntries()
7312 IMkvReader* const pReader = m_pSegment->m_pReader; in CreateBlockGroup() local
7332 const long long id = ReadUInt(pReader, pos, len); in CreateBlockGroup()
7338 const long long size = ReadUInt(pReader, pos, len); in CreateBlockGroup()
7352 duration = UnserializeUInt(pReader, pos, size); in CreateBlockGroup()
7360 long status = UnserializeInt(pReader, pos, size_, time); in CreateBlockGroup()
7919 IMkvReader* const pReader = m_pCluster->m_pSegment->m_pReader;
7921 Block* const pBlock = new Block(start, size, pReader);
7972 IMkvReader* const pReader = pCluster->m_pSegment->m_pReader; in Parse() local
7974 m_track = ReadUInt(pReader, pos, len); in Parse()
7990 status = UnserializeInt(pReader, pos, 2, value); in Parse()
8008 status = pReader->Read(pos, 1, &m_flags); in Parse()
8042 status = pReader->Read(pos, 1, &biased_count); in Parse()
8071 status = pReader->Read(pos, 1, &val); in Parse()
8164 long long frame_size = ReadUInt(pReader, pos, len); in Parse()
8211 const long long delta_size_ = ReadUInt(pReader, pos, len); in Parse()
8346 long Block::Frame::Read(IMkvReader* pReader, unsigned char* buf) const { in Read() argument
8347 assert(pReader); in Read()
8350 const long status = pReader->Read(pos, len, buf); in Read()