openMSX
Classes | Namespaces | Functions | Variables
yuv2rgb.cc File Reference
#include "yuv2rgb.hh"
#include "RawFrame.hh"
#include "Math.hh"
#include <cassert>
#include <cstdint>
#include <SDL.h>
Include dependency graph for yuv2rgb.cc:

Go to the source code of this file.

Classes

struct  openmsx::yuv2rgb::Coefs
 

Namespaces

 openmsx::yuv2rgb
 

Functions

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

Variables

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