/frameworks/av/media/libstagefright/mpeg2ts/ |
D | HlsSampleDecryptor.cpp | 79 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 …]
|
D | ESQueue.cpp | 1029 size_t nalSize; in dequeueAccessUnitH264() local 1035 while ((err = getNextNALUnit(&data, &size, &nalStart, &nalSize)) == OK) { in dequeueAccessUnitH264() 1036 if (nalSize == 0) continue; in dequeueAccessUnitH264() 1047 ABitReader br(nalStart + 1, nalSize); in dequeueAccessUnitH264() 1063 } else if (nalType == 6 && nalSize > 0) { in dequeueAccessUnitH264() 1093 if (nalType == 6 && pos.nalSize > 0) { in dequeueAccessUnitH264() 1100 seiPos.nalSize = pos.nalSize; in dequeueAccessUnitH264() 1116 size_t newSize = mSampleDecryptor->processNal(nalData, pos.nalSize); in dequeueAccessUnitH264() 1123 size_t thisShrunkBytes = pos.nalSize - newSize; in dequeueAccessUnitH264() 1132 pos.nalSize); in dequeueAccessUnitH264() [all …]
|
D | HlsSampleDecryptor.h | 40 size_t processNal(uint8_t *nalData, size_t nalSize);
|
/frameworks/av/media/libstagefright/ |
D | avc_utils.cpp | 259 const uint8_t **nalStart, size_t *nalSize, in getNextNALUnit() argument 265 *nalSize = 0; in getNextNALUnit() 316 *nalSize = endOffset - startOffset; in getNextNALUnit() 331 size_t nalSize; in FindNAL() local 332 while (getNextNALUnit(&data, &size, &nalStart, &nalSize, true) == OK) { in FindNAL() 334 sp<ABuffer> buffer = new ABuffer(nalSize); in FindNAL() 335 memcpy(buffer->data(), nalStart, nalSize); in FindNAL() 458 size_t nalSize; in IsIDRInternal() local 459 while (getNextNALUnit(&data, &size, &nalStart, &nalSize, true) == OK) { in IsIDRInternal() 460 if (nalSize == 0u) { in IsIDRInternal() [all …]
|
D | MediaCodec.cpp | 3127 size_t nalSize; in amendOutputFormatWithCodecSpecificData() local 3128 while (getNextNALUnit(&data, &size, &nalStart, &nalSize, true) == OK) { in amendOutputFormatWithCodecSpecificData() 3129 sp<ABuffer> csd = new ABuffer(nalSize + 4); in amendOutputFormatWithCodecSpecificData() 3131 memcpy(csd->data() + 4, nalStart, nalSize); in amendOutputFormatWithCodecSpecificData()
|
/frameworks/av/media/libstagefright/wifi-display/rtp/ |
D | RTPSender.cpp | 324 size_t nalSize; in queueAVCBuffer() local 326 &data, &size, &nalStart, &nalSize, in queueAVCBuffer() 328 size_t bytesNeeded = nalSize + 2; in queueAVCBuffer() 337 && outBytesUsed + nalSize <= out->capacity()) { in queueAVCBuffer() 342 memcpy(out->data() + outBytesUsed, nalStart, nalSize); in queueAVCBuffer() 343 outBytesUsed += nalSize; in queueAVCBuffer() 367 *dst++ = (nalSize >> 8) & 0xff; in queueAVCBuffer() 368 *dst++ = nalSize & 0xff; in queueAVCBuffer() 369 memcpy(dst, nalStart, nalSize); in queueAVCBuffer() 384 while (srcOffset < nalSize) { in queueAVCBuffer() [all …]
|
/frameworks/av/media/libstagefright/rtsp/ |
D | AAVCAssembler.cpp | 155 size_t nalSize = (data[0] << 8) | data[1]; in addSingleTimeAggregationPacket() local 157 if (size < nalSize + 2) { in addSingleTimeAggregationPacket() 162 sp<ABuffer> unit = new ABuffer(nalSize); in addSingleTimeAggregationPacket() 163 memcpy(unit->data(), &data[2], nalSize); in addSingleTimeAggregationPacket() 169 data += 2 + nalSize; in addSingleTimeAggregationPacket() 170 size -= 2 + nalSize; in addSingleTimeAggregationPacket()
|
/frameworks/av/media/libstagefright/include/ |
D | avc_utils.h | 42 uint32_t nalSize; member 81 const uint8_t **nalStart, size_t *nalSize,
|
/frameworks/av/media/libmediaplayerservice/nuplayer/ |
D | NuPlayerCCDecoder.cpp | 225 timeUs, accessUnit->data() + nal->nalOffset, nal->nalSize); in extractFromSEI()
|