/frameworks/av/media/libstagefright/rtsp/ |
D | APacketSource.cpp | 173 sp<ABuffer> csd = new ABuffer(csdSize); in MakeAVCCodecSpecificData() local 174 uint8_t *out = csd->data(); in MakeAVCCodecSpecificData() 220 return csd; in MakeAVCCodecSpecificData() 250 sp<ABuffer> csd = new ABuffer(sizeof(kStaticESDS) + 2); in MakeAACCodecSpecificData() local 251 memcpy(csd->data(), kStaticESDS, sizeof(kStaticESDS)); in MakeAACCodecSpecificData() 252 csd->data()[sizeof(kStaticESDS)] = (x >> 8) & 0xff; in MakeAACCodecSpecificData() 253 csd->data()[sizeof(kStaticESDS) + 1] = x & 0xff; in MakeAACCodecSpecificData() 257 return csd; in MakeAACCodecSpecificData() 297 sp<ABuffer> csd = new ABuffer(sizeof(kStaticESDS) + config->size()); in MakeAACCodecSpecificData2() local 298 uint8_t *dst = csd->data(); in MakeAACCodecSpecificData2() [all …]
|
/frameworks/av/media/libmedia/ |
D | CharacterEncodingDetector.cpp | 86 UCharsetDetector *csd = ucsdet_open(&status); in detectAndConvert() local 118 ucsdet_setText(csd, buf, strlen(buf), &status); in detectAndConvert() 120 const UCharsetMatch** ucma = ucsdet_detectAll(csd, &matches, &status); in detectAndConvert() 147 ucsdet_setText(csd, buf, strlen(buf), &status); in detectAndConvert() 148 ucma = ucsdet_detectAll(csd, &matches, &status); in detectAndConvert() 189 ucsdet_setText(csd, s, inputLength, &status); in detectAndConvert() 190 const UCharsetMatch** ucma = ucsdet_detectAll(csd, &matches, &status); in detectAndConvert() 206 ucsdet_setText(csd, s, inputLength, &status); in detectAndConvert() 207 ucm = ucsdet_detect(csd, &status); in detectAndConvert() 279 ucsdet_close(csd); in detectAndConvert()
|
/frameworks/av/media/libstagefright/ |
D | avc_utils.cpp | 396 sp<ABuffer> csd = new ABuffer(csdSize); in MakeAVCCodecSpecificData() local 397 uint8_t *out = csd->data(); in MakeAVCCodecSpecificData() 428 meta->setData(kKeyAVCC, kTypeAVCC, csd->data(), csd->size()); in MakeAVCCodecSpecificData() 577 sp<ABuffer> csd = new ABuffer(sizeof(kStaticESDS) + 2); in MakeAACCodecSpecificData() local 578 memcpy(csd->data(), kStaticESDS, sizeof(kStaticESDS)); in MakeAACCodecSpecificData() 580 csd->data()[sizeof(kStaticESDS)] = in MakeAACCodecSpecificData() 583 csd->data()[sizeof(kStaticESDS) + 1] = in MakeAACCodecSpecificData() 586 meta->setData(kKeyESDS, 0, csd->data(), csd->size()); in MakeAACCodecSpecificData()
|
D | MediaCodec.cpp | 2626 sp<ABuffer> csd; in extractCSD() local 2627 if (!format->findBuffer(AStringPrintf("csd-%u", i).c_str(), &csd)) { in extractCSD() 2630 if (csd->size() == 0) { in extractCSD() 2634 mCSD.push_back(csd); in extractCSD() 2646 sp<ABuffer> csd = *mCSD.begin(); in queueCSDInputBuffer() local 2651 if (csd->size() > codecInputData->capacity()) { in queueCSDInputBuffer() 2659 memcpy(codecInputData->data(), csd->data(), csd->size()); in queueCSDInputBuffer() 2666 msg->setSize("size", csd->size()); in queueCSDInputBuffer() 3188 sp<ABuffer> csd = new ABuffer(nalSize + 4); in amendOutputFormatWithCodecSpecificData() local 3189 memcpy(csd->data(), "\x00\x00\x00\x01", 4); in amendOutputFormatWithCodecSpecificData() [all …]
|
D | Utils.cpp | 167 static void parseAacProfileFromCsd(const sp<ABuffer> &csd, sp<AMessage> &format) { in parseAacProfileFromCsd() argument 168 if (csd->size() < 2) { in parseAacProfileFromCsd() 172 uint16_t audioObjectType = U16_AT((uint8_t*)csd->data()); in parseAacProfileFromCsd() 438 static void parseMpeg4ProfileLevelFromCsd(const sp<ABuffer> &csd, sp<AMessage> &format) { in parseMpeg4ProfileLevelFromCsd() argument 439 const uint8_t *data = csd->data(); in parseMpeg4ProfileLevelFromCsd() 441 const uint8_t *seq = (const uint8_t*)memmem(data, csd->size(), "\x00\x00\x01\xB0", 4); in parseMpeg4ProfileLevelFromCsd() 442 if (seq != NULL && seq + 4 < data + csd->size()) { in parseMpeg4ProfileLevelFromCsd() 529 static void parseVp9ProfileLevelFromCsd(const sp<ABuffer> &csd, sp<AMessage> &format) { in parseVp9ProfileLevelFromCsd() argument 530 const uint8_t *data = csd->data(); in parseVp9ProfileLevelFromCsd() 531 size_t remaining = csd->size(); in parseVp9ProfileLevelFromCsd()
|
D | ACodecBufferChannel.cpp | 222 int32_t csd; in queueSecureInputBuffer() local 223 if (it->mClientBuffer->meta()->findInt32("csd", &csd)) { in queueSecureInputBuffer() 224 it->mCodecBuffer->meta()->setInt32("csd", csd); in queueSecureInputBuffer()
|
D | MPEG4Extractor.cpp | 3505 const uint8_t *csd; in updateAudioTrackInfoFromESDS_MPEG4Audio() local 3508 (const void **)&csd, &csd_size) != OK) { in updateAudioTrackInfoFromESDS_MPEG4Audio() 3514 hexdump(csd, csd_size); in updateAudioTrackInfoFromESDS_MPEG4Audio() 3534 ABitReader br(csd, csd_size); in updateAudioTrackInfoFromESDS_MPEG4Audio()
|
/frameworks/av/media/libstagefright/mpeg2ts/ |
D | ESQueue.cpp | 1288 static sp<ABuffer> MakeMPEGVideoESDS(const sp<ABuffer> &csd) { in MakeMPEGVideoESDS() argument 1289 sp<ABuffer> esds = new ABuffer(csd->size() + 25); in MakeMPEGVideoESDS() 1293 EncodeSize14(&ptr, 22 + csd->size()); in MakeMPEGVideoESDS() 1301 EncodeSize14(&ptr, 16 + csd->size()); in MakeMPEGVideoESDS() 1310 EncodeSize14(&ptr, csd->size()); in MakeMPEGVideoESDS() 1312 memcpy(ptr, csd->data(), csd->size()); in MakeMPEGVideoESDS() 1392 sp<ABuffer> csd = new ABuffer(offset); in dequeueAccessUnitMPEGVideo() local 1393 memcpy(csd->data(), data, offset); in dequeueAccessUnitMPEGVideo() 1406 sp<ABuffer> esds = MakeMPEGVideoESDS(csd); in dequeueAccessUnitMPEGVideo() 1610 sp<ABuffer> csd = new ABuffer(offset); in dequeueAccessUnitMPEG4Video() local [all …]
|
/frameworks/av/media/libstagefright/wifi-display/source/ |
D | TSPacketizer.cpp | 108 sp<ABuffer> csd; in extractCSDIfNecessary() local 109 if (!mFormat->findBuffer(AStringPrintf("csd-%d", i).c_str(), &csd)) { in extractCSDIfNecessary() 113 mCSD.push(csd); in extractCSDIfNecessary() 186 const sp<ABuffer> &csd = mCSD.itemAt(i); in prependCSD() local 188 memcpy(dup->data() + offset, csd->data(), csd->size()); in prependCSD() 189 offset += csd->size(); in prependCSD()
|
/frameworks/av/media/libmediaplayerservice/nuplayer/ |
D | NuPlayerDecoder.cpp | 1030 int32_t eos, csd; in onInputBufferFetched() local 1034 } else if (buffer->meta()->findInt32("csd", &csd) && csd) { in onInputBufferFetched()
|