Lines Matching refs:encoder

63     bool encodeToMemory(const char* file, const char* encoder, int frameLimit, AMediaFormat* format,
74 bool testSimpleEncode(const char* encoder, const char* srcPath);
75 bool testFlush(const char* encoder, const char* srcPath);
76 bool testReconfigure(const char* encoder, const char* srcPath);
77 bool testSetForceSyncFrame(const char* encoder, const char* srcPath);
78 bool testAdaptiveBitRate(const char* encoder, const char* srcPath);
79 bool testOnlyEos(const char* encoder);
349 bool CodecEncoderTest::encodeToMemory(const char* file, const char* encoder, int32_t frameLimit, in encodeToMemory() argument
355 mCodec = AMediaCodec_createCodecByName(encoder); in encodeToMemory()
357 ALOGE("unable to create codec %s", encoder); in encodeToMemory()
387 bool CodecEncoderTest::testSimpleEncode(const char* encoder, const char* srcPath) { in testSimpleEncode() argument
409 AMediaFormat_toString(format), encoder, srcPath, in testSimpleEncode()
417 mCodec = AMediaCodec_createCodecByName(encoder); in testSimpleEncode()
419 ALOGE("%s unable to create media codec by name %s", log, encoder); in testSimpleEncode()
425 if (!name || strcmp(name, encoder) != 0) { in testSimpleEncode()
426 ALOGE("%s error codec-name act/got: %s/%s", log, name, encoder); in testSimpleEncode()
462 bool CodecEncoderTest::testFlush(const char* encoder, const char* srcPath) { in testFlush() argument
476 encoder, srcPath, (isAsync ? "async" : "sync")); in testFlush()
480 mCodec = AMediaCodec_createCodecByName(encoder); in testFlush()
482 ALOGE("unable to create media codec by name %s", encoder); in testFlush()
545 bool CodecEncoderTest::testReconfigure(const char* encoder, const char* srcPath) { in testReconfigure() argument
553 if (!encodeToMemory(srcPath, encoder, INT32_MAX, format, configRef)) { in testReconfigure()
554 ALOGE("encodeToMemory failed for file: %s codec: %s \n format: %s", srcPath, encoder, in testReconfigure()
566 if (!encodeToMemory(srcPath, encoder, INT32_MAX, format, ref)) { in testReconfigure()
567 ALOGE("encodeToMemory failed for file: %s codec: %s \n format: %s", srcPath, encoder, in testReconfigure()
585 encoder, srcPath, (isAsync ? "async" : "sync")); in testReconfigure()
589 mCodec = AMediaCodec_createCodecByName(encoder); in testReconfigure()
591 ALOGE("%s unable to create media codec by name %s", log, encoder); in testReconfigure()
663 bool CodecEncoderTest::testOnlyEos(const char* encoder) { in testOnlyEos() argument
678 "format: %s \n codec: %s, mode: %s:: ", AMediaFormat_toString(format), encoder, in testOnlyEos()
685 mCodec = AMediaCodec_createCodecByName(encoder); in testOnlyEos()
687 ALOGE("unable to create media codec by name %s", encoder); in testOnlyEos()
710 bool CodecEncoderTest::testSetForceSyncFrame(const char* encoder, const char* srcPath) { in testSetForceSyncFrame() argument
733 encoder, srcPath, (isAsync ? "async" : "sync")); in testSetForceSyncFrame()
738 mCodec = AMediaCodec_createCodecByName(encoder); in testSetForceSyncFrame()
740 ALOGE("%s unable to create media codec by name %s", log, encoder); in testSetForceSyncFrame()
787 bool CodecEncoderTest::testAdaptiveBitRate(const char* encoder, const char* srcPath) { in testAdaptiveBitRate() argument
810 encoder, srcPath, (isAsync ? "async" : "sync")); in testAdaptiveBitRate()
815 mCodec = AMediaCodec_createCodecByName(encoder); in testAdaptiveBitRate()
817 ALOGE("%s unable to create media codec by name %s", log, encoder); in testAdaptiveBitRate()