Home
last modified time | relevance | path

Searched refs:nalSize (Results 1 – 13 of 13) sorted by relevance

/frameworks/av/media/libstagefright/mpeg2ts/
DHlsSampleDecryptor.cpp79 size_t HlsSampleDecryptor::processNal(uint8_t *nalData, size_t nalSize) { in processNal() argument
83 ALOGV("processNal[%d]: (%p)/%zu Skipping due to invalid key", nalType, nalData, nalSize); in processNal()
84 return nalSize; in processNal()
87 bool isEncrypted = (nalSize > VIDEO_CLEAR_LEAD + AES_BLOCK_SIZE); in processNal()
88 ALOGV("processNal[%d]: (%p)/%zu isEncrypted: %d", nalType, nalData, nalSize, isEncrypted); in processNal()
93 size_t newSize = unescapeStream(nalData, nalSize); in processNal()
95 ALOGV("processNal:unescapeStream[%d]: %zu -> %zu", nalType, nalSize, newSize); in processNal()
96 nalSize = newSize; in processNal()
110 size_t remainingBytes = nalSize - VIDEO_CLEAR_LEAD; in processNal()
123 return nalSize; // revisit this in processNal()
[all …]
DESQueue.cpp1345 size_t nalSize; in dequeueAccessUnitH264() local
1351 while ((err = getNextNALUnit(&data, &size, &nalStart, &nalSize)) == OK) { in dequeueAccessUnitH264()
1352 if (nalSize == 0) continue; in dequeueAccessUnitH264()
1363 ABitReader br(nalStart + 1, nalSize); in dequeueAccessUnitH264()
1379 } else if (nalType == 6 && nalSize > 0) { in dequeueAccessUnitH264()
1409 if (nalType == 6 && pos.nalSize > 0) { in dequeueAccessUnitH264()
1416 seiPos.nalSize = pos.nalSize; in dequeueAccessUnitH264()
1432 size_t newSize = mSampleDecryptor->processNal(nalData, pos.nalSize); in dequeueAccessUnitH264()
1434 if (newSize > pos.nalSize) { in dequeueAccessUnitH264()
1437 ALOGV("expected sample size < %u, got %zu", pos.nalSize, newSize); in dequeueAccessUnitH264()
[all …]
DHlsSampleDecryptor.h42 virtual size_t processNal(uint8_t *nalData, size_t nalSize);
/frameworks/av/media/libstagefright/foundation/
Davc_utils.cpp293 const uint8_t **nalStart, size_t *nalSize, in getNextNALUnit() argument
299 *nalSize = 0; in getNextNALUnit()
350 *nalSize = endOffset - startOffset; in getNextNALUnit()
365 size_t nalSize; in FindNAL() local
366 while (getNextNALUnit(&data, &size, &nalStart, &nalSize, true) == OK) { in FindNAL()
367 if (nalSize > 0 && (nalStart[0] & 0x1f) == nalType) { in FindNAL()
368 sp<ABuffer> buffer = new ABuffer(nalSize); in FindNAL()
369 memcpy(buffer->data(), nalStart, nalSize); in FindNAL()
484 size_t nalSize; in IsIDR() local
485 while (getNextNALUnit(&data, &size, &nalStart, &nalSize, true) == OK) { in IsIDR()
[all …]
/frameworks/av/media/libstagefright/foundation/tests/AVCUtils/
DAVCUtilsUnitTest.cpp193 size_t nalSize; in TEST_P() local
203 status_t result = getNextNALUnit(&sanityData, &smallBufferSize, &nalStart, &nalSize, true); in TEST_P()
206 while (!getNextNALUnit(&data, &chunkLength, &nalStart, &nalSize, true)) { in TEST_P()
210 ASSERT_TRUE(nalSize > 0) << "NAL unit size must be greater than 0"; in TEST_P()
212 sp<ABuffer> spsBuffer = new ABuffer(nalSize); in TEST_P()
213 ASSERT_NE(spsBuffer, nullptr) << "ABuffer returned null for size: " << nalSize; in TEST_P()
215 memcpy(spsBuffer->data(), nalStart, nalSize); in TEST_P()
258 size_t nalSize; in TEST_P() local
264 while (!getNextNALUnit(&data, &chunkLength, &nalStart, &nalSize, true)) { in TEST_P()
266 ASSERT_TRUE(nalSize > 0 && (nalStart[0] & kSPSmask) == kSPSStartCode) in TEST_P()
[all …]
/frameworks/av/media/libstagefright/foundation/include/media/stagefright/foundation/
Davc_utils.h41 uint32_t nalSize; member
80 const uint8_t **nalStart, size_t *nalSize,
/frameworks/av/media/libstagefright/rtsp/
DAHEVCAssembler.cpp395 size_t nalSize = (data[0] << 8) | data[1]; in addSingleTimeAggregationPacket() local
397 if (size < nalSize + 2) { in addSingleTimeAggregationPacket()
402 sp<ABuffer> unit = new ABuffer(nalSize); in addSingleTimeAggregationPacket()
403 memcpy(unit->data(), &data[2], nalSize); in addSingleTimeAggregationPacket()
409 data += 2 + nalSize; in addSingleTimeAggregationPacket()
410 size -= 2 + nalSize; in addSingleTimeAggregationPacket()
DAAVCAssembler.cpp383 size_t nalSize = (data[0] << 8) | data[1]; in addSingleTimeAggregationPacket() local
385 if (size < nalSize + 2) { in addSingleTimeAggregationPacket()
390 sp<ABuffer> unit = new ABuffer(nalSize); in addSingleTimeAggregationPacket()
391 memcpy(unit->data(), &data[2], nalSize); in addSingleTimeAggregationPacket()
397 data += 2 + nalSize; in addSingleTimeAggregationPacket()
398 size -= 2 + nalSize; in addSingleTimeAggregationPacket()
/frameworks/av/media/libstagefright/
DHevcUtils.cpp548 size_t nalSize; in IsHevcIDR() local
549 while (!foundIDR && getNextNALUnit(&data, &size, &nalStart, &nalSize, true) == OK) { in IsHevcIDR()
550 if (nalSize == 0) { in IsHevcIDR()
DMediaCodec.cpp5312 size_t nalSize; in amendOutputFormatWithCodecSpecificData() local
5313 while (getNextNALUnit(&data, &size, &nalStart, &nalSize, true) == OK) { in amendOutputFormatWithCodecSpecificData()
5314 sp<ABuffer> csd = new ABuffer(nalSize + 4); in amendOutputFormatWithCodecSpecificData()
5316 memcpy(csd->data() + 4, nalStart, nalSize); in amendOutputFormatWithCodecSpecificData()
/frameworks/av/media/extractors/mkv/
DMatroskaExtractor.cpp1952 int32_t nalSize = -1; in addTracks() local
1967 nalSize = 1 + (codecPrivate[4] & 3); in addTracks()
1975 nalSize = 1 + (codecPrivate[14 + 7] & 3); in addTracks()
2224 trackInfo->mNalLengthSize = nalSize; in addTracks()
/frameworks/av/media/libmediaplayerservice/nuplayer/
DNuPlayerCCDecoder.cpp239 timeUs, accessUnit->data() + nal->nalOffset, nal->nalSize); in extractFromSEI()
/frameworks/av/media/codec2/sfplugin/
DCCodec.cpp537 size_t nalSize; in AmendOutputFormatWithCodecSpecificData() local
538 while (getNextNALUnit(&data, &size, &nalStart, &nalSize, true) == OK) { in AmendOutputFormatWithCodecSpecificData()
539 sp<ABuffer> csd = new ABuffer(nalSize + 4); in AmendOutputFormatWithCodecSpecificData()
541 memcpy(csd->data() + 4, nalStart, nalSize); in AmendOutputFormatWithCodecSpecificData()