#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "media/gpu/vaapi/test/vp9_decoder.h"
#include <va/va.h>
#include "media/gpu/macros.h"
#include "media/gpu/vaapi/test/macros.h"
#include "media/gpu/vaapi/test/scoped_va_config.h"
#include "media/gpu/vaapi/test/scoped_va_context.h"
#include "media/gpu/vaapi/test/shared_va_surface.h"
#include "media/gpu/vaapi/test/vaapi_device.h"
#include "media/parsers/ivf_parser.h"
namespace media {
namespace vaapi_test {
namespace {
VAProfile GetProfile(Vp9FrameHeader frame_hdr) { … }
unsigned int GetFormatForProfile(VAProfile profile) { … }
}
Vp9Decoder::Vp9Decoder(std::unique_ptr<IvfParser> ivf_parser,
const VaapiDevice& va_device,
SharedVASurface::FetchPolicy fetch_policy)
: … { … }
Vp9Decoder::~Vp9Decoder() { … }
Vp9Parser::Result Vp9Decoder::ReadNextFrame(Vp9FrameHeader& vp9_frame_header,
gfx::Size& size) { … }
void Vp9Decoder::RefreshReferenceSlots(uint8_t refresh_frame_flags,
scoped_refptr<SharedVASurface> surface) { … }
VideoDecoder::Result Vp9Decoder::DecodeNextFrame() { … }
}
}