summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/util/u_format_yuv.h
diff options
context:
space:
mode:
authorChristian König <deathsimple@vodafone.de>2012-03-02 13:35:47 +0100
committerChristian König <deathsimple@vodafone.de>2012-03-09 12:40:54 +0100
commit4f41f8edb3a999a5b752eaa51e7fe6444f14a61d (patch)
tree200f9e53733ad87eb374faf1c1491ee4fb95998d /src/gallium/auxiliary/util/u_format_yuv.h
parent5c8040aee621735ab845f343c8dcc9fa03a1151f (diff)
downloadexternal_mesa3d-4f41f8edb3a999a5b752eaa51e7fe6444f14a61d.zip
external_mesa3d-4f41f8edb3a999a5b752eaa51e7fe6444f14a61d.tar.gz
external_mesa3d-4f41f8edb3a999a5b752eaa51e7fe6444f14a61d.tar.bz2
gallium: add R8G8_R8B8 and G8R8_B8R8 formats
v2: simplify implementation by using correct swizzle v3: fix mix with successor patch Signed-off-by: Christian König <deathsimple@vodafone.de>
Diffstat (limited to 'src/gallium/auxiliary/util/u_format_yuv.h')
-rw-r--r--src/gallium/auxiliary/util/u_format_yuv.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/util/u_format_yuv.h b/src/gallium/auxiliary/util/u_format_yuv.h
index 4cb22df..4ec3981 100644
--- a/src/gallium/auxiliary/util/u_format_yuv.h
+++ b/src/gallium/auxiliary/util/u_format_yuv.h
@@ -313,6 +313,52 @@ void
util_format_g8r8_g8b8_unorm_fetch_rgba_float(float *dst, const uint8_t *src,
unsigned i, unsigned j);
+void
+util_format_r8g8_r8b8_unorm_unpack_rgba_float(float *dst_row, unsigned dst_stride,
+ const uint8_t *src_row, unsigned src_stride,
+ unsigned width, unsigned height);
+
+void
+util_format_r8g8_r8b8_unorm_unpack_rgba_8unorm(uint8_t *dst_row, unsigned dst_stride,
+ const uint8_t *src_row, unsigned src_stride,
+ unsigned width, unsigned height);
+
+void
+util_format_r8g8_r8b8_unorm_pack_rgba_float(uint8_t *dst_row, unsigned dst_stride,
+ const float *src_row, unsigned src_stride,
+ unsigned width, unsigned height);
+
+void
+util_format_r8g8_r8b8_unorm_pack_rgba_8unorm(uint8_t *dst_row, unsigned dst_stride,
+ const uint8_t *src_row, unsigned src_stride,
+ unsigned width, unsigned height);
+
+void
+util_format_r8g8_r8b8_unorm_fetch_rgba_float(float *dst, const uint8_t *src,
+ unsigned i, unsigned j);
+void
+util_format_g8r8_b8r8_unorm_unpack_rgba_float(float *dst_row, unsigned dst_stride,
+ const uint8_t *src_row, unsigned src_stride,
+ unsigned width, unsigned height);
+
+void
+util_format_g8r8_b8r8_unorm_unpack_rgba_8unorm(uint8_t *dst_row, unsigned dst_stride,
+ const uint8_t *src_row, unsigned src_stride,
+ unsigned width, unsigned height);
+
+void
+util_format_g8r8_b8r8_unorm_pack_rgba_float(uint8_t *dst_row, unsigned dst_stride,
+ const float *src_row, unsigned src_stride,
+ unsigned width, unsigned height);
+
+void
+util_format_g8r8_b8r8_unorm_pack_rgba_8unorm(uint8_t *dst_row, unsigned dst_stride,
+ const uint8_t *src_row, unsigned src_stride,
+ unsigned width, unsigned height);
+
+void
+util_format_g8r8_b8r8_unorm_fetch_rgba_float(float *dst, const uint8_t *src,
+ unsigned i, unsigned j);
#endif /* U_FORMAT_YUV_H_ */