Home
last modified time | relevance | path

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

/frameworks/av/media/libstagefright/rtsp/
DAPacketSource.cpp173 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()
299 sp<ABuffer> csd = new ABuffer(sizeof(kStaticESDS) + config->size()); in MakeAACCodecSpecificData2() local
300 uint8_t *dst = csd->data(); in MakeAACCodecSpecificData2()
[all …]
/frameworks/av/media/libstagefright/
Davc_utils.cpp345 sp<ABuffer> csd = new ABuffer(csdSize); in MakeAVCCodecSpecificData() local
346 uint8_t *out = csd->data(); in MakeAVCCodecSpecificData()
377 meta->setData(kKeyAVCC, kTypeAVCC, csd->data(), csd->size()); in MakeAVCCodecSpecificData()
485 sp<ABuffer> csd = new ABuffer(sizeof(kStaticESDS) + 2); in MakeAACCodecSpecificData() local
486 memcpy(csd->data(), kStaticESDS, sizeof(kStaticESDS)); in MakeAACCodecSpecificData()
488 csd->data()[sizeof(kStaticESDS)] = in MakeAACCodecSpecificData()
491 csd->data()[sizeof(kStaticESDS) + 1] = in MakeAACCodecSpecificData()
494 meta->setData(kKeyESDS, 0, csd->data(), csd->size()); in MakeAACCodecSpecificData()
DAVIExtractor.cpp974 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()
DMediaCodec.cpp1713 sp<ABuffer> csd; in extractCSD() local
1714 if (!format->findBuffer(StringPrintf("csd-%u", i).c_str(), &csd)) { in extractCSD()
1718 mCSD.push_back(csd); in extractCSD()
1731 sp<ABuffer> csd = *mCSD.begin(); in queueCSDInputBuffer() local
1737 if (csd->size() > codecInputData->capacity()) { in queueCSDInputBuffer()
1741 memcpy(codecInputData->data(), csd->data(), csd->size()); in queueCSDInputBuffer()
1748 msg->setSize("size", csd->size()); in queueCSDInputBuffer()
2232 sp<ABuffer> csd = new ABuffer(nalSize + 4); in amendOutputFormatWithCodecSpecificData() local
2233 memcpy(csd->data(), "\x00\x00\x00\x01", 4); in amendOutputFormatWithCodecSpecificData()
2234 memcpy(csd->data() + 4, nalStart, nalSize); in amendOutputFormatWithCodecSpecificData()
[all …]
DMPEG4Extractor.cpp2717 const uint8_t *csd; in updateAudioTrackInfoFromESDS_MPEG4Audio() local
2720 (const void **)&csd, &csd_size) != OK) { in updateAudioTrackInfoFromESDS_MPEG4Audio()
2726 hexdump(csd, csd_size); in updateAudioTrackInfoFromESDS_MPEG4Audio()
2746 ABitReader br(csd, csd_size); in updateAudioTrackInfoFromESDS_MPEG4Audio()
/frameworks/av/media/libmedia/
DCharacterEncodingDetector.cpp86 UCharsetDetector *csd = ucsdet_open(&status); in detectAndConvert() local
117 ucsdet_setText(csd, buf, strlen(buf), &status); in detectAndConvert()
119 const UCharsetMatch** ucma = ucsdet_detectAll(csd, &matches, &status); in detectAndConvert()
148 ucsdet_setText(csd, buf, strlen(buf), &status); in detectAndConvert()
149 ucma = ucsdet_detectAll(csd, &matches, &status); in detectAndConvert()
192 ucsdet_setText(csd, s, inputLength, &status); in detectAndConvert()
193 ucm = ucsdet_detect(csd, &status); in detectAndConvert()
265 ucsdet_close(csd); in detectAndConvert()
/frameworks/av/media/libstagefright/mpeg2ts/
DESQueue.cpp976 static sp<ABuffer> MakeMPEGVideoESDS(const sp<ABuffer> &csd) { in MakeMPEGVideoESDS() argument
977 sp<ABuffer> esds = new ABuffer(csd->size() + 25); in MakeMPEGVideoESDS()
981 EncodeSize14(&ptr, 22 + csd->size()); in MakeMPEGVideoESDS()
989 EncodeSize14(&ptr, 16 + csd->size()); in MakeMPEGVideoESDS()
998 EncodeSize14(&ptr, csd->size()); in MakeMPEGVideoESDS()
1000 memcpy(ptr, csd->data(), csd->size()); in MakeMPEGVideoESDS()
1053 sp<ABuffer> csd = new ABuffer(offset); in dequeueAccessUnitMPEGVideo() local
1054 memcpy(csd->data(), data, offset); in dequeueAccessUnitMPEGVideo()
1067 sp<ABuffer> esds = MakeMPEGVideoESDS(csd); in dequeueAccessUnitMPEGVideo()
1220 sp<ABuffer> csd = new ABuffer(offset); in dequeueAccessUnitMPEG4Video() local
[all …]
/frameworks/av/media/libstagefright/wifi-display/source/
DTSPacketizer.cpp108 sp<ABuffer> csd; in extractCSDIfNecessary() local
109 if (!mFormat->findBuffer(StringPrintf("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/
DNuPlayerDecoder.cpp741 int32_t eos, csd; in onInputBufferFetched() local
745 } else if (buffer->meta()->findInt32("csd", &csd) && csd) { in onInputBufferFetched()