Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
CWinRenderer Class Reference

#include <WinRenderer.h>

Inheritance diagram for CWinRenderer:
CBaseRenderer

Public Member Functions

 CWinRenderer ()
 
 ~CWinRenderer ()
 
void Update () override
 
bool RenderCapture (int index, CRenderCapture *capture) override
 
bool Configure (const VideoPicture &picture, float fps, unsigned int orientation) override
 
void AddVideoPicture (const VideoPicture &picture, int index) override
 
void UnInit () override
 
bool IsConfigured () override
 
bool Flush (bool saveBuffers) override
 
CRenderInfo GetRenderInfo () override
 
void RenderUpdate (int index, int index2, bool clear, unsigned int flags, unsigned int alpha) override
 
void SetBufferSize (int numBuffers) override
 
void ReleaseBuffer (int idx) override
 
bool NeedBuffer (int idx) override
 
bool SupportsMultiPassRendering () override
 
bool Supports (ERENDERFEATURE feature) const override
 
bool Supports (ESCALINGMETHOD method) const override
 
bool WantsDoublePass () override
 
bool ConfigChanged (const VideoPicture &picture) override
 
DEBUG_INFO_VIDEO GetDebugInfo (int idx) override
 
CRenderCaptureGetRenderCapture () override
 
- Public Member Functions inherited from CBaseRenderer
 CBaseRenderer ()
 
virtual ~CBaseRenderer ()
 
virtual bool IsPictureHW (const VideoPicture &picture)
 
virtual bool IsGuiLayer ()
 
void SetViewMode (int viewMode)
 
void GetVideoRect (CRect &source, CRect &dest, CRect &view) const
 Get video rectangle and view window.
 
float GetAspectRatio () const
 
unsigned int GetOrientation () const
 
void SetVideoSettings (const CVideoSettings &settings)
 

Static Public Member Functions

static CBaseRendererCreate (CVideoBuffer *buffer)
 
static bool Register ()
 
- Static Public Member Functions inherited from CBaseRenderer
static void SettingOptionsRenderMethodsFiller (const std::shared_ptr< const CSetting > &setting, std::vector< IntegerSettingOption > &list, int &current, void *data)
 

Protected Member Functions

void PreInit ()
 
int NextBuffer () const
 
CRendererBaseSelectRenderer (const VideoPicture &picture)
 
CRect GetScreenRect () const
 
- Protected Member Functions inherited from CBaseRenderer
void CalcDestRect (float offsetX, float offsetY, float width, float height, float inputFrameRatio, float zoomAmount, float verticalShift, CRect &destRect)
 
void CalcNormalRenderRect (float offsetX, float offsetY, float width, float height, float inputFrameRatio, float zoomAmount, float verticalShift)
 
void CalculateFrameAspectRatio (unsigned int desired_width, unsigned int desired_height)
 
virtual void ManageRenderArea ()
 
virtual void ReorderDrawPoints ()
 
virtual EShaderFormat GetShaderFormat ()
 
void MarkDirty ()
 
void EnableAlwaysClip ()
 
void saveRotatedCoords ()
 
void syncDestRectToRotatedPoints ()
 
void restoreRotatedCoords ()
 

Protected Attributes

bool m_bConfigured = false
 
std::unique_ptr< CRendererBasem_renderer
 
- Protected Attributes inherited from CBaseRenderer
unsigned int m_sourceWidth = 720
 
unsigned int m_sourceHeight = 480
 
float m_sourceFrameRatio = 1.0f
 
float m_fps = 0.0f
 
unsigned int m_renderOrientation = 0
 
CPoint m_rotatedDestCoords [4]
 
CPoint m_savedRotatedDestCoords [4]
 
CRect m_destRect
 
CRect m_sourceRect
 
CRect m_viewRect
 
unsigned m_iFlags = 0
 
AVPixelFormat m_format = AV_PIX_FMT_NONE
 
CVideoSettings m_videoSettings
 

Constructor & Destructor Documentation

◆ CWinRenderer()

