IPU: Documented YUV colour space used by the IPU since I researched this when fixing gsdx recording.

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3531 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
sudonim1 2010-07-18 17:57:35 +00:00
parent 6972792a4e
commit b9b4d0f1d8
1 changed files with 4 additions and 0 deletions

View File

@ -23,6 +23,10 @@
#include "IPU.h" #include "IPU.h"
#include "yuv2rgb.h" #include "yuv2rgb.h"
// The IPU's colour space conversion conforms to ITU-R Recommendation BT.601 if anyone wants to make a
// faster or "more accurate" implementation, but this is the precise documented integer method used by
// the hardware and is fast enough with SSE2.
#define IPU_Y_BIAS 16 #define IPU_Y_BIAS 16
#define IPU_C_BIAS 128 #define IPU_C_BIAS 128
#define IPU_Y_COEFF 0x95 // 1.1640625 #define IPU_Y_COEFF 0x95 // 1.1640625