Home
last modified time | relevance | path

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

/frameworks/av/media/tests/benchmark/src/native/extractor/
DExtractor.cpp46 void *csdBuffer = nullptr; in getCSDSample() local
52 bool csdFound = AMediaFormat_getBuffer(mFormat, csdName, &csdBuffer, &size); in getCSDSample()
57 return csdBuffer; in getCSDSample()
92 void *csdBuffer = getCSDSample(frameInfo, idx); in extract() local
93 if (!csdBuffer || !frameInfo.size) break; in extract()
/frameworks/av/media/libstagefright/tests/writer/
DWriterUtility.cpp98 sp<ABuffer> csdBuffer = ABuffer::CreateAsCopy((void *)data, size); in writeHeaderBuffers() local
99 if (csdBuffer.get() == nullptr || csdBuffer->base() == nullptr) { in writeHeaderBuffers()
103 format->setBuffer(csdName, csdBuffer); in writeHeaderBuffers()
/frameworks/av/media/libstagefright/webm/tests/
DWebmFrameThreadUnitTest.cpp124 char csdBuffer[kCsdSize]; in writeAudioHeaderData() local
125 memset(csdBuffer, 0xFF, sizeof(csdBuffer)); in writeAudioHeaderData()
127 sp<ABuffer> csdBuffer0 = ABuffer::CreateAsCopy((void *)csdBuffer, kCsdSize); in writeAudioHeaderData()
131 sp<ABuffer> csdBuffer1 = ABuffer::CreateAsCopy((void *)csdBuffer, kCsdSize); in writeAudioHeaderData()
135 sp<ABuffer> csdBuffer2 = ABuffer::CreateAsCopy((void *)csdBuffer, kCsdSize); in writeAudioHeaderData()
/frameworks/av/media/tests/benchmark/tests/
DC2DecoderTest.cpp98 void *csdBuffer = extractor->getCSDSample(info, idx); in TEST_P() local
99 if (!csdBuffer || !info.size) break; in TEST_P()
103 memcpy(inputBuffer + inputBufferOffset, csdBuffer, info.size); in TEST_P()
/frameworks/av/media/libstagefright/writer_fuzzers/
DWriterFuzzerBase.cpp145 sp<ABuffer> csdBuffer = in writeHeaderBuffers() local
147 if (csdBuffer.get() == nullptr || csdBuffer->base() == nullptr) { in writeHeaderBuffers()
151 format->setBuffer(csdName, csdBuffer); in writeHeaderBuffers()
/frameworks/av/media/codec2/hidl/1.0/vts/functional/common/
Dmedia_c2_hidl_test_common.cpp137 C2StreamInitDataInfo::output* csdBuffer = (C2StreamInitDataInfo::output*)(param); in workDone() local
138 size_t csdSize = csdBuffer->flexCount(); in workDone()
/frameworks/av/media/extractors/tests/
DExtractorUnitTest.cpp663 void *csdBuffer = nullptr; in TEST_P() local
666 AMediaFormat_getBuffer(trackFormat, "csd-0", &csdBuffer, &size); in TEST_P()
667 ASSERT_NE(csdBuffer, nullptr); in TEST_P()
669 GetOpusHeaderBuffers((uint8_t *)csdBuffer, size, &opusHeadBuf, &opusHeadSize, in TEST_P()