summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Otte <otte@gnome.org>2009-09-21 13:15:41 +0200
committerBenjamin Otte <otte@gnome.org>2009-11-04 15:50:13 +0100
commit18ff0e10ec076b7d7b60ae8a63ea2c00c168aa48 (patch)
tree3dfe243b82055dd62aadab5c417428ea39f1a396
parentfd0e861ddbc44544a5a9c65a557fc02f81979fa9 (diff)
Disable YUV formats
-rw-r--r--src/cairo-directfb-surface.c8
-rw-r--r--src/cairo-gl-surface.c2
-rw-r--r--src/cairo-image-surface.c3
3 files changed, 4 insertions, 9 deletions
diff --git a/src/cairo-directfb-surface.c b/src/cairo-directfb-surface.c
index afad2705..c2621462 100644
--- a/src/cairo-directfb-surface.c
+++ b/src/cairo-directfb-surface.c
@@ -224,11 +224,11 @@ _directfb_to_pixman_format (DFBSurfacePixelFormat format)
case DSPF_RGB32: return PIXMAN_x8r8g8b8;
case DSPF_ARGB: return PIXMAN_a8r8g8b8;
case DSPF_A8: return PIXMAN_a8;
- case DSPF_YUY2: return PIXMAN_yuy2;
+ //case DSPF_YUY2: return PIXMAN_yuy2;
case DSPF_RGB332: return PIXMAN_r3g3b2;
case DSPF_UYVY: return PIXMAN_invalid;
case DSPF_I420: return PIXMAN_invalid;
- case DSPF_YV12: return PIXMAN_yv12;
+ //case DSPF_YV12: return PIXMAN_yv12;
case DSPF_LUT8: return PIXMAN_invalid;
case DSPF_ALUT44: return PIXMAN_invalid;
case DSPF_AiRGB: return PIXMAN_invalid;
@@ -263,9 +263,9 @@ _directfb_from_pixman_format (pixman_format_code_t format)
case PIXMAN_x8r8g8b8: return DSPF_RGB32;
case PIXMAN_a8r8g8b8: return DSPF_ARGB;
case PIXMAN_a8: return DSPF_A8;
- case PIXMAN_yuy2: return DSPF_YUY2;
+ //case PIXMAN_yuy2: return DSPF_YUY2;
case PIXMAN_r3g3b2: return DSPF_RGB332;
- case PIXMAN_yv12: return DSPF_YV12;
+ //case PIXMAN_yv12: return DSPF_YV12;
case PIXMAN_a1: return DSPF_A1; /* bit reversed, oops */
case PIXMAN_a4r4g4b4: return DSPF_ARGB4444;
case PIXMAN_a4: return DSPF_A4;
diff --git a/src/cairo-gl-surface.c b/src/cairo-gl-surface.c
index 07b6d4d3..661a8592 100644
--- a/src/cairo-gl-surface.c
+++ b/src/cairo-gl-surface.c
@@ -292,8 +292,6 @@ _cairo_gl_get_image_format_and_type (pixman_format_code_t pixman_format,
case PIXMAN_g4:
case PIXMAN_a1:
case PIXMAN_g1:
- case PIXMAN_yuy2:
- case PIXMAN_yv12:
#if PIXMAN_VERSION >= PIXMAN_VERSION_ENCODE(0,15,16)
case PIXMAN_x2r10g10b10:
case PIXMAN_a2r10g10b10:
diff --git a/src/cairo-image-surface.c b/src/cairo-image-surface.c
index 0bec118f..15b8f53e 100644
--- a/src/cairo-image-surface.c
+++ b/src/cairo-image-surface.c
@@ -74,7 +74,6 @@ _cairo_format_from_pixman_format (pixman_format_code_t pixman_format)
case PIXMAN_a4: case PIXMAN_r1g2b1: case PIXMAN_b1g2r1:
case PIXMAN_a1r1g1b1: case PIXMAN_a1b1g1r1: case PIXMAN_c4:
case PIXMAN_g4: case PIXMAN_g1:
- case PIXMAN_yuy2: case PIXMAN_yv12:
#if PIXMAN_VERSION >= PIXMAN_VERSION_ENCODE(0,11,9)
case PIXMAN_x2b10g10r10:
case PIXMAN_a2b10g10r10:
@@ -137,8 +136,6 @@ _cairo_content_from_pixman_format (pixman_format_code_t pixman_format)
case PIXMAN_c4:
case PIXMAN_g4:
case PIXMAN_g1:
- case PIXMAN_yuy2:
- case PIXMAN_yv12:
#if PIXMAN_VERSION >= PIXMAN_VERSION_ENCODE(0,11,9)
case PIXMAN_x2b10g10r10:
#endif