10 #include "RendererHQ.h" 11 #include "cores/VideoPlayer/Buffers/VideoBuffer.h" 19 #include <libavutil/pixfmt.h> 35 bool Supports(ESCALINGMETHOD method)
const override;
36 bool Configure(
const VideoPicture& picture,
float fps,
unsigned orientation)
override;
39 static void GetWeight(std::map<RenderMethod, int>& weights,
const VideoPicture& picture);
44 void CheckVideoParameters()
override;
45 void UpdateVideoFilters()
override;
47 static bool IsHWPicSupported(
const VideoPicture& picture);
50 static AVColorPrimaries GetSrcPrimaries(AVColorPrimaries srcPrimaries,
unsigned int width,
unsigned int height);
51 DXGI_FORMAT CalcIntermediateTargetFormat()
const;
53 AVColorPrimaries m_srcPrimaries = AVCOL_PRI_BT709;
54 std::unique_ptr<CYUV2RGBShader> m_colorShader;
60 explicit CRenderBufferImpl(AVPixelFormat av_pix_format,
unsigned width,
unsigned height);
63 void AppendPicture(
const VideoPicture& picture)
override;
64 bool UploadBuffer()
override;
65 unsigned GetViewCount()
const override;
66 ID3D11View* GetView(
unsigned viewIdx)
override;
67 void ReleasePicture()
override;
71 bool UploadFromBuffer()
const;
73 unsigned m_viewCount = 0;
75 Microsoft::WRL::ComPtr<ID3D11ShaderResourceView> m_planes[2];
Definition: D3DResource.h:90
Definition: RendererBase.h:57
Definition: RendererHQ.h:12
Definition: RendererShaders.h:29
Definition: DVDVideoCodec.h:36
Definition: RendererShaders.h:57
Definition: VideoSettings.h:194
Definition: RendererBase.h:111