Refactoring MediaCodec decoder

This commit is contained in:
2025-09-30 19:54:29 +09:00
parent 25bbd6901e
commit f507b31b7f
65 changed files with 7822 additions and 2222 deletions

View File

@@ -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;