Home
last modified time | relevance | path

Searched refs:csdSize (Results 1 – 7 of 7) sorted by relevance

/frameworks/av/media/module/metadatautils/
DMetaDataUtils.cpp226 int32_t csdSize = 6; in MakeVP9CodecSpecificData() local
228 csdSize += 3; in MakeVP9CodecSpecificData()
233 sp<ABuffer> csd = sp<ABuffer>::make(csdSize); in MakeVP9CodecSpecificData()
245 if (csdSize > 6) { in MakeVP9CodecSpecificData()
330 size_t csdSize = sizeof(kStaticESDS) + 2; in MakeAACCodecSpecificData() local
331 if (csdSize > *esds_size) { in MakeAACCodecSpecificData()
342 *esds_size = csdSize; in MakeAACCodecSpecificData()
377 size_t csdSize = sizeof(csd); in MakeAACCodecSpecificData() local
380 if (!MakeAACCodecSpecificData(csd, &csdSize, profile, sampling_freq_index, in MakeAACCodecSpecificData()
389 meta.setData(kKeyESDS, 0, csd, csdSize); in MakeAACCodecSpecificData()
/frameworks/av/media/codec2/hal/hidl/1.0/vts/functional/common/
Dmedia_c2_hidl_test_common.cpp147 size_t csdSize = csdBuffer->flexCount(); in workDone() local
148 if (csdSize > 0) csd = true; in workDone()
/frameworks/av/media/libstagefright/tests/writer/
DWriterTest.cpp389 size_t csdSize = 0; in extract() local
390 bool csdFound = AMediaFormat_getBuffer(format, csdName, &csdBuf, &csdSize); in extract()
391 if (!csdFound || !csdBuf || !csdSize) break; in extract()
393 bufferInfo.push_back({static_cast<int32_t>(csdSize), CODEC_CONFIG_FLAG, 0}); in extract()
394 memcpy(buffer + bufferOffset, csdBuf, csdSize); in extract()
395 bufferOffset += csdSize; in extract()
/frameworks/av/media/module/foundation/
Davc_utils.cpp416 size_t csdSize = in MakeAVCCodecSpecificData() local
421 sp<ABuffer> csd = new ABuffer(csdSize); in MakeAVCCodecSpecificData()
/frameworks/av/media/libstagefright/rtsp/
DAPacketSource.cpp168 size_t csdSize = in MakeAVCCodecSpecificData() local
173 sp<ABuffer> csd = new ABuffer(csdSize); in MakeAVCCodecSpecificData()
/frameworks/av/media/module/extractors/mkv/
DMatroskaExtractor.cpp1270 static bool isMkvAudioCsdSizeOK(const char* mime, size_t csdSize) { in isMkvAudioCsdSizeOK() argument
1271 if ((!strcmp(mime, MEDIA_MIMETYPE_AUDIO_MS_ADPCM) && csdSize < 50) || in isMkvAudioCsdSizeOK()
1272 (!strcmp(mime, MEDIA_MIMETYPE_AUDIO_DVI_IMA_ADPCM) && csdSize < 20) || in isMkvAudioCsdSizeOK()
1273 (!strcmp(mime, MEDIA_MIMETYPE_AUDIO_WMA) && csdSize < 28) || in isMkvAudioCsdSizeOK()
1274 (!strcmp(mime, MEDIA_MIMETYPE_AUDIO_MPEG) && csdSize < 30)) { in isMkvAudioCsdSizeOK()
/frameworks/av/media/libstagefright/
DMPEG4Writer.cpp3358 size_t csdSize = 23; in parseHEVCCodecSpecificData() local
3375 csdSize += 3; in parseHEVCCodecSpecificData()
3380 csdSize += 2 + paramSets.getSize(j); in parseHEVCCodecSpecificData()
3383 mCodecSpecificDataSize = csdSize; in parseHEVCCodecSpecificData()