diff options
author | Matthew Hoops | 2012-04-19 08:16:08 -0400 |
---|---|---|
committer | Matthew Hoops | 2012-04-19 08:16:24 -0400 |
commit | 9971e74c4c481f99401212b469e9c79185fa6e70 (patch) | |
tree | c45fe6d57cc35557e3c7ceb90b1e6f3edeb3aa2f /graphics/yuv_to_rgb.h | |
parent | 5ee569bce634d6704703239e665d865afc4e48fb (diff) | |
parent | 4520b115e97b494bd5d13599f27a5a339465f88e (diff) | |
download | scummvm-rg350-9971e74c4c481f99401212b469e9c79185fa6e70.tar.gz scummvm-rg350-9971e74c4c481f99401212b469e9c79185fa6e70.tar.bz2 scummvm-rg350-9971e74c4c481f99401212b469e9c79185fa6e70.zip |
Merge remote branch 'upstream/master' into pegasus
Conflicts:
base/plugins.cpp
configure
Diffstat (limited to 'graphics/yuv_to_rgb.h')
-rw-r--r-- | graphics/yuv_to_rgb.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/graphics/yuv_to_rgb.h b/graphics/yuv_to_rgb.h index 8e025042dc..73a2c69d7d 100644 --- a/graphics/yuv_to_rgb.h +++ b/graphics/yuv_to_rgb.h @@ -64,6 +64,25 @@ void convertYUV444ToRGB(Graphics::Surface *dst, const byte *ySrc, const byte *uS */ void convertYUV420ToRGB(Graphics::Surface *dst, const byte *ySrc, const byte *uSrc, const byte *vSrc, int yWidth, int yHeight, int yPitch, int uvPitch); +/** + * Convert a YUV410 image to an RGB surface + * + * Since the chroma has a very low resolution in 410, we perform bilinear scaling + * on the two chroma planes to produce the image. The chroma planes must have + * at least one extra row that can be read from in order to produce a proper + * image (filled with 0x80). This is required in order to speed up this function. + * + * @param dst the destination surface + * @param ySrc the source of the y component + * @param uSrc the source of the u component + * @param vSrc the source of the v component + * @param yWidth the width of the y surface (must be divisible by 4) + * @param yHeight the height of the y surface (must be divisible by 4) + * @param yPitch the pitch of the y surface + * @param uvPitch the pitch of the u and v surfaces + */ +void convertYUV410ToRGB(Graphics::Surface *dst, const byte *ySrc, const byte *uSrc, const byte *vSrc, int yWidth, int yHeight, int yPitch, int uvPitch); + } // End of namespace Graphics #endif |