aboutsummaryrefslogtreecommitdiff
path: root/graphics/yuv_to_rgb.h
diff options
context:
space:
mode:
authorD G Turner2011-10-10 01:54:33 +0100
committerD G Turner2012-04-08 03:28:58 +0100
commite1f95983923ffcb0624eef1fa6cf552eb54fe647 (patch)
tree579b26f9b2d61bab6aa92ab03e1c85f2bb46463c /graphics/yuv_to_rgb.h
parent93632681c0e23da9031c68785060f197100411a6 (diff)
downloadscummvm-rg350-e1f95983923ffcb0624eef1fa6cf552eb54fe647.tar.gz
scummvm-rg350-e1f95983923ffcb0624eef1fa6cf552eb54fe647.tar.bz2
scummvm-rg350-e1f95983923ffcb0624eef1fa6cf552eb54fe647.zip
GRAPHICS: Add YUV410 to RGB Conversion Functions, required for SVQ1.
Thanks to clone2727 for these.
Diffstat (limited to 'graphics/yuv_to_rgb.h')
-rw-r--r--graphics/yuv_to_rgb.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/graphics/yuv_to_rgb.h b/graphics/yuv_to_rgb.h
index 8e025042dc..52ab2ebdfb 100644
--- a/graphics/yuv_to_rgb.h
+++ b/graphics/yuv_to_rgb.h
@@ -64,6 +64,20 @@ 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
+ *
+ * @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