/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/libstagefright/ |
D | avc_utils.cpp | 387 sp<ABuffer> csd = new ABuffer(csdSize); in MakeAVCCodecSpecificData() local 388 uint8_t *out = csd->data(); in MakeAVCCodecSpecificData() 419 meta->setData(kKeyAVCC, kTypeAVCC, csd->data(), csd->size()); in MakeAVCCodecSpecificData() 549 sp<ABuffer> csd = new ABuffer(sizeof(kStaticESDS) + 2); in MakeAACCodecSpecificData() local 550 memcpy(csd->data(), kStaticESDS, sizeof(kStaticESDS)); in MakeAACCodecSpecificData() 552 csd->data()[sizeof(kStaticESDS)] = in MakeAACCodecSpecificData() 555 csd->data()[sizeof(kStaticESDS) + 1] = in MakeAACCodecSpecificData() 558 meta->setData(kKeyESDS, 0, csd->data(), csd->size()); in MakeAACCodecSpecificData()
|
D | AVIExtractor.cpp | 974 sp<ABuffer> csd = new ABuffer(len3); in MakeMPEG4VideoCodecSpecificData() local 975 uint8_t *dst = csd->data(); in MakeMPEG4VideoCodecSpecificData() 996 return csd; in MakeMPEG4VideoCodecSpecificData() 1041 sp<ABuffer> csd = MakeMPEG4VideoCodecSpecificData(buffer); in addMPEG4CodecSpecificData() local 1042 track->mMeta->setData(kKeyESDS, kTypeESDS, csd->data(), csd->size()); in addMPEG4CodecSpecificData() 1093 const void *csd; in addH264CodecSpecificData() local 1095 CHECK(meta->findData(kKeyAVCC, &type, &csd, &csdSize)); in addH264CodecSpecificData() 1099 track->mMeta->setData(kKeyAVCC, type, csd, csdSize); in addH264CodecSpecificData()
|
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() 433 static void parseMpeg4ProfileLevelFromCsd(const sp<ABuffer> &csd, sp<AMessage> &format) { in parseMpeg4ProfileLevelFromCsd() argument 434 const uint8_t *data = csd->data(); in parseMpeg4ProfileLevelFromCsd() 436 const uint8_t *seq = (const uint8_t*)memmem(data, csd->size(), "\x00\x00\x01\xB0", 4); in parseMpeg4ProfileLevelFromCsd() 437 if (seq != NULL && seq + 4 < data + csd->size()) { in parseMpeg4ProfileLevelFromCsd() 524 static void parseVp9ProfileLevelFromCsd(const sp<ABuffer> &csd, sp<AMessage> &format) { in parseVp9ProfileLevelFromCsd() argument 525 const uint8_t *data = csd->data(); in parseVp9ProfileLevelFromCsd() 526 size_t remaining = csd->size(); in parseVp9ProfileLevelFromCsd()
|
D | MediaCodec.cpp | 2280 sp<ABuffer> csd; in extractCSD() local 2281 if (!format->findBuffer(AStringPrintf("csd-%u", i).c_str(), &csd)) { in extractCSD() 2284 if (csd->size() == 0) { in extractCSD() 2288 mCSD.push_back(csd); in extractCSD() 2301 sp<ABuffer> csd = *mCSD.begin(); in queueCSDInputBuffer() local 2307 if (csd->size() > codecInputData->capacity()) { in queueCSDInputBuffer() 2311 memcpy(codecInputData->data(), csd->data(), csd->size()); in queueCSDInputBuffer() 2318 msg->setSize("size", csd->size()); in queueCSDInputBuffer() 2882 sp<ABuffer> csd = new ABuffer(nalSize + 4); in amendOutputFormatWithCodecSpecificData() local 2883 memcpy(csd->data(), "\x00\x00\x00\x01", 4); in amendOutputFormatWithCodecSpecificData() [all …]
|
D | MPEG4Extractor.cpp | 3283 const uint8_t *csd; in updateAudioTrackInfoFromESDS_MPEG4Audio() local 3286 (const void **)&csd, &csd_size) != OK) { in updateAudioTrackInfoFromESDS_MPEG4Audio() 3292 hexdump(csd, csd_size); in updateAudioTrackInfoFromESDS_MPEG4Audio() 3312 ABitReader br(csd, csd_size); in updateAudioTrackInfoFromESDS_MPEG4Audio()
|
/frameworks/av/media/libmedia/ |
D | CharacterEncodingDetector.cpp | 86 UCharsetDetector *csd = ucsdet_open(&status); in detectAndConvert() local 116 ucsdet_setText(csd, buf, strlen(buf), &status); in detectAndConvert() 118 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() 190 ucsdet_setText(csd, s, inputLength, &status); in detectAndConvert() 191 ucm = ucsdet_detect(csd, &status); in detectAndConvert() 263 ucsdet_close(csd); in detectAndConvert()
|
/frameworks/av/media/libstagefright/mpeg2ts/ |
D | ESQueue.cpp | 1018 static sp<ABuffer> MakeMPEGVideoESDS(const sp<ABuffer> &csd) { in MakeMPEGVideoESDS() argument 1019 sp<ABuffer> esds = new ABuffer(csd->size() + 25); in MakeMPEGVideoESDS() 1023 EncodeSize14(&ptr, 22 + csd->size()); in MakeMPEGVideoESDS() 1031 EncodeSize14(&ptr, 16 + csd->size()); in MakeMPEGVideoESDS() 1040 EncodeSize14(&ptr, csd->size()); in MakeMPEGVideoESDS() 1042 memcpy(ptr, csd->data(), csd->size()); in MakeMPEGVideoESDS() 1103 sp<ABuffer> csd = new ABuffer(offset); in dequeueAccessUnitMPEGVideo() local 1104 memcpy(csd->data(), data, offset); in dequeueAccessUnitMPEGVideo() 1117 sp<ABuffer> esds = MakeMPEGVideoESDS(csd); in dequeueAccessUnitMPEGVideo() 1316 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 | 949 int32_t eos, csd; in onInputBufferFetched() local 953 } else if (buffer->meta()->findInt32("csd", &csd) && csd) { in onInputBufferFetched()
|