/frameworks/av/media/codec2/hidl/1.0/vts/functional/audio/ |
D | VtsHalMediaC2V1_0TargetAudioEncTest.cpp | 316 std::ifstream& eleStream, uint32_t nFrames, int32_t samplesPerFrame, in encodeNFrames() argument 358 eleStream.read(data, bytesCount); in encodeNFrames() 359 ASSERT_EQ(eleStream.gcount(), bytesCount); in encodeNFrames() 441 std::ifstream eleStream; in TEST_P() local 443 eleStream.open(mURL, std::ifstream::binary); in TEST_P() 444 ASSERT_EQ(eleStream.is_open(), true); in TEST_P() 448 eleStream, numFrames, samplesPerFrame, nChannels, nSampleRate, false, signalEOS)); in TEST_P() 461 eleStream.close(); in TEST_P() 544 std::ifstream eleStream; in TEST_P() local 547 eleStream.open(mURL, std::ifstream::binary); in TEST_P() [all …]
|
D | VtsHalMediaC2V1_0TargetAudioDecTest.cpp | 382 std::ifstream& eleStream, android::Vector<FrameInfo>* Info, int offset, in decodeNFrames() argument 421 eleStream.read(data, size); in decodeNFrames() 422 ASSERT_EQ(eleStream.gcount(), size); in decodeNFrames() 551 std::ifstream eleStream; in TEST_P() local 552 eleStream.open(mURL, std::ifstream::binary); in TEST_P() 553 ASSERT_EQ(eleStream.is_open(), true); in TEST_P() 555 mFlushedIndices, mLinearPool, eleStream, &Info, 0, in TEST_P() 569 eleStream.close(); in TEST_P() 623 std::ifstream eleStream; in TEST_P() local 624 eleStream.open(mURL, std::ifstream::binary); in TEST_P() [all …]
|
/frameworks/av/media/codec2/hidl/1.0/vts/functional/video/ |
D | VtsHalMediaC2V1_0TargetVideoEncTest.cpp | 307 std::ifstream& eleStream, bool& disableTest, uint32_t frameID, uint32_t nFrames, in encodeNFrames() argument 349 if (eleStream.is_open()) { in encodeNFrames() 350 eleStream.read(data, bytesCount); in encodeNFrames() 351 ASSERT_EQ(eleStream.gcount(), bytesCount); in encodeNFrames() 430 std::ifstream eleStream; in TEST_P() local 431 eleStream.open(mURL, std::ifstream::binary); in TEST_P() 432 ASSERT_EQ(eleStream.is_open(), true) << mURL << " file not found"; in TEST_P() 480 mFlushedIndices, mGraphicPool, eleStream, mDisableTest, in TEST_P() 506 eleStream.close(); in TEST_P() 585 std::ifstream eleStream; in TEST_P() local [all …]
|
D | VtsHalMediaC2V1_0TargetVideoDecTest.cpp | 437 std::ifstream& eleStream, android::Vector<FrameInfo>* Info, int offset, in decodeNFrames() argument 477 eleStream.read(data, size); in decodeNFrames() 478 ASSERT_EQ(eleStream.gcount(), size); in decodeNFrames() 627 std::ifstream eleStream; in TEST_P() local 628 eleStream.open(mURL, std::ifstream::binary); in TEST_P() 629 ASSERT_EQ(eleStream.is_open(), true); in TEST_P() 649 mFlushedIndices, mLinearPool, eleStream, &Info, 0, in TEST_P() 667 eleStream.close(); in TEST_P() 704 std::ifstream eleStream, eleInfo; in TEST_P() local 743 eleStream.open(mURL, std::ifstream::binary); in TEST_P() [all …]
|
/frameworks/av/media/tests/benchmark/tests/ |
D | EncoderTest.cpp | 90 ifstream eleStream; in TEST_P() local 91 eleStream.open(outputFileName.c_str(), ifstream::binary | ifstream::ate); in TEST_P() 92 ASSERT_EQ(eleStream.is_open(), true) << outputFileName.c_str() << " - file not found"; in TEST_P() 93 size_t eleSize = eleStream.tellg(); in TEST_P() 94 eleStream.seekg(0, ifstream::beg); in TEST_P() 130 status = encoder->encode(codecName, eleStream, eleSize, asyncMode, encParams, (char *)mime); in TEST_P() 137 eleStream.close(); in TEST_P()
|
D | C2EncoderTest.cpp | 122 ifstream eleStream; in TEST_P() local 123 eleStream.open(outputFileName.c_str(), ifstream::binary | ifstream::ate); in TEST_P() 124 ASSERT_EQ(eleStream.is_open(), true) << outputFileName.c_str() << " - file not found"; in TEST_P() 125 size_t eleSize = eleStream.tellg(); in TEST_P() 133 eleStream.seekg(0, ifstream::beg); in TEST_P() 134 status = mEncoder->encodeFrames(eleStream, eleSize); in TEST_P()
|
/frameworks/av/media/tests/benchmark/MediaBenchmarkTest/src/main/cpp/ |
D | NativeEncoder.cpp | 131 ifstream eleStream; in Java_com_android_media_benchmark_library_Native_Encode() local 132 eleStream.open(outputFilePath, ifstream::binary | ifstream::ate); in Java_com_android_media_benchmark_library_Native_Encode() 133 if (!eleStream.is_open()) { in Java_com_android_media_benchmark_library_Native_Encode() 145 size_t eleSize = eleStream.tellg(); in Java_com_android_media_benchmark_library_Native_Encode() 146 eleStream.seekg(0, ifstream::beg); in Java_com_android_media_benchmark_library_Native_Encode() 175 status = encoder->encode(sCodecName, eleStream, eleSize, asyncMode[i], encParams, in Java_com_android_media_benchmark_library_Native_Encode() 192 eleStream.close(); in Java_com_android_media_benchmark_library_Native_Encode()
|
/frameworks/av/media/tests/benchmark/src/native/encoder/ |
D | C2Encoder.cpp | 114 int32_t C2Encoder::encodeFrames(ifstream &eleStream, size_t inputBufferSize) { in encodeFrames() argument 172 eleStream.read(data, frameSize); in encodeFrames() 173 if (eleStream.gcount() != frameSize) { in encodeFrames()
|
D | C2Encoder.h | 41 int32_t encodeFrames(ifstream &eleStream, size_t inputBufferSize);
|
D | Encoder.h | 78 int32_t encode(std::string &codecName, std::ifstream &eleStream, size_t eleSize, bool asyncMode,
|
D | Encoder.cpp | 191 int32_t Encoder::encode(string &codecName, ifstream &eleStream, size_t eleSize, bool asyncMode, in encode() argument 194 mEleStream = &eleStream; in encode()
|
/frameworks/av/media/tests/benchmark/MediaBenchmarkTest/src/androidTest/java/com/android/media/benchmark/tests/ |
D | EncoderTest.java | 189 FileInputStream eleStream = new FileInputStream(rawFile); in testEncoder() local 243 encoder.setupEncoder(encodeOutputStream, eleStream); in testEncoder() 255 eleStream.close(); in testEncoder()
|