Home
last modified time | relevance | path

Searched refs:csd (Results 1 – 11 of 11) sorted by relevance

/frameworks/av/media/libstagefright/
DMetaDataUtils.cpp33 sp<ABuffer> csd = MakeAVCCodecSpecificData(accessUnit, &width, &height, &sarWidth, &sarHeight); in MakeAVCCodecSpecificData() local
34 if (csd == nullptr) { in MakeAVCCodecSpecificData()
39 meta.setData(kKeyAVCC, kTypeAVCC, csd->data(), csd->size()); in MakeAVCCodecSpecificData()
86 uint8_t *csd = new uint8_t[csdSize]; in MakeAACCodecSpecificData() local
87 memcpy(csd, kStaticESDS, sizeof(kStaticESDS)); in MakeAACCodecSpecificData()
89 csd[sizeof(kStaticESDS)] = in MakeAACCodecSpecificData()
92 csd[sizeof(kStaticESDS) + 1] = in MakeAACCodecSpecificData()
100 meta.setData(kKeyESDS, 0, csd, csdSize); in MakeAACCodecSpecificData()
101 delete [] csd; in MakeAACCodecSpecificData()
DMediaCodec.cpp2987 sp<ABuffer> csd; in extractCSD() local
2988 if (!format->findBuffer(AStringPrintf("csd-%u", i).c_str(), &csd)) { in extractCSD()
2991 if (csd->size() == 0) { in extractCSD()
2995 mCSD.push_back(csd); in extractCSD()
3007 sp<ABuffer> csd = *mCSD.begin(); in queueCSDInputBuffer() local
3012 if (csd->size() > codecInputData->capacity()) { in queueCSDInputBuffer()
3020 memcpy(codecInputData->data(), csd->data(), csd->size()); in queueCSDInputBuffer()
3027 msg->setSize("size", csd->size()); in queueCSDInputBuffer()
3550 sp<ABuffer> csd = new ABuffer(nalSize + 4); in amendOutputFormatWithCodecSpecificData() local
3551 memcpy(csd->data(), "\x00\x00\x00\x01", 4); in amendOutputFormatWithCodecSpecificData()
[all …]
DACodecBufferChannel.cpp224 int32_t csd; in queueSecureInputBuffer() local
225 if (it->mClientBuffer->meta()->findInt32("csd", &csd)) { in queueSecureInputBuffer()
226 it->mCodecBuffer->meta()->setInt32("csd", csd); in queueSecureInputBuffer()
DUtils.cpp134 static void parseAacProfileFromCsd(const sp<ABuffer> &csd, sp<AMessage> &format) { in parseAacProfileFromCsd() argument
135 if (csd->size() < 2) { in parseAacProfileFromCsd()
139 uint16_t audioObjectType = U16_AT((uint8_t*)csd->data()); in parseAacProfileFromCsd()
409 static void parseMpeg4ProfileLevelFromCsd(const sp<ABuffer> &csd, sp<AMessage> &format) { in parseMpeg4ProfileLevelFromCsd() argument
410 const uint8_t *data = csd->data(); in parseMpeg4ProfileLevelFromCsd()
412 const uint8_t *seq = (const uint8_t*)memmem(data, csd->size(), "\x00\x00\x01\xB0", 4); in parseMpeg4ProfileLevelFromCsd()
413 if (seq != NULL && seq + 4 < data + csd->size()) { in parseMpeg4ProfileLevelFromCsd()
500 static void parseVp9ProfileLevelFromCsd(const sp<ABuffer> &csd, sp<AMessage> &format) { in parseVp9ProfileLevelFromCsd() argument
501 const uint8_t *data = csd->data(); in parseVp9ProfileLevelFromCsd()
502 size_t remaining = csd->size(); in parseVp9ProfileLevelFromCsd()
/frameworks/av/media/libstagefright/rtsp/
DAPacketSource.cpp172 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/
DCharacterEncodingDetector.cpp86 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/mpeg2ts/
DESQueue.cpp1297 static sp<ABuffer> MakeMPEGVideoESDS(const sp<ABuffer> &csd) { in MakeMPEGVideoESDS() argument
1298 sp<ABuffer> esds = new ABuffer(csd->size() + 25); in MakeMPEGVideoESDS()
1302 EncodeSize14(&ptr, 22 + csd->size()); in MakeMPEGVideoESDS()
1310 EncodeSize14(&ptr, 16 + csd->size()); in MakeMPEGVideoESDS()
1319 EncodeSize14(&ptr, csd->size()); in MakeMPEGVideoESDS()
1321 memcpy(ptr, csd->data(), csd->size()); in MakeMPEGVideoESDS()
1401 sp<ABuffer> csd = new ABuffer(offset); in dequeueAccessUnitMPEGVideo() local
1402 memcpy(csd->data(), data, offset); in dequeueAccessUnitMPEGVideo()
1415 sp<ABuffer> esds = MakeMPEGVideoESDS(csd); in dequeueAccessUnitMPEGVideo()
1619 sp<ABuffer> csd = new ABuffer(offset); in dequeueAccessUnitMPEG4Video() local
[all …]
/frameworks/av/media/libstagefright/foundation/
Davc_utils.cpp408 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/libmediaplayerservice/nuplayer/
DNuPlayerDecoder.cpp1041 int32_t eos, csd; in onInputBufferFetched() local
1045 } else if (buffer->meta()->findInt32("csd", &csd) && csd) { in onInputBufferFetched()
/frameworks/av/media/libmediaplayer2/nuplayer2/
DNuPlayer2Decoder.cpp1060 int32_t eos, csd; in onInputBufferFetched() local
1064 } else if (buffer->meta()->findInt32("csd", &csd) && csd) { in onInputBufferFetched()
/frameworks/av/media/extractors/mp4/
DMPEG4Extractor.cpp3576 const uint8_t *csd; in updateAudioTrackInfoFromESDS_MPEG4Audio() local
3579 (const void **)&csd, &csd_size) != OK) { in updateAudioTrackInfoFromESDS_MPEG4Audio()
3585 hexdump(csd, csd_size); in updateAudioTrackInfoFromESDS_MPEG4Audio()
3605 ABitReader br(csd, csd_size); in updateAudioTrackInfoFromESDS_MPEG4Audio()