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

#include <RendererMediaCodecSurface.h>

Inheritance diagram for CRendererMediaCodecSurface:
CBaseRenderer

Public Member Functions

 CRendererMediaCodecSurface ()
 
 ~CRendererMediaCodecSurface () override
 
bool RenderCapture (int index, CRenderCapture *capture) override
 
void AddVideoPicture (const VideoPicture &picture, int index) override
 
void ReleaseBuffer (int idx) override
 
bool Configure (const VideoPicture &picture, float fps, unsigned int orientation) override
 
bool IsConfigured () override
 
bool ConfigChanged (const VideoPicture &picture) override
 
CRenderInfo GetRenderInfo () override
 
void UnInit () override
 
void Update () override
 
void RenderUpdate (int index, int index2, bool clear, unsigned int flags, unsigned int alpha) override
 
bool SupportsMultiPassRendering () override
 
bool IsGuiLayer () override
 
bool Supports (ESCALINGMETHOD method) const override
 
bool Supports (ERENDERFEATURE feature) const override
 
- Public Member Functions inherited from CBaseRenderer
 CBaseRenderer ()
 
virtual ~CBaseRenderer ()
 
virtual bool IsPictureHW (const VideoPicture &picture)
 
virtual bool Flush (bool saveBuffers)
 
virtual void SetBufferSize (int numBuffers)
 
virtual bool NeedBuffer (int idx)
 
virtual bool WantsDoublePass ()
 
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)
 
virtual DEBUG_INFO_VIDEO GetDebugInfo (int idx)
 
virtual CRenderCaptureGetRenderCapture ()
 

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 ReorderDrawPoints () override
 
- 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 EShaderFormat GetShaderFormat ()
 
void MarkDirty ()
 
void EnableAlwaysClip ()
 
void saveRotatedCoords ()
 
void syncDestRectToRotatedPoints ()
 
void restoreRotatedCoords ()
 

Additional Inherited Members

- 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

◆ CRendererMediaCodecSurface()

CRendererMediaCodecSurface::CRendererMediaCodecSurface ( )

◆ ~CRendererMediaCodecSurface()

CRendererMediaCodecSurface::~CRendererMediaCodecSurface ( )
override

Member Function Documentation

◆ AddVideoPicture()

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

Implements CBaseRenderer.

◆ ConfigChanged()

bool CRendererMediaCodecSurface::ConfigChanged ( const VideoPicture & picture)
inlineoverridevirtual

Implements CBaseRenderer.

◆ Configure()

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

Implements CBaseRenderer.

◆ Create()

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

◆ GetRenderInfo()

CRenderInfo CRendererMediaCodecSurface::GetRenderInfo ( )
overridevirtual

Reimplemented from CBaseRenderer.

◆ IsConfigured()

bool CRendererMediaCodecSurface::IsConfigured ( )
inlineoverridevirtual

Implements CBaseRenderer.

◆ IsGuiLayer()

bool CRendererMediaCodecSurface::IsGuiLayer ( )
inlineoverridevirtual

Reimplemented from CBaseRenderer.

◆ Register()

bool CRendererMediaCodecSurface::Register ( )
static

◆ ReleaseBuffer()

void CRendererMediaCodecSurface::ReleaseBuffer ( int idx)
overridevirtual

Reimplemented from CBaseRenderer.

◆ RenderCapture()

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

Implements CBaseRenderer.

◆ RenderUpdate()

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

Implements CBaseRenderer.

◆ ReorderDrawPoints()

void CRendererMediaCodecSurface::ReorderDrawPoints ( )
overrideprotectedvirtual

Reimplemented from CBaseRenderer.

◆ Supports() [1/2]

bool CRendererMediaCodecSurface::Supports ( ERENDERFEATURE feature) const
overridevirtual

Reimplemented from CBaseRenderer.

◆ Supports() [2/2]

bool CRendererMediaCodecSurface::Supports ( ESCALINGMETHOD method) const
inlineoverridevirtual

Implements CBaseRenderer.

◆ SupportsMultiPassRendering()

bool CRendererMediaCodecSurface::SupportsMultiPassRendering ( )
inlineoverridevirtual

Implements CBaseRenderer.

◆ UnInit()

void CRendererMediaCodecSurface::UnInit ( )
inlineoverridevirtual

Implements CBaseRenderer.

◆ Update()

void CRendererMediaCodecSurface::Update ( )
inlineoverridevirtual

Implements CBaseRenderer.


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