2 * Copyright (C) 2005-2018 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
11 #include "cores/VideoPlayer/VideoRenderers/BaseRenderer.h"
13 class CMediaCodecVideoBuffer
;
15 class CRendererMediaCodecSurface
: public CBaseRenderer
18 CRendererMediaCodecSurface();
19 ~CRendererMediaCodecSurface() override
;
21 static CBaseRenderer
* Create(CVideoBuffer
*buffer
);
22 static bool Register();
24 bool RenderCapture(int index
, CRenderCapture
* capture
) override
;
25 void AddVideoPicture(const VideoPicture
& picture
, int index
) override
;
26 void ReleaseBuffer(int idx
) override
;
27 bool Configure(const VideoPicture
& picture
, float fps
, unsigned int orientation
) override
;
28 bool IsConfigured() override
{ return m_bConfigured
; }
29 bool ConfigChanged(const VideoPicture
& picture
) override
{ return false; }
30 CRenderInfo
GetRenderInfo() override
;
31 void UnInit() override
{};
32 void Update() override
{};
33 void RenderUpdate(int index
, int index2
, bool clear
, unsigned int flags
, unsigned int alpha
) override
;
34 bool SupportsMultiPassRendering() override
{ return false; }
37 bool IsGuiLayer() override
{ return false; }
40 bool Supports(ESCALINGMETHOD method
) const override
{ return false; }
41 bool Supports(ERENDERFEATURE feature
) const override
;
44 void ReorderDrawPoints() override
;
48 void ReleaseVideoBuffer(int idx
, bool render
);
50 bool m_bConfigured
= false;
56 CVideoBuffer
*videoBuffer
= nullptr;