10 #include "RendererHQ.h" 11 #include "VideoRenderers/HwDecRender/DXVAHD.h" 19 #include <libavutil/pixfmt.h> 31 bool Supports(ESCALINGMETHOD method)
const override;
32 bool Supports(ERENDERFEATURE feature)
const override;
33 bool WantsDoublePass()
override {
return true; }
34 bool Configure(
const VideoPicture& picture,
float fps,
unsigned orientation)
override;
35 bool NeedBuffer(
int idx)
override;
38 static void GetWeight(std::map<RenderMethod, int>& weights,
const VideoPicture& picture);
39 static DXGI_FORMAT GetDXGIFormat(AVPixelFormat format, DXGI_FORMAT default_fmt);
44 void CheckVideoParameters()
override;
47 virtual std::string GetRenderMethodDebugInfo()
const;
51 CRect ApplyTransforms(
const CRect& destRect)
const;
59 std::unique_ptr<DXVA::CProcessorHD> m_processor;
60 std::shared_ptr<DXVA::CEnumeratorHD> m_enumerator;
69 explicit CRenderBufferImpl(AVPixelFormat av_pix_format,
unsigned width,
unsigned height);
72 bool UploadBuffer()
override;
73 HRESULT GetResource(ID3D11Resource** ppResource,
unsigned* index)
const override;
75 static DXGI_FORMAT GetDXGIFormat(AVPixelFormat format, DXGI_FORMAT default_fmt = DXGI_FORMAT_UNKNOWN);
78 bool UploadToTexture();
Definition: D3DResource.h:90
Definition: RendererDXVA.h:24
Definition: RendererBase.h:57
Definition: RenderInfo.h:19
Definition: RendererDXVA.h:66
Definition: DXVAEnumeratorHD.h:85
Definition: RendererHQ.h:12
Definition: DVDVideoCodec.h:36
Definition: DXVAEnumeratorHD.h:116
Definition: VideoSettings.h:194
Definition: RendererBase.h:111