diff options
author | Benjamin Otte <otte@redhat.com> | 2010-03-05 15:07:24 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2010-04-23 23:30:29 +0200 |
commit | e749462f1f9c5c5c5bd15b0da48ac86b5f632520 (patch) | |
tree | fdf7d618abc684aead8f1359fce765738c4c2396 /src/cairo-image-surface.c | |
parent | f7cb33fd52eeb2a696e07f306d315ab2699aee66 (diff) |
Add CAIRO_FORMAT_PLANAR_420
Diffstat (limited to 'src/cairo-image-surface.c')
-rw-r--r-- | src/cairo-image-surface.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/cairo-image-surface.c b/src/cairo-image-surface.c index 2040a394..feec906e 100644 --- a/src/cairo-image-surface.c +++ b/src/cairo-image-surface.c @@ -98,6 +98,8 @@ _cairo_format_from_pixman_format (pixman_format_code_t pixman_format) return CAIRO_FORMAT_PLANAR_444; case PIXMAN_y422: return CAIRO_FORMAT_PLANAR_422; + case PIXMAN_y420: + return CAIRO_FORMAT_PLANAR_420; case PIXMAN_yuy2: return CAIRO_FORMAT_PACKED_YUYV; case PIXMAN_yvyu: @@ -299,6 +301,9 @@ _cairo_format_to_pixman_format_code (cairo_format_t format) case CAIRO_FORMAT_PLANAR_422: ret = PIXMAN_y422; break; + case CAIRO_FORMAT_PLANAR_420: + ret = PIXMAN_y420; + break; case CAIRO_FORMAT_PACKED_YUYV: ret = PIXMAN_yuy2; break; @@ -827,6 +832,7 @@ _cairo_content_from_format (cairo_format_t format) case CAIRO_FORMAT_RGB16_565: case CAIRO_FORMAT_PLANAR_444: case CAIRO_FORMAT_PLANAR_422: + case CAIRO_FORMAT_PLANAR_420: case CAIRO_FORMAT_PACKED_YUYV: case CAIRO_FORMAT_PACKED_YVYU: case CAIRO_FORMAT_PACKED_UYVY: @@ -862,6 +868,7 @@ _cairo_format_bits_per_pixel (cairo_format_t format) case CAIRO_FORMAT_A8: case CAIRO_FORMAT_PLANAR_444: case CAIRO_FORMAT_PLANAR_422: + case CAIRO_FORMAT_PLANAR_420: return 8; case CAIRO_FORMAT_A1: return 1; |