[cairo] Adding 565 16bpp to Cairo
Carl Worth
cworth at cworth.org
Thu Jun 15 16:45:07 PDT 2006
On Thu, 15 Jun 2006 16:39:30 -0700, Carl Worth wrote:
>
> The patch below is what I came up with.
Please forgive me for proposing an API-change without adding the new
documentation for it. Here is what it would look like:
-Carl
diff --git a/src/cairo.h b/src/cairo.h
index 012106b..bf49069 100644
--- a/src/cairo.h
+++ b/src/cairo.h
@@ -1342,6 +1342,9 @@ cairo_surface_set_fallback_resolution (c
* endianess of the platform. On a big-endian machine, the
* first pixel is in the uppermost bit, on a little-endian
* machine the first pixel is in the least-significant bit.
+ * @CAIRO_FORMAT_RGB16_565: each pixel is a 16-bit quantity,
+ * with red in the upper 5 bits, then green in the next 6,
+ * then blue in the lowest 5 bits.
*
* #cairo_format_t is used to identify the memory format of
* image data.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/cairo/attachments/20060615/a19aa3d6/attachment.pgp
More information about the cairo
mailing list