Lines Matching refs:ccBuf
54 static void dumpBytePair(const sp<ABuffer> &ccBuf) __attribute__ ((unused));
55 static void dumpBytePair(const sp<ABuffer> &ccBuf) { in dumpBytePair() argument
59 while (offset < ccBuf->size()) { in dumpBytePair()
62 CCData *cc = (CCData *) (ccBuf->data() + offset); in dumpBytePair()
271 sp<ABuffer> ccBuf = new ABuffer(cc_count * sizeof(CCData)); in parseSEINalUnit() local
272 ccBuf->setRange(0, 0); in parseSEINalUnit()
296 memcpy(ccBuf->data() + ccBuf->size(), in parseSEINalUnit()
298 ccBuf->setRange(0, ccBuf->size() + sizeof(CCData)); in parseSEINalUnit()
303 mCCMap.add(timeUs, ccBuf); in parseSEINalUnit()
321 const sp<ABuffer> &ccBuf, size_t index) { in filterCCBuf() argument
322 sp<ABuffer> filteredCCBuf = new ABuffer(ccBuf->size()); in filterCCBuf()
325 size_t cc_count = ccBuf->size() / sizeof(CCData); in filterCCBuf()
326 const CCData* cc_data = (const CCData*)ccBuf->data(); in filterCCBuf()
364 sp<ABuffer> ccBuf = filterCCBuf(mCCMap.valueAt(index), mSelectedTrack); in display() local
366 if (ccBuf->size() > 0) { in display()
368 dumpBytePair(ccBuf); in display()
371 ccBuf->meta()->setInt32("trackIndex", mSelectedTrack); in display()
372 ccBuf->meta()->setInt64("timeUs", timeUs); in display()
373 ccBuf->meta()->setInt64("durationUs", 0ll); in display()
377 msg->setBuffer("buffer", ccBuf); in display()