#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "media/gpu/vaapi/test/fake_libva_driver/fake_image.h"
#include "base/memory/ptr_util.h"
#include "base/numerics/checked_math.h"
#include "media/gpu/vaapi/test/fake_libva_driver/fake_buffer.h"
#include "media/gpu/vaapi/test/fake_libva_driver/fake_driver.h"
namespace media::internal {
std::unique_ptr<FakeImage> FakeImage::Create(IdType id,
const VAImageFormat& format,
int width,
int height,
FakeDriver& fake_driver,
VAImage* va_image) { … }
FakeImage::FakeImage(FakeImage::IdType id,
const VAImageFormat& format,
int width,
int height,
std::vector<Plane> planes,
const FakeBuffer& buffer,
FakeDriver& driver)
: … { … }
FakeImage::~FakeImage() { … }
FakeImage::IdType FakeImage::GetID() const { … }
const VAImageFormat& FakeImage::GetFormat() const { … }
int FakeImage::GetWidth() const { … }
int FakeImage::GetHeight() const { … }
const FakeBuffer& FakeImage::GetBuffer() const { … }
uint32_t FakeImage::GetPlaneStride(size_t plane) const { … }
uint32_t FakeImage::GetPlaneOffset(size_t plane) const { … }
FakeImage::Plane::Plane(uint32_t stride, uint32_t offset)
: … { … }
}