#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "media/gpu/vaapi/test/fake_libva_driver/vpx_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/libvpx/source/libvpx/vpx/vp8dx.h"
#include "third_party/libvpx/source/libvpx/vpx/vpx_decoder.h"
#include "third_party/libvpx/source/libvpx/vpx/vpx_image.h"
#include "third_party/libyuv/include/libyuv.h"
namespace media::internal {
VpxDecoderDelegate::VpxDecoderDelegate(int picture_width_hint,
int picture_height_hint,
VAProfile profile) { … }
VpxDecoderDelegate::~VpxDecoderDelegate() { … }
void VpxDecoderDelegate::SetRenderTarget(const FakeSurface& surface) { … }
void VpxDecoderDelegate::EnqueueWork(
const std::vector<raw_ptr<const FakeBuffer>>& buffers) { … }
void VpxDecoderDelegate::Run() { … }
}