Lines Matching refs:pCluster

1128     Cluster* const pCluster = m_clusters[idx];  in DoLoadCluster()  local
1129 assert(pCluster); in DoLoadCluster()
1130 assert(pCluster->m_index < 0); in DoLoadCluster()
1132 const long long off = pCluster->GetPosition(); in DoLoadCluster()
1142 const long long element_size = pCluster->GetElementSize(); in DoLoadCluster()
1147 pos = pCluster->m_element_start + element_size; in DoLoadCluster()
1150 pCluster->m_index = idx; // move from preloaded to loaded in DoLoadCluster()
1183 Cluster* const pCluster = Cluster::Create(this, idx, cluster_off); in DoLoadCluster() local
1185 assert(pCluster); in DoLoadCluster()
1187 AppendCluster(pCluster); in DoLoadCluster()
1190 assert(m_clusters[idx] == pCluster); in DoLoadCluster()
1201 m_pUnknownSize = pCluster; in DoLoadCluster()
1332 Cluster* const pCluster = m_clusters[idx]; in DoLoadCluster()
1333 assert(pCluster); in DoLoadCluster()
1334 assert(pCluster->m_index < 0); in DoLoadCluster()
1336 const long long off = pCluster->GetPosition(); in DoLoadCluster()
1530 void Segment::AppendCluster(Cluster* pCluster) { in AppendCluster() argument
1531 assert(pCluster); in AppendCluster()
1532 assert(pCluster->m_index >= 0); in AppendCluster()
1539 const long idx = pCluster->m_index; in AppendCluster()
1582 m_clusters[idx] = pCluster; in AppendCluster()
1586 void Segment::PreloadCluster(Cluster* pCluster, ptrdiff_t idx) { in PreloadCluster() argument
1587 assert(pCluster); in PreloadCluster()
1588 assert(pCluster->m_index < 0); in PreloadCluster()
1630 m_clusters[idx] = pCluster; in PreloadCluster()
2608 Cluster* const pCluster = *k; in GetBlock() local
2609 assert(pCluster); in GetBlock()
2615 const long long pos = pCluster->GetPosition(); in GetBlock()
2623 return pCluster->GetEntry(cp, tp); in GetBlock()
2629 Cluster* const pCluster = Cluster::Create(this, -1, tp.m_pos); //, -1); in GetBlock() local
2630 assert(pCluster); in GetBlock()
2634 PreloadCluster(pCluster, idx); in GetBlock()
2637 assert(m_clusters[idx] == pCluster); in GetBlock()
2639 return pCluster->GetEntry(cp, tp); in GetBlock()
2663 Cluster* const pCluster = *k; in FindOrPreloadCluster() local
2664 assert(pCluster); in FindOrPreloadCluster()
2670 const long long pos = pCluster->GetPosition(); in FindOrPreloadCluster()
2678 return pCluster; in FindOrPreloadCluster()
2684 Cluster* const pCluster = Cluster::Create(this, -1, requested_pos); in FindOrPreloadCluster() local
2686 assert(pCluster); in FindOrPreloadCluster()
2690 PreloadCluster(pCluster, idx); in FindOrPreloadCluster()
2693 assert(m_clusters[idx] == pCluster); in FindOrPreloadCluster()
2695 return pCluster; in FindOrPreloadCluster()
2938 Cluster* const pCluster = m_clusters[0]; in GetFirst() local
2939 assert(pCluster); in GetFirst()
2941 return pCluster; in GetFirst()
2950 Cluster* const pCluster = m_clusters[idx]; in GetLast() local
2951 assert(pCluster); in GetLast()
2953 return pCluster; in GetLast()
3602 Cluster* const pCluster = m_clusters[0]; in FindCluster() local
3603 assert(pCluster); in FindCluster()
3604 assert(pCluster->m_index == 0); in FindCluster()
3606 if (time_ns <= pCluster->GetTime()) in FindCluster()
3607 return pCluster; in FindCluster()
3624 Cluster* const pCluster = m_clusters[k]; in FindCluster() local
3625 assert(pCluster); in FindCluster()
3626 assert(pCluster->m_index == k); in FindCluster()
3628 const long long t = pCluster->GetTime(); in FindCluster()
3644 Cluster* const pCluster = m_clusters[k]; in FindCluster() local
3645 assert(pCluster); in FindCluster()
3646 assert(pCluster->m_index == k); in FindCluster()
3647 assert(pCluster->GetTime() <= time_ns); in FindCluster()
3649 return pCluster; in FindCluster()
3666 Cluster* const pCluster = *i;
3667 assert(pCluster);
3668 assert(pCluster->m_index == 0); //m_clusterCount > 0
3669 assert(pCluster->m_pSegment == this);
3671 if (time_ns <= pCluster->GetTime())
3672 return pCluster->GetEntry(pTrack);
3696 Cluster* const pCluster = *mid;
3697 assert(pCluster);
3698 assert(pCluster->m_index == long(mid - m_clusters));
3699 assert(pCluster->m_pSegment == this);
3701 const long long t = pCluster->GetTime();
3717 Cluster* const pCluster = *--lo;
3718 assert(pCluster);
3719 assert(pCluster->GetTime() <= time_ns);
3721 const BlockEntry* const pBE = pCluster->GetEntry(pTrack);
3747 Cluster* const pCluster = *mid;
3748 assert(pCluster);
3750 const long long t = pCluster->GetTime();
3764 Cluster* pCluster = *--lo;
3765 assert(pCluster);
3766 assert(pCluster->GetTime() <= time_ns);
3769 const BlockEntry* const pBE = pCluster->GetEntry(pTrack, time_ns);
3779 pCluster = *--lo;
3780 assert(pCluster);
3781 assert(pCluster->GetTime() <= time_ns);
3783 const BlockEntry* const pBlockEntry = pCluster->GetMaxKey(pVideo);
3800 Cluster*& pCluster,
3822 return GetCluster(pCP, pTP, pCluster, pBlockEntry);
4988 const Cluster* pCluster = m_pSegment->GetFirst(); in GetFirst() local
4991 if (pCluster == NULL) { in GetFirst()
4996 if (pCluster->EOS()) { in GetFirst()
5013 long status = pCluster->GetFirst(pBlockEntry); in GetFirst()
5019 pCluster = m_pSegment->GetNext(pCluster); in GetFirst()
5034 status = pCluster->GetNext(pBlockEntry, pNextEntry); in GetFirst()
5050 pCluster = m_pSegment->GetNext(pCluster); in GetFirst()
5071 const Cluster* pCluster = pCurrEntry->GetCluster(); in GetNext() local
5072 assert(pCluster); in GetNext()
5073 assert(!pCluster->EOS()); in GetNext()
5075 long status = pCluster->GetNext(pCurrEntry, pNextEntry); in GetNext()
5090 status = pCluster->GetNext(pCurrEntry, pNextEntry); in GetNext()
5096 pCluster = m_pSegment->GetNext(pCluster); in GetNext()
5098 if (pCluster == NULL) { in GetNext()
5103 if (pCluster->EOS()) { in GetNext()
5133 status = pCluster->GetFirst(pNextEntry); in GetNext()
5183 const Cluster* pCluster = pResult->GetCluster(); in Seek() local
5184 assert(pCluster); in Seek()
5185 assert(pCluster->GetIndex() >= 0); in Seek()
5187 if (time_ns <= pResult->GetBlock()->GetTime(pCluster)) in Seek()
5196 Cluster** const i = clusters + pCluster->GetIndex(); in Seek()
5198 assert(*i == pCluster); in Seek()
5199 assert(pCluster->GetTime() <= time_ns); in Seek()
5215 pCluster = *mid; in Seek()
5216 assert(pCluster); in Seek()
5217 assert(pCluster->GetIndex() >= 0); in Seek()
5218 assert(pCluster->GetIndex() == long(mid - m_pSegment->m_clusters)); in Seek()
5220 const long long t = pCluster->GetTime(); in Seek()
5235 pCluster = *--lo; in Seek()
5236 assert(pCluster); in Seek()
5237 assert(pCluster->GetTime() <= time_ns); in Seek()
5239 pResult = pCluster->GetEntry(this); in Seek()
5439 const Cluster* pCluster = pResult->GetCluster(); in Seek() local
5440 assert(pCluster); in Seek()
5441 assert(pCluster->GetIndex() >= 0); in Seek()
5443 if (time_ns <= pResult->GetBlock()->GetTime(pCluster)) in Seek()
5452 Cluster** const i = clusters + pCluster->GetIndex(); in Seek()
5454 assert(*i == pCluster); in Seek()
5455 assert(pCluster->GetTime() <= time_ns); in Seek()
5471 pCluster = *mid; in Seek()
5472 assert(pCluster); in Seek()
5473 assert(pCluster->GetIndex() >= 0); in Seek()
5474 assert(pCluster->GetIndex() == long(mid - m_pSegment->m_clusters)); in Seek()
5476 const long long t = pCluster->GetTime(); in Seek()
5490 pCluster = *--lo; in Seek()
5491 assert(pCluster); in Seek()
5492 assert(pCluster->GetTime() <= time_ns); in Seek()
5494 pResult = pCluster->GetEntry(this, time_ns); in Seek()
5500 pCluster = *--lo; in Seek()
5501 assert(pCluster); in Seek()
5502 assert(pCluster->GetTime() <= time_ns); in Seek()
5510 pResult = pCluster->GetMaxKey(this); in Seek()
5512 pResult = pCluster->GetEntry(this, time_ns); in Seek()
6863 Cluster* const pCluster = new Cluster(pSegment, idx, element_start); in Create() local
6865 assert(pCluster); in Create()
6867 return pCluster; in Create()
7886 SimpleBlock::SimpleBlock(Cluster* pCluster, long idx, long long start, in SimpleBlock() argument
7888 : BlockEntry(pCluster, idx), m_block(start, size, 0) {} in SimpleBlock()
7896 BlockGroup::BlockGroup(Cluster* pCluster, long idx, long long block_start, in BlockGroup() argument
7899 : BlockEntry(pCluster, idx), in BlockGroup()
7954 long Block::Parse(const Cluster* pCluster) { in Parse() argument
7955 if (pCluster == NULL) in Parse()
7958 if (pCluster->m_pSegment == NULL) in Parse()
7972 IMkvReader* const pReader = pCluster->m_pSegment->m_pReader; in Parse()
8284 long long Block::GetTimeCode(const Cluster* pCluster) const { in GetTimeCode()
8285 if (pCluster == 0) in GetTimeCode()
8288 const long long tc0 = pCluster->GetTimeCode(); in GetTimeCode()
8296 long long Block::GetTime(const Cluster* pCluster) const { in GetTime()
8297 assert(pCluster); in GetTime()
8299 const long long tc = GetTimeCode(pCluster); in GetTime()
8301 const Segment* const pSegment = pCluster->m_pSegment; in GetTime()