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()
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/
Davc_utils.cpp360 sp<ABuffer> csd = new ABuffer(csdSize); in MakeAVCCodecSpecificData() local
361 uint8_t *out = csd->data(); in MakeAVCCodecSpecificData()
392 meta->setData(kKeyAVCC, kTypeAVCC, csd->data(), csd->size()); in MakeAVCCodecSpecificData()
500 sp<ABuffer> csd = new ABuffer(sizeof(kStaticESDS) + 2); in MakeAACCodecSpecificData() local
501 memcpy(csd->data(), kStaticESDS, sizeof(kStaticESDS)); in MakeAACCodecSpecificData()
503 csd->data()[sizeof(kStaticESDS)] = in MakeAACCodecSpecificData()
506 csd->data()[sizeof(kStaticESDS) + 1] = in MakeAACCodecSpecificData()
509 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.cpp2151 sp<ABuffer> csd; in extractCSD() local
2152 if (!format->findBuffer(AStringPrintf("csd-%u", i).c_str(), &csd)) { in extractCSD()
2156 mCSD.push_back(csd); in extractCSD()
2169 sp<ABuffer> csd = *mCSD.begin(); in queueCSDInputBuffer() local
2175 if (csd->size() > codecInputData->capacity()) { in queueCSDInputBuffer()
2179 memcpy(codecInputData->data(), csd->data(), csd->size()); in queueCSDInputBuffer()
2186 msg->setSize("size", csd->size()); in queueCSDInputBuffer()
2721 sp<ABuffer> csd = new ABuffer(nalSize + 4); in amendOutputFormatWithCodecSpecificData() local
2722 memcpy(csd->data(), "\x00\x00\x00\x01", 4); in amendOutputFormatWithCodecSpecificData()
2723 memcpy(csd->data() + 4, nalStart, nalSize); in amendOutputFormatWithCodecSpecificData()
[all …]
DMPEG4Extractor.cpp2976 const uint8_t *csd; in updateAudioTrackInfoFromESDS_MPEG4Audio() local
2979 (const void **)&csd, &csd_size) != OK) { in updateAudioTrackInfoFromESDS_MPEG4Audio()
2985 hexdump(csd, csd_size); in updateAudioTrackInfoFromESDS_MPEG4Audio()
3005 ABitReader br(csd, csd_size); in updateAudioTrackInfoFromESDS_MPEG4Audio()
/frameworks/av/media/libmedia/
DCharacterEncodingDetector.cpp86 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/
DESQueue.cpp1017 static sp<ABuffer> MakeMPEGVideoESDS(const sp<ABuffer> &csd) { in MakeMPEGVideoESDS() argument
1018 sp<ABuffer> esds = new ABuffer(csd->size() + 25); in MakeMPEGVideoESDS()
1022 EncodeSize14(&ptr, 22 + csd->size()); in MakeMPEGVideoESDS()
1030 EncodeSize14(&ptr, 16 + csd->size()); in MakeMPEGVideoESDS()
1039 EncodeSize14(&ptr, csd->size()); in MakeMPEGVideoESDS()
1041 memcpy(ptr, csd->data(), csd->size()); in MakeMPEGVideoESDS()
1100 sp<ABuffer> csd = new ABuffer(offset); in dequeueAccessUnitMPEGVideo() local
1101 memcpy(csd->data(), data, offset); in dequeueAccessUnitMPEGVideo()
1114 sp<ABuffer> esds = MakeMPEGVideoESDS(csd); in dequeueAccessUnitMPEGVideo()
1292 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(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/
DNuPlayerDecoder.cpp853 int32_t eos, csd; in onInputBufferFetched() local
857 } else if (buffer->meta()->findInt32("csd", &csd) && csd) { in onInputBufferFetched()