#include "media/gpu/test/video_decode_accelerator_test_suite.h"
#include "base/test/task_environment.h"
#include "base/base_switches.h"
#include "base/command_line.h"
#include "base/strings/string_number_conversions.h"
#include "build/build_config.h"
#include "media/base/media_switches.h"
#include "media/base/test_data_util.h"
#include "media/gpu/test/video_bitstream.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace media {
namespace test {
namespace {
constexpr const char* usage_msg = …;
const std::string help_msg = …;
}
std::unique_ptr<base::test::TaskEnvironment>
VideoDecodeAcceleratorTestSuite::task_environment_;
VideoDecodeAcceleratorTestSuite* VideoDecodeAcceleratorTestSuite::Create(
int argc,
char** argv) { … }
VideoDecodeAcceleratorTestSuite::VideoDecodeAcceleratorTestSuite(
int argc,
char** argv,
const base::FilePath& video_path,
const base::FilePath& video_metadata_path,
VideoPlayerTestEnvironment::ValidatorType validator_type,
const DecoderImplementation implementation,
bool linear_output,
const base::FilePath& output_folder,
const FrameOutputConfig& frame_output_config,
const std::vector<base::test::FeatureRef>& enabled_features,
const std::vector<base::test::FeatureRef>& disabled_features)
: … { … }
VideoDecodeAcceleratorTestSuite::~VideoDecodeAcceleratorTestSuite() = default;
const media::test::VideoBitstream* VideoDecodeAcceleratorTestSuite::Video()
const { … }
bool VideoDecodeAcceleratorTestSuite::IsValidatorEnabled() const { … }
VideoPlayerTestEnvironment::ValidatorType
VideoDecodeAcceleratorTestSuite::GetValidatorType() const { … }
DecoderImplementation
VideoDecodeAcceleratorTestSuite::GetDecoderImplementation() const { … }
bool VideoDecodeAcceleratorTestSuite::ShouldOutputLinearBuffers() const { … }
FrameOutputMode VideoDecodeAcceleratorTestSuite::GetFrameOutputMode() const { … }
VideoFrameFileWriter::OutputFormat
VideoDecodeAcceleratorTestSuite::GetFrameOutputFormat() const { … }
uint64_t VideoDecodeAcceleratorTestSuite::GetFrameOutputLimit() const { … }
const base::FilePath& VideoDecodeAcceleratorTestSuite::OutputFolder() const { … }
base::FilePath VideoDecodeAcceleratorTestSuite::GetTestOutputFilePath() const { … }
bool VideoDecodeAcceleratorTestSuite::ValidVideoTestEnv() const { … }
void VideoDecodeAcceleratorTestSuite::Initialize() { … }
void VideoDecodeAcceleratorTestSuite::Shutdown() { … }
}
}