Home
last modified time | relevance | path

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

/frameworks/av/media/tests/benchmark/tests/
DC2DecoderTest.cpp94 uint32_t inputBufferOffset = 0; in TEST_P() local
102 ASSERT_LE(inputBufferOffset + info.size, fileSize) << "Memory allocated not sufficient"; in TEST_P()
104 memcpy(inputBuffer.get() + inputBufferOffset, csdBuffer, info.size); in TEST_P()
106 inputBufferOffset += info.size; in TEST_P()
115 ASSERT_LE(inputBufferOffset + info.size, fileSize) << "Memory allocated not sufficient"; in TEST_P()
117 memcpy(inputBuffer.get() + inputBufferOffset, extractor->getFrameBuf(), info.size); in TEST_P()
119 inputBufferOffset += info.size; in TEST_P()
DMuxerTest.cpp88 uint32_t inputBufferOffset = 0; in TEST_P() local
95 ASSERT_LE(inputBufferOffset + info.size, kMaxBufferSize) in TEST_P()
98 memcpy(inputBuffer.get() + inputBufferOffset, extractor->getFrameBuf(), info.size); in TEST_P()
99 info.offset = inputBufferOffset; in TEST_P()
101 inputBufferOffset += info.size; in TEST_P()
DDecoderTest.cpp66 uint32_t inputBufferOffset = 0; in TEST_P() local
73 ASSERT_LE(inputBufferOffset + info.size, kMaxBufferSize) in TEST_P()
76 memcpy(inputBuffer.get() + inputBufferOffset, extractor->getFrameBuf(), info.size); in TEST_P()
78 inputBufferOffset += info.size; in TEST_P()
DC2EncoderTest.cpp97 uint32_t inputBufferOffset = 0; in TEST_P() local
104 ASSERT_LE(inputBufferOffset + info.size, fileSize) << "Memory allocated not sufficient"; in TEST_P()
106 memcpy(inputBuffer.get() + inputBufferOffset, extractor->getFrameBuf(), info.size); in TEST_P()
108 inputBufferOffset += info.size; in TEST_P()
DEncoderTest.cpp70 uint32_t inputBufferOffset = 0; in TEST_P() local
77 ASSERT_LE(inputBufferOffset + info.size, kMaxBufferSize) in TEST_P()
80 memcpy(inputBuffer.get() + inputBufferOffset, extractor->getFrameBuf(), info.size); in TEST_P()
82 inputBufferOffset += info.size; in TEST_P()
/frameworks/av/media/tests/benchmark/MediaBenchmarkTest/src/main/cpp/
DNativeMuxer.cpp84 uint32_t inputBufferOffset = 0; in Java_com_android_media_benchmark_library_Native_Mux() local
91 if (inputBufferOffset + info.size > fileSize) { in Java_com_android_media_benchmark_library_Native_Mux()
99 memcpy(inputBuffer + inputBufferOffset, extractor->getFrameBuf(), in Java_com_android_media_benchmark_library_Native_Mux()
101 info.offset = inputBufferOffset; in Java_com_android_media_benchmark_library_Native_Mux()
103 inputBufferOffset += info.size; in Java_com_android_media_benchmark_library_Native_Mux()
DNativeDecoder.cpp82 uint32_t inputBufferOffset = 0; in Java_com_android_media_benchmark_library_Native_Decode() local
88 if (inputBufferOffset + info.size > kMaxBufferSize) { in Java_com_android_media_benchmark_library_Native_Decode()
93 memcpy(inputBuffer + inputBufferOffset, extractor->getFrameBuf(), info.size); in Java_com_android_media_benchmark_library_Native_Decode()
95 inputBufferOffset += info.size; in Java_com_android_media_benchmark_library_Native_Decode()