CWinRenderer::CWinRenderer ( )

◆ ~CWinRenderer()

CWinRenderer::~CWinRenderer ( )

Member Function Documentation

◆ AddVideoPicture()

void CWinRenderer::AddVideoPicture ( const VideoPicture & picture,
int index )
overridevirtual

Implements CBaseRenderer.

◆ ConfigChanged()

bool CWinRenderer::ConfigChanged ( const VideoPicture & picture)
overridevirtual

Implements CBaseRenderer.

◆ Configure()

bool CWinRenderer::Configure ( const VideoPicture & picture,
float fps,
unsigned int orientation )
overridevirtual

Implements CBaseRenderer.

◆ Create()

CBaseRenderer * CWinRenderer::Create ( CVideoBuffer * buffer)
static

◆ Flush()

bool CWinRenderer::Flush ( bool saveBuffers)
overridevirtual

Reimplemented from CBaseRenderer.

◆ GetDebugInfo()

DEBUG_INFO_VIDEO CWinRenderer::GetDebugInfo ( int idx)
overridevirtual

Reimplemented from CBaseRenderer.

◆ GetRenderCapture()

CRenderCapture * CWinRenderer::GetRenderCapture ( )
overridevirtual

Reimplemented from CBaseRenderer.

◆ GetRenderInfo()

CRenderInfo CWinRenderer::GetRenderInfo ( )
overridevirtual

Reimplemented from CBaseRenderer.

◆ GetScreenRect()

CRect CWinRenderer::GetScreenRect ( ) const
protected

◆ IsConfigured()

bool CWinRenderer::IsConfigured ( )
inlineoverridevirtual

Implements CBaseRenderer.

◆ NeedBuffer()

bool CWinRenderer::NeedBuffer ( int idx)
overridevirtual

Reimplemented from CBaseRenderer.

◆ NextBuffer()

int CWinRenderer::NextBuffer ( ) const
protected

◆ PreInit()

void CWinRenderer::PreInit ( )
protected

◆ Register()

bool CWinRenderer::Register ( )
static

◆ ReleaseBuffer()

void CWinRenderer::ReleaseBuffer ( int idx)
overridevirtual

Reimplemented from CBaseRenderer.

◆ RenderCapture()

bool CWinRenderer::RenderCapture ( int index,
CRenderCapture * capture )
overridevirtual

Implements CBaseRenderer.

◆ RenderUpdate()

void CWinRenderer::RenderUpdate ( int index,
int index2,
bool clear,
unsigned int flags,
unsigned int alpha )
overridevirtual

Implements CBaseRenderer.

◆ SelectRenderer()

CRendererBase * CWinRenderer::SelectRenderer ( const VideoPicture & picture)
protected

◆ SetBufferSize()

void CWinRenderer::SetBufferSize ( int numBuffers)
overridevirtual

Reimplemented from CBaseRenderer.

◆ Supports() [1/2]

bool CWinRenderer::Supports ( ERENDERFEATURE feature) const
overridevirtual

Reimplemented from CBaseRenderer.

◆ Supports() [2/2]

bool CWinRenderer::Supports ( ESCALINGMETHOD method) const
overridevirtual

Implements CBaseRenderer.

◆ SupportsMultiPassRendering()

bool CWinRenderer::SupportsMultiPassRendering ( )
inlineoverridevirtual

Implements CBaseRenderer.

◆ UnInit()

void CWinRenderer::UnInit ( )
overridevirtual

Implements CBaseRenderer.

◆ Update()

void CWinRenderer::Update ( )
overridevirtual

Implements CBaseRenderer.

◆ WantsDoublePass()

bool CWinRenderer::WantsDoublePass ( )
overridevirtual

Reimplemented from CBaseRenderer.

Member Data Documentation

◆ m_bConfigured

bool CWinRenderer::m_bConfigured = false
protected

◆ m_renderer

std::unique_ptr<CRendererBase> CWinRenderer::m_renderer
protected

The documentation for this class was generated from the following files: