/frameworks/av/media/libstagefright/ |
D | MetaDataUtils.cpp | 42 sp<ABuffer> csd = MakeAVCCodecSpecificData(accessUnit, &width, &height, &sarWidth, &sarHeight); in MakeAVCCodecSpecificData() local 43 if (csd == nullptr) { in MakeAVCCodecSpecificData() 48 meta.setData(kKeyAVCC, kTypeAVCC, csd->data(), csd->size()); in MakeAVCCodecSpecificData() 68 sp<ABuffer> csd = MakeAVCCodecSpecificData(accessUnit, &width, &height, &sarWidth, &sarHeight); in MakeAVCCodecSpecificData() local 69 if (csd == nullptr) { in MakeAVCCodecSpecificData() 74 AMediaFormat_setBuffer(meta, AMEDIAFORMAT_KEY_CSD_AVC, csd->data(), csd->size()); in MakeAVCCodecSpecificData() 123 uint8_t *csd, /* out */ in MakeAACCodecSpecificData() argument 163 memcpy(csd, kStaticESDS, sizeof(kStaticESDS)); in MakeAACCodecSpecificData() 165 csd[sizeof(kStaticESDS)] = in MakeAACCodecSpecificData() 168 csd[sizeof(kStaticESDS) + 1] = in MakeAACCodecSpecificData() [all …]
|
D | Utils.cpp | 137 static void parseAacProfileFromCsd(const sp<ABuffer> &csd, sp<AMessage> &format) { in parseAacProfileFromCsd() argument 138 if (csd->size() < 2) { in parseAacProfileFromCsd() 142 uint16_t audioObjectType = U16_AT((uint8_t*)csd->data()); in parseAacProfileFromCsd() 415 static void parseMpeg4ProfileLevelFromCsd(const sp<ABuffer> &csd, sp<AMessage> &format) { in parseMpeg4ProfileLevelFromCsd() argument 416 const uint8_t *data = csd->data(); in parseMpeg4ProfileLevelFromCsd() 418 const uint8_t *seq = (const uint8_t*)memmem(data, csd->size(), "\x00\x00\x01\xB0", 4); in parseMpeg4ProfileLevelFromCsd() 419 if (seq != NULL && seq + 4 < data + csd->size()) { in parseMpeg4ProfileLevelFromCsd() 506 static void parseVp9ProfileLevelFromCsd(const sp<ABuffer> &csd, sp<AMessage> &format) { in parseVp9ProfileLevelFromCsd() argument 507 const uint8_t *data = csd->data(); in parseVp9ProfileLevelFromCsd() 508 size_t remaining = csd->size(); in parseVp9ProfileLevelFromCsd() [all …]
|
D | MediaCodec.cpp | 3151 sp<ABuffer> csd; in extractCSD() local 3152 if (!format->findBuffer(AStringPrintf("csd-%u", i).c_str(), &csd)) { in extractCSD() 3155 if (csd->size() == 0) { in extractCSD() 3159 mCSD.push_back(csd); in extractCSD() 3171 sp<ABuffer> csd = *mCSD.begin(); in queueCSDInputBuffer() local 3176 if (csd->size() > codecInputData->capacity()) { in queueCSDInputBuffer() 3184 memcpy(codecInputData->data(), csd->data(), csd->size()); in queueCSDInputBuffer() 3191 msg->setSize("size", csd->size()); in queueCSDInputBuffer() 3720 sp<ABuffer> csd = new ABuffer(nalSize + 4); in amendOutputFormatWithCodecSpecificData() local 3721 memcpy(csd->data(), "\x00\x00\x00\x01", 4); in amendOutputFormatWithCodecSpecificData() [all …]
|
D | ACodecBufferChannel.cpp | 237 int32_t csd; in queueSecureInputBuffer() local 238 if (it->mClientBuffer->meta()->findInt32("csd", &csd)) { in queueSecureInputBuffer() 239 it->mCodecBuffer->meta()->setInt32("csd", csd); in queueSecureInputBuffer()
|
/frameworks/av/media/libstagefright/rtsp/ |
D | APacketSource.cpp | 172 sp<ABuffer> csd = new ABuffer(csdSize); in MakeAVCCodecSpecificData() local 173 uint8_t *out = csd->data(); in MakeAVCCodecSpecificData() 219 return csd; in MakeAVCCodecSpecificData() 249 sp<ABuffer> csd = new ABuffer(sizeof(kStaticESDS) + 2); in MakeAACCodecSpecificData() local 250 memcpy(csd->data(), kStaticESDS, sizeof(kStaticESDS)); in MakeAACCodecSpecificData() 251 csd->data()[sizeof(kStaticESDS)] = (x >> 8) & 0xff; in MakeAACCodecSpecificData() 252 csd->data()[sizeof(kStaticESDS) + 1] = x & 0xff; in MakeAACCodecSpecificData() 256 return csd; in MakeAACCodecSpecificData() 296 sp<ABuffer> csd = new ABuffer(sizeof(kStaticESDS) + config->size()); in MakeAACCodecSpecificData2() local 297 uint8_t *dst = csd->data(); in MakeAACCodecSpecificData2() [all …]
|
/frameworks/av/media/libmedia/ |
D | CharacterEncodingDetector.cpp | 108 UCharsetDetector *csd = ucsdet_open(&status); in detectAndConvert() local 140 ucsdet_setText(csd, buf, strlen(buf), &status); in detectAndConvert() 142 const UCharsetMatch** ucma = ucsdet_detectAll(csd, &matches, &status); in detectAndConvert() 169 ucsdet_setText(csd, buf, strlen(buf), &status); in detectAndConvert() 170 ucma = ucsdet_detectAll(csd, &matches, &status); in detectAndConvert() 215 ucsdet_setText(csd, s, inputLength, &status); in detectAndConvert() 216 const UCharsetMatch** ucma = ucsdet_detectAll(csd, &matches, &status); in detectAndConvert() 232 ucsdet_setText(csd, s, inputLength, &status); in detectAndConvert() 233 ucm = ucsdet_detect(csd, &status); in detectAndConvert() 305 ucsdet_close(csd); in detectAndConvert()
|
/frameworks/av/media/codec2/components/cmds/ |
D | codec2.cpp | 297 sp<ABuffer> csd; in play() local 299 csd = csd0; in play() 302 csd = csd1; in play() 322 if (csd != nullptr) { in play() 323 size = csd->size(); in play() 324 data = csd->data(); in play()
|
/frameworks/av/media/libstagefright/mpeg2ts/ |
D | ESQueue.cpp | 1621 static sp<ABuffer> MakeMPEGVideoESDS(const sp<ABuffer> &csd) { in MakeMPEGVideoESDS() argument 1622 sp<ABuffer> esds = new ABuffer(csd->size() + 25); in MakeMPEGVideoESDS() 1626 EncodeSize14(&ptr, 22 + csd->size()); in MakeMPEGVideoESDS() 1634 EncodeSize14(&ptr, 16 + csd->size()); in MakeMPEGVideoESDS() 1643 EncodeSize14(&ptr, csd->size()); in MakeMPEGVideoESDS() 1645 memcpy(ptr, csd->data(), csd->size()); in MakeMPEGVideoESDS() 1706 sp<ABuffer> csd = new ABuffer(offset); in dequeueAccessUnitMPEGVideo() local 1707 memcpy(csd->data(), data, offset); in dequeueAccessUnitMPEGVideo() 1720 sp<ABuffer> esds = MakeMPEGVideoESDS(csd); in dequeueAccessUnitMPEGVideo() 1924 sp<ABuffer> csd = new ABuffer(offset); in dequeueAccessUnitMPEG4Video() local [all …]
|
/frameworks/av/media/codec2/components/aac/ |
D | C2SoftAacEnc.cpp | 337 std::unique_ptr<C2StreamInitDataInfo::output> csd = in process() local 339 if (!csd) { in process() 345 memcpy(csd->m.value, encInfo.confBuf, encInfo.confSize); in process() 348 hexdump(csd->m.value, csd->flexCount()); in process() 350 work->worklets.front()->output.configUpdate.push_back(std::move(csd)); in process()
|
/frameworks/av/media/codec2/sfplugin/ |
D | CCodecBuffers.cpp | 835 const C2StreamInitDataInfo::output *csd, in registerCsd() argument 842 [csd](const sp<Codec2Buffer> &clientBuffer) { in registerCsd() 844 && clientBuffer->capacity() >= csd->flexCount(); in registerCsd() 849 memcpy(c2Buffer->base(), csd->m.value, csd->flexCount()); in registerCsd() 850 c2Buffer->setRange(0, csd->flexCount()); in registerCsd() 943 const C2StreamInitDataInfo::output *csd, in registerCsd() argument 947 mFormat, ABuffer::CreateAsCopy(csd->m.value, csd->flexCount())); in registerCsd()
|
D | CCodecBuffers.h | 753 const C2StreamInitDataInfo::output *csd, 799 const C2StreamInitDataInfo::output *csd,
|
D | CCodec.cpp | 949 sp<ABuffer> csd; in configure() local 950 for (size_t ix = 0; msg->findBuffer(StringPrintf("csd-%zu", ix).c_str(), &csd); ++ix) { in configure() 951 if (csd && csd->size() > maxInputSize.value) { in configure() 952 maxInputSize.value = csd->size(); in configure()
|
/frameworks/av/media/codec2/hidl/1.0/vts/functional/common/ |
D | media_c2_hidl_test_common.cpp | 85 std::list<std::unique_ptr<C2Work>>& workQueue, bool& eos, bool& csd, in workDone() argument 97 csd = true; in workDone()
|
D | media_c2_hidl_test_common.h | 201 std::list<std::unique_ptr<C2Work>>& workQueue, bool& eos, bool& csd,
|
/frameworks/av/media/codec2/components/flac/ |
D | C2SoftFlacEnc.cpp | 233 std::unique_ptr<C2StreamInitDataInfo::output> csd = in process() local 235 if (!csd) { in process() 241 memcpy(csd->m.value, mHeader, mHeaderOffset); in process() 244 work->worklets.front()->output.configUpdate.push_back(std::move(csd)); in process()
|
/frameworks/av/media/codec2/components/opus/ |
D | C2SoftOpusEnc.cpp | 425 std::unique_ptr<C2StreamInitDataInfo::output> csd = in process() local 427 if (!csd) { in process() 434 memcpy(csd->m.value, header, headerLen); in process() 435 work->worklets.front()->output.configUpdate.push_back(std::move(csd)); in process()
|
/frameworks/av/media/codec2/components/mpeg4_h263/ |
D | C2SoftMpeg4Enc.cpp | 439 std::unique_ptr<C2StreamInitDataInfo::output> csd = in process() local 441 if (!csd) { in process() 447 memcpy(csd->m.value, outPtr, outputSize); in process() 448 work->worklets.front()->output.configUpdate.push_back(std::move(csd)); in process()
|
/frameworks/av/media/libstagefright/foundation/ |
D | avc_utils.cpp | 408 sp<ABuffer> csd = new ABuffer(csdSize); in MakeAVCCodecSpecificData() local 409 uint8_t *out = csd->data(); in MakeAVCCodecSpecificData() 462 return csd; in MakeAVCCodecSpecificData()
|
/frameworks/av/media/codec2/components/hevc/ |
D | C2SoftHevcEnc.cpp | 937 std::unique_ptr<C2StreamInitDataInfo::output> csd = in process() local 940 if (!csd) { in process() 947 memcpy(csd->m.value, s_header_op.pu1_output_buf, in process() 949 DUMP_TO_FILE(mOutFile, csd->m.value, csd->flexCount()); in process() 951 std::move(csd)); in process()
|
/frameworks/av/media/codec2/components/avc/ |
D | C2SoftAvcEnc.cpp | 1462 std::unique_ptr<C2StreamInitDataInfo::output> csd = in process() local 1464 if (!csd) { in process() 1471 memcpy(csd->m.value, header, s_encode_op.s_out_buf.u4_bytes); in process() 1472 work->worklets.front()->output.configUpdate.push_back(std::move(csd)); in process() 1475 mOutFile, csd->m.value, csd->flexCount()); in process()
|
/frameworks/av/media/extractors/mp4/ |
D | MPEG4Extractor.cpp | 4335 const uint8_t *csd; in updateAudioTrackInfoFromESDS_MPEG4Audio() local 4338 (const void **)&csd, &csd_size) != OK) { in updateAudioTrackInfoFromESDS_MPEG4Audio() 4344 hexdump(csd, csd_size); in updateAudioTrackInfoFromESDS_MPEG4Audio() 4361 if (csd[0] != 0x02) { in updateAudioTrackInfoFromESDS_MPEG4Audio() 4370 while (offset < csd_size && csd[offset] == 0xff) { in updateAudioTrackInfoFromESDS_MPEG4Audio() 4379 if (__builtin_add_overflow(len1, csd[offset], &len1)) { in updateAudioTrackInfoFromESDS_MPEG4Audio() 4388 while (offset < csd_size && csd[offset] == 0xff) { in updateAudioTrackInfoFromESDS_MPEG4Audio() 4397 if (__builtin_add_overflow(len2, csd[offset], &len2)) { in updateAudioTrackInfoFromESDS_MPEG4Audio() 4404 if (offset >= csd_size || csd[offset] != 0x01) { in updateAudioTrackInfoFromESDS_MPEG4Audio() 4409 AMEDIAFORMAT_KEY_CSD_0, &csd[offset], len1); in updateAudioTrackInfoFromESDS_MPEG4Audio() [all …]
|
/frameworks/av/media/libmediaplayerservice/nuplayer/ |
D | NuPlayerDecoder.cpp | 1047 int32_t eos, csd; in onInputBufferFetched() local 1051 } else if (buffer->meta()->findInt32("csd", &csd) && csd) { in onInputBufferFetched()
|