/frameworks/av/media/libmedia/ |
H A D | CharacterEncodingDetector.cpp | 86 UCharsetDetector *csd = ucsdet_open(&status); local 116 ucsdet_setText(csd, buf, strlen(buf), &status); 118 const UCharsetMatch** ucma = ucsdet_detectAll(csd, &matches, &status); 147 ucsdet_setText(csd, buf, strlen(buf), &status); 148 ucma = ucsdet_detectAll(csd, &matches, &status); 190 ucsdet_setText(csd, s, inputLength, &status); 191 ucm = ucsdet_detect(csd, &status); 263 ucsdet_close(csd);
|
/frameworks/av/media/libstagefright/rtsp/ |
H A D | APacketSource.cpp | 173 sp<ABuffer> csd = new ABuffer(csdSize); local 174 uint8_t *out = csd->data(); 218 // hexdump(csd->data(), csd->size()); 220 return csd; 250 sp<ABuffer> csd = new ABuffer(sizeof(kStaticESDS) + 2); local 251 memcpy(csd->data(), kStaticESDS, sizeof(kStaticESDS)); 252 csd->data()[sizeof(kStaticESDS)] = (x >> 8) & 0xff; 253 csd->data()[sizeof(kStaticESDS) + 1] = x & 0xff; 255 // hexdump(csd 297 sp<ABuffer> csd = new ABuffer(sizeof(kStaticESDS) + config->size()); local 383 sp<ABuffer> csd = new ABuffer(len3); local [all...] |
/frameworks/av/media/libmediaplayerservice/nuplayer/ |
H A D | NuPlayerDecoder.cpp | 858 int32_t eos, csd; local 862 } else if (buffer->meta()->findInt32("csd", &csd) && csd) { 991 if (mInputFormat->findBuffer("csd-0", &oldBuf) && 992 targetFormat->findBuffer("csd-0", &newBuf)) { 1039 AString tag = "csd-";
|
/frameworks/av/media/libstagefright/ |
H A D | avc_utils.cpp | 387 sp<ABuffer> csd = new ABuffer(csdSize); local 388 uint8_t *out = csd->data(); 419 meta->setData(kKeyAVCC, kTypeAVCC, csd->data(), csd->size()); 527 sp<ABuffer> csd = new ABuffer(sizeof(kStaticESDS) + 2); local 528 memcpy(csd->data(), kStaticESDS, sizeof(kStaticESDS)); 530 csd->data()[sizeof(kStaticESDS)] = 533 csd->data()[sizeof(kStaticESDS) + 1] = 536 meta->setData(kKeyESDS, 0, csd->data(), csd [all...] |
H A D | AVIExtractor.cpp | 974 sp<ABuffer> csd = new ABuffer(len3); local 975 uint8_t *dst = csd->data(); 994 // hexdump(csd->data(), csd->size()); 996 return csd; 1041 sp<ABuffer> csd = MakeMPEG4VideoCodecSpecificData(buffer); local 1042 track->mMeta->setData(kKeyESDS, kTypeESDS, csd->data(), csd->size()); 1093 const void *csd; local 1095 CHECK(meta->findData(kKeyAVCC, &type, &csd, [all...] |
H A D | MediaCodec.cpp | 1493 // if there's more csd left, we submit it here 2280 sp<ABuffer> csd; local 2281 if (!format->findBuffer(AStringPrintf("csd-%u", i).c_str(), &csd)) { 2284 if (csd->size() == 0) { 2285 ALOGW("csd-%zu size is 0", i); 2288 mCSD.push_back(csd); 2301 sp<ABuffer> csd = *mCSD.begin(); local 2307 if (csd->size() > codecInputData->capacity()) { 2311 memcpy(codecInputData->data(), csd 2882 sp<ABuffer> csd = new ABuffer(nalSize + 4); local [all...] |
H A D | Utils.cpp | 166 static void parseAacProfileFromCsd(const sp<ABuffer> &csd, sp<AMessage> &format) { argument 167 if (csd->size() < 2) { 171 uint16_t audioObjectType = U16_AT((uint8_t*)csd->data()); 432 static void parseMpeg4ProfileLevelFromCsd(const sp<ABuffer> &csd, sp<AMessage> &format) { argument 433 const uint8_t *data = csd->data(); 435 const uint8_t *seq = (const uint8_t*)memmem(data, csd->size(), "\x00\x00\x01\xB0", 4); 436 if (seq != NULL && seq + 4 < data + csd->size()) { 523 static void parseVp9ProfileLevelFromCsd(const sp<ABuffer> &csd, sp<AMessage> &format) { argument 524 const uint8_t *data = csd->data(); 525 size_t remaining = csd [all...] |
H A D | MPEG4Extractor.cpp | 3184 const uint8_t *csd; local 3187 (const void **)&csd, &csd_size) != OK) { 3193 hexdump(csd, csd_size); 3213 ABitReader br(csd, csd_size); 3330 ALOGW("csd missing extension flag; assuming %d for object type %u.",
|
/frameworks/av/media/libstagefright/wifi-display/source/ |
H A D | TSPacketizer.cpp | 108 sp<ABuffer> csd; local 109 if (!mFormat->findBuffer(AStringPrintf("csd-%d", i).c_str(), &csd)) { 113 mCSD.push(csd); 186 const sp<ABuffer> &csd = mCSD.itemAt(i); local 188 memcpy(dup->data() + offset, csd->data(), csd->size()); 189 offset += csd->size();
|
/frameworks/av/media/libstagefright/mpeg2ts/ |
H A D | ESQueue.cpp | 1018 static sp<ABuffer> MakeMPEGVideoESDS(const sp<ABuffer> &csd) { argument 1019 sp<ABuffer> esds = new ABuffer(csd->size() + 25); 1023 EncodeSize14(&ptr, 22 + csd->size()); 1031 EncodeSize14(&ptr, 16 + csd->size()); 1040 EncodeSize14(&ptr, csd->size()); 1042 memcpy(ptr, csd->data(), csd->size()); 1103 sp<ABuffer> csd = new ABuffer(offset); local 1104 memcpy(csd->data(), data, offset); 1115 // hexdump(csd 1316 sp<ABuffer> csd = new ABuffer(offset); local [all...] |