Searched refs:csdBuffer (Results 1 – 7 of 7) sorted by relevance
/frameworks/av/media/tests/benchmark/src/native/extractor/ |
D | Extractor.cpp | 46 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/ |
D | WriterUtility.cpp | 98 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/ |
D | WebmFrameThreadUnitTest.cpp | 124 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/ |
D | C2DecoderTest.cpp | 98 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/ |
D | WriterFuzzerBase.cpp | 145 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/ |
D | media_c2_hidl_test_common.cpp | 137 C2StreamInitDataInfo::output* csdBuffer = (C2StreamInitDataInfo::output*)(param); in workDone() local 138 size_t csdSize = csdBuffer->flexCount(); in workDone()
|
/frameworks/av/media/extractors/tests/ |
D | ExtractorUnitTest.cpp | 663 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()
|