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

#include <RenderTranslator.h>

Static Public Member Functions

static const char * TranslatePixelFormat (AVPixelFormat format)
 Translate a pixel format to a string suitable for logging.
 
static const char * TranslateScalingMethod (SCALINGMETHOD scalingMethod)
 Translate a scaling method to a string suitable for logging.
 
static unsigned int TranslateWidthToBytes (unsigned int width, AVPixelFormat format)
 Translate a width in pixels to a width in bytes.
 

Member Function Documentation

◆ TranslatePixelFormat()

const char * CRenderTranslator::TranslatePixelFormat ( AVPixelFormat format)
static

Translate a pixel format to a string suitable for logging.

◆ TranslateScalingMethod()

const char * CRenderTranslator::TranslateScalingMethod ( SCALINGMETHOD scalingMethod)
static

Translate a scaling method to a string suitable for logging.

◆ TranslateWidthToBytes()

unsigned int CRenderTranslator::TranslateWidthToBytes ( unsigned int width,
AVPixelFormat format )
static

Translate a width in pixels to a width in bytes.

Parameters
widthThe width in pixels
formatThe pixel format
Returns
The width in bytes, or 0 if unknown

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