Lines Matching refs:pCluster

1224     Cluster* const pCluster = m_clusters[idx];  in DoLoadCluster()  local
1225 if (pCluster == NULL || pCluster->m_index >= 0) in DoLoadCluster()
1228 const long long off = pCluster->GetPosition(); in DoLoadCluster()
1239 const long long element_size = pCluster->GetElementSize(); in DoLoadCluster()
1244 pos = pCluster->m_element_start + element_size; in DoLoadCluster()
1247 pCluster->m_index = idx; // move from preloaded to loaded in DoLoadCluster()
1279 Cluster* const pCluster = Cluster::Create(this, idx, cluster_off); in DoLoadCluster() local
1280 if (pCluster == NULL) in DoLoadCluster()
1283 if (!AppendCluster(pCluster)) { in DoLoadCluster()
1284 delete pCluster; in DoLoadCluster()
1299 m_pUnknownSize = pCluster; in DoLoadCluster()
1335 bool Segment::AppendCluster(Cluster* pCluster) { in AppendCluster() argument
1336 if (pCluster == NULL || pCluster->m_index < 0) in AppendCluster()
1342 const long idx = pCluster->m_index; in AppendCluster()
1389 m_clusters[idx] = pCluster; in AppendCluster()
1394 bool Segment::PreloadCluster(Cluster* pCluster, ptrdiff_t idx) { in PreloadCluster() argument
1395 if (pCluster == NULL || pCluster->m_index >= 0 || idx < m_clusterCount) in PreloadCluster()
1443 m_clusters[idx] = pCluster; in PreloadCluster()
2155 Cluster* const pCluster = *k; in GetBlock() local
2156 assert(pCluster); in GetBlock()
2162 const long long pos = pCluster->GetPosition(); in GetBlock()
2170 return pCluster->GetEntry(cp, tp); in GetBlock()
2176 Cluster* const pCluster = Cluster::Create(this, -1, tp.m_pos); //, -1); in GetBlock() local
2177 if (pCluster == NULL) in GetBlock()
2182 if (!PreloadCluster(pCluster, idx)) { in GetBlock()
2183 delete pCluster; in GetBlock()
2188 assert(m_clusters[idx] == pCluster); in GetBlock()
2190 return pCluster->GetEntry(cp, tp); in GetBlock()
2214 Cluster* const pCluster = *k; in FindOrPreloadCluster() local
2215 assert(pCluster); in FindOrPreloadCluster()
2221 const long long pos = pCluster->GetPosition(); in FindOrPreloadCluster()
2229 return pCluster; in FindOrPreloadCluster()
2235 Cluster* const pCluster = Cluster::Create(this, -1, requested_pos); in FindOrPreloadCluster() local
2236 if (pCluster == NULL) in FindOrPreloadCluster()
2241 if (!PreloadCluster(pCluster, idx)) { in FindOrPreloadCluster()
2242 delete pCluster; in FindOrPreloadCluster()
2247 assert(m_clusters[idx] == pCluster); in FindOrPreloadCluster()
2249 return pCluster; in FindOrPreloadCluster()
2492 Cluster* const pCluster = m_clusters[0]; in GetFirst() local
2493 assert(pCluster); in GetFirst()
2495 return pCluster; in GetFirst()
2504 Cluster* const pCluster = m_clusters[idx]; in GetLast() local
2505 assert(pCluster); in GetLast()
2507 return pCluster; in GetLast()
3159 Cluster* const pCluster = m_clusters[0]; in FindCluster() local
3160 assert(pCluster); in FindCluster()
3161 assert(pCluster->m_index == 0); in FindCluster()
3163 if (time_ns <= pCluster->GetTime()) in FindCluster()
3164 return pCluster; in FindCluster()
3181 Cluster* const pCluster = m_clusters[k]; in FindCluster() local
3182 assert(pCluster); in FindCluster()
3183 assert(pCluster->m_index == k); in FindCluster()
3185 const long long t = pCluster->GetTime(); in FindCluster()
3201 Cluster* const pCluster = m_clusters[k]; in FindCluster() local
3202 assert(pCluster); in FindCluster()
3203 assert(pCluster->m_index == k); in FindCluster()
3204 assert(pCluster->GetTime() <= time_ns); in FindCluster()
3206 return pCluster; in FindCluster()
4645 const Cluster* pCluster = m_pSegment->GetFirst(); in GetFirst() local
4648 if (pCluster == NULL) { in GetFirst()
4653 if (pCluster->EOS()) { in GetFirst()
4663 long status = pCluster->GetFirst(pBlockEntry); in GetFirst()
4669 pCluster = m_pSegment->GetNext(pCluster); in GetFirst()
4684 status = pCluster->GetNext(pBlockEntry, pNextEntry); in GetFirst()
4700 pCluster = m_pSegment->GetNext(pCluster); in GetFirst()
4721 const Cluster* pCluster = pCurrEntry->GetCluster(); in GetNext() local
4722 assert(pCluster); in GetNext()
4723 assert(!pCluster->EOS()); in GetNext()
4725 long status = pCluster->GetNext(pCurrEntry, pNextEntry); in GetNext()
4740 status = pCluster->GetNext(pCurrEntry, pNextEntry); in GetNext()
4746 pCluster = m_pSegment->GetNext(pCluster); in GetNext()
4748 if (pCluster == NULL) { in GetNext()
4753 if (pCluster->EOS()) { in GetNext()
4775 status = pCluster->GetFirst(pNextEntry); in GetNext()
4825 const Cluster* pCluster = pResult->GetCluster(); in Seek() local
4826 assert(pCluster); in Seek()
4827 assert(pCluster->GetIndex() >= 0); in Seek()
4829 if (time_ns <= pResult->GetBlock()->GetTime(pCluster)) in Seek()
4838 Cluster** const i = clusters + pCluster->GetIndex(); in Seek()
4840 assert(*i == pCluster); in Seek()
4841 assert(pCluster->GetTime() <= time_ns); in Seek()
4857 pCluster = *mid; in Seek()
4858 assert(pCluster); in Seek()
4859 assert(pCluster->GetIndex() >= 0); in Seek()
4860 assert(pCluster->GetIndex() == long(mid - m_pSegment->m_clusters)); in Seek()
4862 const long long t = pCluster->GetTime(); in Seek()
4877 pCluster = *--lo; in Seek()
4878 assert(pCluster); in Seek()
4879 assert(pCluster->GetTime() <= time_ns); in Seek()
4881 pResult = pCluster->GetEntry(this); in Seek()
5443 const Cluster* pCluster = pResult->GetCluster(); in Seek() local
5444 assert(pCluster); in Seek()
5445 assert(pCluster->GetIndex() >= 0); in Seek()
5447 if (time_ns <= pResult->GetBlock()->GetTime(pCluster)) in Seek()
5456 Cluster** const i = clusters + pCluster->GetIndex(); in Seek()
5458 assert(*i == pCluster); in Seek()
5459 assert(pCluster->GetTime() <= time_ns); in Seek()
5475 pCluster = *mid; in Seek()
5476 assert(pCluster); in Seek()
5477 assert(pCluster->GetIndex() >= 0); in Seek()
5478 assert(pCluster->GetIndex() == long(mid - m_pSegment->m_clusters)); in Seek()
5480 const long long t = pCluster->GetTime(); in Seek()
5494 pCluster = *--lo; in Seek()
5495 assert(pCluster); in Seek()
5496 assert(pCluster->GetTime() <= time_ns); in Seek()
5498 pResult = pCluster->GetEntry(this, time_ns); in Seek()
5504 pCluster = *--lo; in Seek()
5505 assert(pCluster); in Seek()
5506 assert(pCluster->GetTime() <= time_ns); in Seek()
5508 pResult = pCluster->GetEntry(this, time_ns); in Seek()
6786 Cluster* const pCluster = in Create() local
6789 return pCluster; in Create()
7574 SimpleBlock::SimpleBlock(Cluster* pCluster, long idx, long long start, in SimpleBlock() argument
7576 : BlockEntry(pCluster, idx), m_block(start, size, 0) {} in SimpleBlock()
7582 BlockGroup::BlockGroup(Cluster* pCluster, long idx, long long block_start, in BlockGroup() argument
7585 : BlockEntry(pCluster, idx), in BlockGroup()
7620 long Block::Parse(const Cluster* pCluster) { in Parse() argument
7621 if (pCluster == NULL) in Parse()
7624 if (pCluster->m_pSegment == NULL) in Parse()
7638 IMkvReader* const pReader = pCluster->m_pSegment->m_pReader; in Parse()
7990 long long Block::GetTimeCode(const Cluster* pCluster) const { in GetTimeCode()
7991 if (pCluster == 0) in GetTimeCode()
7994 const long long tc0 = pCluster->GetTimeCode(); in GetTimeCode()
8007 long long Block::GetTime(const Cluster* pCluster) const { in GetTime()
8008 assert(pCluster); in GetTime()
8010 const long long tc = GetTimeCode(pCluster); in GetTime()
8012 const Segment* const pSegment = pCluster->m_pSegment; in GetTime()