kodi
Static Public Member Functions | List of all members
KODI::RETRO::CRenderTranslator Class Reference

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. More...
 

Member Function Documentation

◆ 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: