#include "media/gpu/test/image.h"
#include <memory>
#include "base/files/file_util.h"
#include "base/hash/md5.h"
#include "base/json/json_reader.h"
#include "base/values.h"
#include "media/base/test_data_util.h"
#include "media/gpu/macros.h"
namespace media {
namespace test {
namespace {
std::optional<base::FilePath> ResolveFilePath(const base::FilePath& file_path) { … }
VideoPixelFormat ConvertStringtoPixelFormat(const std::string& pixel_format) { … }
}
constexpr const base::FilePath::CharType* kMetadataSuffix = …);
Image::Image(const base::FilePath& file_path) : … { … }
Image::~Image() { … }
bool Image::Load() { … }
bool Image::IsLoaded() const { … }
bool Image::LoadMetadata() { … }
bool Image::IsMetadataLoaded() const { … }
uint8_t* Image::Data() const { … }
size_t Image::DataSize() const { … }
VideoPixelFormat Image::PixelFormat() const { … }
const gfx::Size& Image::Size() const { … }
const gfx::Rect& Image::VisibleRect() const { … }
VideoRotation Image::Rotation() const { … }
const char* Image::Checksum() const { … }
}
}