Searched refs:kTSPacketSize (Results 1 – 3 of 3) sorted by relevance
/frameworks/av/media/libstagefright/mpeg2ts/test/ |
D | Mpeg2tsUnitTest.cpp | 35 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/ |
D | MPEG2TSExtractor.cpp | 49 static const size_t kTSPacketSize = 188; variable 467 uint8_t packet[kTSPacketSize]; in feedMore() 468 ssize_t n = mDataSource->readAt(mOffset + mHeaderSkip, packet, kTSPacketSize); in feedMore() 470 if (n < (ssize_t)kTSPacketSize) { in feedMore() 479 status_t err = mParser->feedTSPacket(packet, kTSPacketSize, &event); in feedMore() 526 uint8_t packet[kTSPacketSize]; in estimateDurationsFromTimesUsAtEnd() 541 offset = (offset / kTSPacketSize) * kTSPacketSize; in estimateDurationsFromTimesUsAtEnd() 547 ssize_t n = mDataSource->readAt(offset+mHeaderSkip, packet, kTSPacketSize); in estimateDurationsFromTimesUsAtEnd() 550 } else if (n < (ssize_t)kTSPacketSize) { in estimateDurationsFromTimesUsAtEnd() 554 offset += kTSPacketSize + mHeaderSkip; in estimateDurationsFromTimesUsAtEnd() [all …]
|
/frameworks/av/media/libstagefright/mpeg2ts/ |
D | ATSParser.cpp | 61 static const size_t kTSPacketSize = 188; variable 1887 if (size != kTSPacketSize) { in feedTSPacket() 1892 ABitReader br((const uint8_t *)data, kTSPacketSize); in feedTSPacket()
|