Home
last modified time | relevance | path

Searched refs:kTSPacketSize (Results 1 – 3 of 3) sorted by relevance

/frameworks/av/media/module/mpeg2ts/test/
DMpeg2tsUnitTest.cpp34 constexpr size_t kTSPacketSize = 188; variable
79 mTotalPackets = fileSize / kTSPacketSize; in SetUp()
88 mInputBuffer = (uint8_t *)malloc(kTSPacketSize); in SetUp()
114 uint8_t packet[kTSPacketSize]; in TEST_P()
122 while ((numBytesRead = mSource->readAt(mOffset, packet, kTSPacketSize)) == kTSPacketSize) { in TEST_P()
129 status_t err = mParser->feedTSPacket(packet, kTSPacketSize, &event); in TEST_P()
/frameworks/av/media/module/extractors/mpeg2/
DMPEG2TSExtractor.cpp48 static const size_t kTSPacketSize = 188; variable
484 uint8_t packet[kTSPacketSize]; in feedMore()
485 ssize_t n = mDataSource->readAt(mOffset + mHeaderSkip, packet, kTSPacketSize); in feedMore()
487 if (n < (ssize_t)kTSPacketSize) { in feedMore()
496 status_t err = mParser->feedTSPacket(packet, kTSPacketSize, &event); in feedMore()
543 uint8_t packet[kTSPacketSize]; in estimateDurationsFromTimesUsAtEnd()
558 offset = (offset / kTSPacketSize) * kTSPacketSize; in estimateDurationsFromTimesUsAtEnd()
564 ssize_t n = mDataSource->readAt(offset+mHeaderSkip, packet, kTSPacketSize); in estimateDurationsFromTimesUsAtEnd()
567 } else if (n < (ssize_t)kTSPacketSize) { in estimateDurationsFromTimesUsAtEnd()
571 offset += kTSPacketSize + mHeaderSkip; in estimateDurationsFromTimesUsAtEnd()
[all …]
/frameworks/av/media/module/mpeg2ts/
DATSParser.cpp61 static const size_t kTSPacketSize = 188; variable
2001 if (size != kTSPacketSize) { in feedTSPacket()
2006 ABitReader br((const uint8_t *)data, kTSPacketSize); in feedTSPacket()