#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "media/gpu/vaapi/test/fake_libva_driver/av1_decoder_delegate.h"
#include "base/check_op.h"
#include "base/numerics/safe_conversions.h"
#include "media/gpu/vaapi/test/fake_libva_driver/fake_buffer.h"
#include "media/gpu/vaapi/test/fake_libva_driver/fake_surface.h"
#include "third_party/dav1d/libdav1d/include/dav1d/dav1d.h"
#include "third_party/libyuv/include/libyuv.h"
namespace media::internal {
namespace {
struct ScopedDav1dDataFree { … };
struct ScopedDav1dPictureFree { … };
void NullFreeCallback(const uint8_t* buffer, void* opaque) { … }
}
void Av1DecoderDelegate::Dav1dContextDeleter::operator()(Dav1dContext* ptr) { … }
Av1DecoderDelegate::Av1DecoderDelegate(VAProfile profile) { … }
Av1DecoderDelegate::~Av1DecoderDelegate() { … }
void Av1DecoderDelegate::SetRenderTarget(const FakeSurface& surface) { … }
void Av1DecoderDelegate::EnqueueWork(
const std::vector<raw_ptr<const FakeBuffer>>& buffers) { … }
void Av1DecoderDelegate::Run() { … }
}