summaryrefslogtreecommitdiff
path: root/src/cairo-image-surface.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cairo-image-surface.c')
-rw-r--r--src/cairo-image-surface.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/cairo-image-surface.c b/src/cairo-image-surface.c
index 105d0ae7..2040a394 100644
--- a/src/cairo-image-surface.c
+++ b/src/cairo-image-surface.c
@@ -96,6 +96,8 @@ _cairo_format_from_pixman_format (pixman_format_code_t pixman_format)
return CAIRO_FORMAT_BGRA32;
case PIXMAN_y444:
return CAIRO_FORMAT_PLANAR_444;
+ case PIXMAN_y422:
+ return CAIRO_FORMAT_PLANAR_422;
case PIXMAN_yuy2:
return CAIRO_FORMAT_PACKED_YUYV;
case PIXMAN_yvyu:
@@ -294,6 +296,9 @@ _cairo_format_to_pixman_format_code (cairo_format_t format)
case CAIRO_FORMAT_PLANAR_444:
ret = PIXMAN_y444;
break;
+ case CAIRO_FORMAT_PLANAR_422:
+ ret = PIXMAN_y422;
+ break;
case CAIRO_FORMAT_PACKED_YUYV:
ret = PIXMAN_yuy2;
break;
@@ -821,6 +826,7 @@ _cairo_content_from_format (cairo_format_t format)
case CAIRO_FORMAT_RGB24:
case CAIRO_FORMAT_RGB16_565:
case CAIRO_FORMAT_PLANAR_444:
+ case CAIRO_FORMAT_PLANAR_422:
case CAIRO_FORMAT_PACKED_YUYV:
case CAIRO_FORMAT_PACKED_YVYU:
case CAIRO_FORMAT_PACKED_UYVY:
@@ -855,6 +861,7 @@ _cairo_format_bits_per_pixel (cairo_format_t format)
return 16;
case CAIRO_FORMAT_A8:
case CAIRO_FORMAT_PLANAR_444:
+ case CAIRO_FORMAT_PLANAR_422:
return 8;
case CAIRO_FORMAT_A1:
return 1;