chromium/media/gpu/test/image.cc

// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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 {

// Resolve the specified test file path to an absolute path. The path can be
// either an absolute path, a path relative to the current directory, or a path
// relative to the test data path.
std::optional<base::FilePath> ResolveFilePath(const base::FilePath& file_path) {}

// Converts the |pixel_format| string into a VideoPixelFormat.
VideoPixelFormat ConvertStringtoPixelFormat(const std::string& pixel_format) {}

}  // namespace

// Suffix to append to the image file path to get the metadata file path.
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 {}

}  // namespace test
}  // namespace media