Home
last modified time | relevance | path

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

/frameworks/av/media/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/hidl/1.0/vts/functional/audio/
DVtsHalMediaC2V1_0TargetAudioEncTest.cpp339 uint32_t bytesCount = samplesPerFrame * nChannels * 2; in encodeNFrames() local
349 nFrames = std::min(nFrames, remainingBytes / bytesCount); in encodeNFrames()
380 char* data = (char*)malloc(bytesCount); in encodeNFrames()
382 eleStream.read(data, bytesCount); in encodeNFrames()
384 if (eleStream.gcount() < bytesCount) { in encodeNFrames()
385 bytesCount = eleStream.gcount(); in encodeNFrames()
392 bytesCount, {C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE}, &block)); in encodeNFrames()
400 ASSERT_EQ((size_t)bytesCount, view.capacity()); in encodeNFrames()
402 ASSERT_EQ((size_t)bytesCount, view.size()); in encodeNFrames()
404 memcpy(view.base(), data, bytesCount); in encodeNFrames()
[all …]
DVtsHalMediaC2V1_0TargetAudioDecTest.cpp357 int size = (*Info)[frameID].bytesCount; in decodeNFrames()
656 eleStream.ignore(Info[index].bytesCount); in TEST_P()
686 int bytesCount = 0; in TEST_P() local
699 bytesCount = 0; in TEST_P()
701 if (!(eleInfo >> bytesCount)) break; in TEST_P()
706 Info.push_back({bytesCount, flags, timestamp}); in TEST_P()
/frameworks/av/media/libstagefright/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/hidl/1.0/vts/functional/video/
DVtsHalMediaC2V1_0TargetVideoDecTest.cpp474 int size = (*Info)[frameID].bytesCount; in decodeNFrames()
708 int bytesCount = 0; in TEST_P() local
713 if (!(eleInfo >> bytesCount)) break; in TEST_P()
717 Info.push_back({bytesCount, flags, timestamp}); in TEST_P()
915 eleStream.ignore(Info[index].bytesCount); in TEST_P()
945 int bytesCount = 0; in TEST_P() local
958 bytesCount = 0; in TEST_P()
960 if (!(eleInfo >> bytesCount)) break; in TEST_P()
965 Info.push_back({bytesCount, flags, timestamp}); in TEST_P()
1054 eleStream.ignore(Info[offset].bytesCount); in TEST_P()
DVtsHalMediaC2V1_0TargetVideoEncTest.cpp334 int bytesCount = nWidth * nHeight * 3 >> 1; in encodeNFrames() local
374 std::vector<uint8_t> buffer(bytesCount); in encodeNFrames()
387 eleStream.read(data, bytesCount); in encodeNFrames()
388 ASSERT_EQ(eleStream.gcount(), bytesCount); in encodeNFrames()
429 ALOGV("Frame #%d size = %d queued", frameID, bytesCount); in encodeNFrames()
/frameworks/av/media/codec2/hidl/1.0/vts/functional/common/
Dmedia_c2_hidl_test_common.cpp225 int32_t bytesCount = 0; in populateInfoVector() local
229 if (!(eleInfo >> bytesCount)) break; in populateInfoVector()
238 frameInfo->push_back({bytesCount, flags, timestamp}); in populateInfoVector()
Dmedia_c2_hidl_test_common.h53 int bytesCount; member
/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()