Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
KODI::RETRO::CRenderUtils Class Reference

#include <RenderUtils.h>

Static Public Member Functions

static void CalculateStretchMode (STRETCHMODE stretchMode, unsigned int rotationDegCCW, unsigned int sourceWidth, unsigned int sourceHeight, float screenWidth, float screenHeight, float &pixelRatio, float &zoomAmount)
 
static void CalcNormalRenderRect (const CRect &viewRect, float outputFrameRatio, float zoomAmount, CRect &destRect)
 
static void ClipRect (const CRect &viewRect, CRect &sourceRect, CRect &destRect)
 
static void CropSource (CRect &sourceRect, unsigned int rotationDegCCW, float viewWidth, float viewHeight, float sourceWidth, float sourceHeight, float destWidth, float destHeight)
 
static std::array< CPoint, 4 > ReorderDrawPoints (const CRect &destRect, unsigned int orientationDegCCW)
 

Member Function Documentation

◆ CalcNormalRenderRect()

void CRenderUtils::CalcNormalRenderRect ( const CRect & viewRect,
float outputFrameRatio,
float zoomAmount,
CRect & destRect )
static

◆ CalculateStretchMode()

void CRenderUtils::CalculateStretchMode ( STRETCHMODE stretchMode,
unsigned int rotationDegCCW,
unsigned int sourceWidth,
unsigned int sourceHeight,
float screenWidth,
float screenHeight,
float & pixelRatio,
float & zoomAmount )
static

◆ ClipRect()

void CRenderUtils::ClipRect ( const CRect & viewRect,
CRect & sourceRect,
CRect & destRect )
static

◆ CropSource()

void CRenderUtils::CropSource ( CRect & sourceRect,
unsigned int rotationDegCCW,
float viewWidth,
float viewHeight,
float sourceWidth,
float sourceHeight,
float destWidth,
float destHeight )
static

◆ ReorderDrawPoints()

std::array< CPoint, 4 > CRenderUtils::ReorderDrawPoints ( const CRect & destRect,
unsigned int orientationDegCCW )
static

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