openMSX
Classes | Functions | Variables
openmsx::yuv2rgb Namespace Reference

Classes

struct  Coefs
 

Functions

void convert (const th_ycbcr_buffer &input, RawFrame &output)
 

Variables

constexpr int PREC = 15
 
constexpr int COEF_Y = int(1.164 * (1 << PREC) + 0.5)
 
constexpr int COEF_RV = int(1.596 * (1 << PREC) + 0.5)
 
constexpr int COEF_GU = int(0.391 * (1 << PREC) + 0.5)
 
constexpr int COEF_GV = int(0.813 * (1 << PREC) + 0.5)
 
constexpr int COEF_BU = int(2.018 * (1 << PREC) + 0.5)
 

Function Documentation

◆ convert()

void openmsx::yuv2rgb::convert ( const th_ycbcr_buffer &  input,
RawFrame output 
)

Definition at line 341 of file yuv2rgb.cc.

References openmsx::FrameSource::getSDLPixelFormat().

Referenced by openmsx::OggReader::getFrameNo().

Variable Documentation

◆ COEF_BU

constexpr int openmsx::yuv2rgb::COEF_BU = int(2.018 * (1 << PREC) + 0.5)

Definition at line 260 of file yuv2rgb.cc.

◆ COEF_GU

constexpr int openmsx::yuv2rgb::COEF_GU = int(0.391 * (1 << PREC) + 0.5)

Definition at line 258 of file yuv2rgb.cc.

◆ COEF_GV

constexpr int openmsx::yuv2rgb::COEF_GV = int(0.813 * (1 << PREC) + 0.5)

Definition at line 259 of file yuv2rgb.cc.

◆ COEF_RV

constexpr int openmsx::yuv2rgb::COEF_RV = int(1.596 * (1 << PREC) + 0.5)

Definition at line 257 of file yuv2rgb.cc.

◆ COEF_Y

constexpr int openmsx::yuv2rgb::COEF_Y = int(1.164 * (1 << PREC) + 0.5)

Definition at line 256 of file yuv2rgb.cc.

◆ PREC

constexpr int openmsx::yuv2rgb::PREC = 15

Definition at line 255 of file yuv2rgb.cc.