Home
last modified time | relevance | path

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

/frameworks/av/media/libstagefright/mpeg2ts/test/
DMpeg2tsUnitTest.cpp35 constexpr size_t kTSPacketSize = 188; variable
80 mTotalPackets = fileSize / kTSPacketSize; in SetUp()
89 mInputBuffer = (uint8_t *)malloc(kTSPacketSize); in SetUp()
115 uint8_t packet[kTSPacketSize]; in TEST_P()
123 while ((numBytesRead = mSource->readAt(mOffset, packet, kTSPacketSize)) == kTSPacketSize) { in TEST_P()
130 status_t err = mParser->feedTSPacket(packet, kTSPacketSize, &event); in TEST_P()
/frameworks/av/media/extractors/mpeg2/
DMPEG2TSExtractor.cpp49 static const size_t kTSPacketSize = 188; variable
470 uint8_t packet[kTSPacketSize]; in feedMore()
471 ssize_t n = mDataSource->readAt(mOffset + mHeaderSkip, packet, kTSPacketSize); in feedMore()
473 if (n < (ssize_t)kTSPacketSize) { in feedMore()
482 status_t err = mParser->feedTSPacket(packet, kTSPacketSize, &event); in feedMore()
529 uint8_t packet[kTSPacketSize]; in estimateDurationsFromTimesUsAtEnd()
544 offset = (offset / kTSPacketSize) * kTSPacketSize; in estimateDurationsFromTimesUsAtEnd()
550 ssize_t n = mDataSource->readAt(offset+mHeaderSkip, packet, kTSPacketSize); in estimateDurationsFromTimesUsAtEnd()
553 } else if (n < (ssize_t)kTSPacketSize) { in estimateDurationsFromTimesUsAtEnd()
557 offset += kTSPacketSize + mHeaderSkip; in estimateDurationsFromTimesUsAtEnd()
[all …]
/frameworks/av/media/libstagefright/mpeg2ts/
DATSParser.cpp61 static const size_t kTSPacketSize = 188; variable
1887 if (size != kTSPacketSize) { in feedTSPacket()
1892 ABitReader br((const uint8_t *)data, kTSPacketSize); in feedTSPacket()