Lines Matching refs:decoder
58 bool decodeToMemory(const char* decoder, AMediaFormat* format, int frameLimit,
65 bool testSimpleDecode(const char* decoder, const char* testFile, const char* refFile,
67 bool testFlush(const char* decoder, const char* testFile, int colorFormat);
68 bool testOnlyEos(const char* decoder, const char* testFile, int colorFormat);
69 bool testSimpleDecodeQueueCSD(const char* decoder, const char* testFile, int colorFormat);
337 bool CodecDecoderTest::decodeToMemory(const char* decoder, AMediaFormat* format, int frameLimit, in decodeToMemory() argument
342 mCodec = AMediaCodec_createCodecByName(decoder); in decodeToMemory()
343 RETURN_IF_NULL(mCodec, StringFormat("unable to create codec %s", decoder)) in decodeToMemory()
356 bool CodecDecoderTest::testSimpleDecode(const char* decoder, const char* testFile, in testSimpleDecode() argument
374 mCodec = AMediaCodec_createCodecByName(decoder); in testSimpleDecode()
375 RETURN_IF_NULL(mCodec, StringFormat("unable to create codec %s", decoder)) in testSimpleDecode()
379 auto res = strcmp(name, decoder) != 0; in testSimpleDecode()
381 RETURN_IF_TRUE(res, StringFormat("Codec name mismatch act/got: %s/%s", decoder, name)) in testSimpleDecode()
385 ALOGD("Input format is same as default for format for %s", decoder); in testSimpleDecode()
431 bool CodecDecoderTest::testFlush(const char* decoder, const char* testFile, int colorFormat) { in testFlush() argument
446 RETURN_IF_FALSE(decodeToMemory(decoder, mInpDecFormat, INT32_MAX, ref, pts, mode), in testFlush()
447 StringFormat("decodeToMemory failed for file: %s codec: %s", testFile, decoder)) in testFlush()
456 mCodec = AMediaCodec_createCodecByName(decoder); in testFlush()
457 RETURN_IF_NULL(mCodec, StringFormat("unable to create codec %s", decoder)) in testFlush()
463 ALOGD("Input format is same as default for format for %s", decoder); in testFlush()
528 bool CodecDecoderTest::testOnlyEos(const char* decoder, const char* testFile, int colorFormat) { in testOnlyEos() argument
541 mCodec = AMediaCodec_createCodecByName(decoder); in testOnlyEos()
542 RETURN_IF_NULL(mCodec, StringFormat("unable to create codec %s", decoder)) in testOnlyEos()
558 bool CodecDecoderTest::testSimpleDecodeQueueCSD(const char* decoder, const char* testFile, in testSimpleDecodeQueueCSD() argument
593 mCodec = AMediaCodec_createCodecByName(decoder); in testSimpleDecodeQueueCSD()
594 RETURN_IF_NULL(mCodec, StringFormat("unable to create codec %s", decoder)) in testSimpleDecodeQueueCSD()
599 ALOGD("Input format is same as default for format for %s", decoder); in testSimpleDecodeQueueCSD()