Refactoring MediaCodec decoder
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
#include "TestFramework.h"
|
||||
#include "Decoder/AndroidMediaCodecAV1Decoder.h"
|
||||
#include "Decoder/MediaCodecAV1Decoder.h"
|
||||
#include "Common/VideoTypes.h"
|
||||
#include <android/hardware_buffer.h>
|
||||
#include <sys/system_properties.h>
|
||||
@@ -99,11 +99,11 @@ bool TestAHardwareBufferCreation(std::string& error_msg) {
|
||||
}
|
||||
|
||||
bool TestAndroidMediaCodecVulkanSetup(std::string& error_msg) {
|
||||
LOGI("Testing AndroidMediaCodecAV1Decoder Vulkan setup...");
|
||||
LOGI("Testing MediaCodecAV1Decoder Vulkan setup...");
|
||||
|
||||
// Create decoder instance
|
||||
auto decoder = std::make_unique<VavCore::AndroidMediaCodecAV1Decoder>();
|
||||
TEST_ASSERT_NOT_NULL(decoder.get(), "Failed to create AndroidMediaCodecAV1Decoder");
|
||||
auto decoder = std::make_unique<VavCore::MediaCodecAV1Decoder>();
|
||||
TEST_ASSERT_NOT_NULL(decoder.get(), "Failed to create MediaCodecAV1Decoder");
|
||||
|
||||
// Test video metadata
|
||||
VavCore::VideoMetadata metadata;
|
||||
@@ -177,8 +177,8 @@ bool TestVulkanDecodeToSurface(std::string& error_msg) {
|
||||
LOGI("Testing Vulkan decode to surface...");
|
||||
|
||||
// Create decoder instance
|
||||
auto decoder = std::make_unique<VavCore::AndroidMediaCodecAV1Decoder>();
|
||||
TEST_ASSERT_NOT_NULL(decoder.get(), "Failed to create AndroidMediaCodecAV1Decoder");
|
||||
auto decoder = std::make_unique<VavCore::MediaCodecAV1Decoder>();
|
||||
TEST_ASSERT_NOT_NULL(decoder.get(), "Failed to create MediaCodecAV1Decoder");
|
||||
|
||||
// Test video metadata
|
||||
VavCore::VideoMetadata metadata;
|
||||
@@ -250,8 +250,8 @@ bool TestVulkanSurfaceTypeOptimization(std::string& error_msg) {
|
||||
LOGI("Testing Vulkan surface type optimization...");
|
||||
|
||||
// Create decoder instance
|
||||
auto decoder = std::make_unique<VavCore::AndroidMediaCodecAV1Decoder>();
|
||||
TEST_ASSERT_NOT_NULL(decoder.get(), "Failed to create AndroidMediaCodecAV1Decoder");
|
||||
auto decoder = std::make_unique<VavCore::MediaCodecAV1Decoder>();
|
||||
TEST_ASSERT_NOT_NULL(decoder.get(), "Failed to create MediaCodecAV1Decoder");
|
||||
|
||||
// Test video metadata
|
||||
VavCore::VideoMetadata metadata;
|
||||
|
||||
Reference in New Issue
Block a user