Home
last modified time | relevance | path

Searched refs:bytesCount (Results 1 – 10 of 10) sorted by relevance

/frameworks/av/media/module/codecs/m4v_h263/dec/test/
DMpeg4H263DecoderTest.cpp44 int32_t bytesCount; member
169 int32_t bytesCount = Info[frameIndex].bytesCount; in processMpeg4H263Decoder() local
170 ASSERT_GT(bytesCount, 0) << "Size for the memory allocation is negative"; in processMpeg4H263Decoder()
171 mInputBuffer = (char *)malloc(bytesCount); in processMpeg4H263Decoder()
173 mEleStream.read(mInputBuffer, bytesCount); in processMpeg4H263Decoder()
174 ASSERT_EQ(mEleStream.gcount(), bytesCount) << "mEleStream.gcount() != bytesCount"; in processMpeg4H263Decoder()
190 volSize = bytesCount; in processMpeg4H263Decoder()
249 int32_t inputSize = (Info)[frameIndex].bytesCount; in processMpeg4H263Decoder()
300 int32_t bytesCount = 0; in getInfo() local
304 if (!(eleInfo >> bytesCount)) { in getInfo()
[all …]
/frameworks/av/media/tests/benchmark/src/native/decoder/
DDecoder.cpp33 ssize_t bytesCount = frameInfo[frameID].size; in readSampleData() local
34 if (bufSize < bytesCount) { in readSampleData()
39 memcpy(buf, inputBuffer + offset, bytesCount); in readSampleData()
40 offset += bytesCount; in readSampleData()
41 return make_tuple(bytesCount, flags, timestamp); in readSampleData()
/frameworks/av/media/codec2/hal/hidl/1.0/vts/functional/audio/
DVtsHalMediaC2V1_0TargetAudioEncTest.cpp336 uint32_t bytesCount = samplesPerFrame * nChannels * 2; in encodeNFrames() local
346 nFrames = std::min(nFrames, remainingBytes / bytesCount); in encodeNFrames()
377 std::vector<char> eleData(bytesCount); in encodeNFrames()
378 eleStream.read(eleData.data(), bytesCount); in encodeNFrames()
380 if (eleStream.gcount() < bytesCount) { in encodeNFrames()
381 bytesCount = eleStream.gcount(); in encodeNFrames()
388 bytesCount, {C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE}, &block)); in encodeNFrames()
396 ASSERT_EQ((size_t)bytesCount, view.capacity()); in encodeNFrames()
398 ASSERT_EQ((size_t)bytesCount, view.size()); in encodeNFrames()
400 memcpy(view.base(), eleData.data(), bytesCount); in encodeNFrames()
[all …]
DVtsHalMediaC2V1_0TargetAudioDecTest.cpp470 int size = (*Info)[frameID].bytesCount; in decodeNFrames()
843 eleStream.ignore(Info[index].bytesCount); in TEST_P()
873 int bytesCount = 0; in TEST_P() local
885 bytesCount = 0; in TEST_P()
886 Info.push_back({bytesCount, vtsFlags, timestamp, {}}); in TEST_P()
888 if (!(eleInfo >> bytesCount)) break; in TEST_P()
894 Info.push_back({bytesCount, vtsFlags, timestamp, {}}); in TEST_P()
899 eleInfo >> bytesCount; in TEST_P()
904 {(uint32_t)bytesCount, vtsFlags, timestamp}); in TEST_P()
/frameworks/av/media/module/codecs/flac/dec/test/
DFlacDecoderTest.cpp36 int32_t bytesCount; member
73 int32_t bytesCount = 0; in getInfo() local
77 if (!(eleInfo >> bytesCount)) break; in getInfo()
80 Info.push_back({bytesCount, flags, timestamp}); in getInfo()
99 int32_t size = (Info)[frameID].bytesCount; in processFlacDecoder()
/frameworks/av/media/codec2/hal/hidl/1.0/vts/functional/common/
Dmedia_c2_hidl_test_common.cpp260 int32_t bytesCount = 0; in populateInfoVector() local
266 if (!(eleInfo >> bytesCount)) break; in populateInfoVector()
280 frameInfo->push_back({bytesCount, vtsFlags, timestamp, {}}); in populateInfoVector()
284 eleInfo >> bytesCount; in populateInfoVector()
289 {c2Flags, static_cast<uint32_t>(bytesCount), timestamp}); in populateInfoVector()
Dmedia_c2_hidl_test_common.h61 int bytesCount; member
/frameworks/av/media/codec2/hal/hidl/1.0/vts/functional/video/
DVtsHalMediaC2V1_0TargetVideoDecTest.cpp496 int size = (*Info)[frameID].bytesCount; in decodeNFrames()
730 int bytesCount = 0; in TEST_P() local
736 if (!(eleInfo >> bytesCount)) break; in TEST_P()
742 Info.push_back({bytesCount, vtsFlags, timestamp, {}}); in TEST_P()
931 eleStream.ignore(Info[index].bytesCount); in TEST_P()
961 int bytesCount = 0; in TEST_P() local
972 bytesCount = 0; in TEST_P()
974 if (!(eleInfo >> bytesCount)) break; in TEST_P()
981 Info.push_back({bytesCount, vtsFlags, timestamp, {}}); in TEST_P()
1067 eleStream.ignore(Info[offset].bytesCount); in TEST_P()
DVtsHalMediaC2V1_0TargetVideoEncTest.cpp339 int bytesCount = nWidth * nHeight * 3 >> 1; in encodeNFrames() local
379 std::vector<uint8_t> buffer(bytesCount); in encodeNFrames()
392 eleStream.read(data, bytesCount); in encodeNFrames()
393 ASSERT_EQ(eleStream.gcount(), bytesCount); in encodeNFrames()
434 ALOGV("Frame #%d size = %d queued", frameID, bytesCount); in encodeNFrames()
/frameworks/av/media/libstagefright/tests/writer/
DWriterTest.cpp213 int32_t bytesCount = 0; in getInputBufferInfo() local
218 if (!(eleInfo >> bytesCount)) break; in getInputBufferInfo()
221 mBufferInfo[idx].push_back({bytesCount, flags, timestamp}); in getInputBufferInfo()