diff options
author | Matthew Hoops | 2010-05-23 18:33:55 +0000 |
---|---|---|
committer | Matthew Hoops | 2010-05-23 18:33:55 +0000 |
commit | 2f31b05651baf87ea07bc00cced798955a5fa6be (patch) | |
tree | eedade6bd746422fe45e8c48c76d1dd667a45b20 /graphics/conversion.h | |
parent | e2a388e2f59f689cd89995013236e90a1b004264 (diff) | |
download | scummvm-rg350-2f31b05651baf87ea07bc00cced798955a5fa6be.tar.gz scummvm-rg350-2f31b05651baf87ea07bc00cced798955a5fa6be.tar.bz2 scummvm-rg350-2f31b05651baf87ea07bc00cced798955a5fa6be.zip |
Move Mohawk's QuickTime code to graphics/ (and QDM2 to sound, disabled when Mohawk is not enabled) so SCI can use the code.
svn-id: r49165
Diffstat (limited to 'graphics/conversion.h')
-rw-r--r-- | graphics/conversion.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/graphics/conversion.h b/graphics/conversion.h index 149d7204c6..b6d230612e 100644 --- a/graphics/conversion.h +++ b/graphics/conversion.h @@ -45,13 +45,6 @@ inline static void RGB2YUV(byte r, byte g, byte b, byte &y, byte &u, byte &v) { v = CLIP<int>( ((r * 512) >> 10) - ((g * 429) >> 10) - ((b * 83) >> 10) + 128, 0, 255); } -/** Converting a color from YUV to RGB colorspace, Cinepak style. */ -inline static void CPYUV2RGB(byte y, byte u, byte v, byte &r, byte &g, byte &b) { - r = CLIP<int>(y + 2 * (v - 128), 0, 255); - g = CLIP<int>(y - (u - 128) / 2 - (v - 128), 0, 255); - b = CLIP<int>(y + 2 * (u - 128), 0, 255); -} - // TODO: generic YUV to RGB blit /** |