mutter/cogl
Neil Roberts 84223c855d cogl: Support any format in cogl_read_pixels
cogl_read_pixels() no longer asserts that the format passed in is
RGBA_8888 but instead accepts any format. The appropriate GL enums for
the format are passed to glReadPixels so OpenGL should be perform a
conversion if neccessary.

It currently assumes glReadPixels will always give us premultiplied
data. This will usually be correct because the result of the default
blending operations for Cogl ends up with premultiplied data in the
framebuffer. However it is possible for the framebuffer to be in
whatever format depending on what CoglMaterial is used to render to
it. Eventually we may want to add a way for an application to inform
Cogl that the framebuffer is not premultiplied in case it is being
used for some special purpose.

If the requested format is not premultiplied then Cogl will convert
it. The tests have been changed to read the data as premultiplied so
that they won't be affected by the conversion. Picking in Clutter has
been changed to use COGL_PIXEL_FORMAT_RGB_888 because it doesn't need
the alpha component. clutter_stage_read_pixels is left unchanged
because the application can't specify a format for that so it seems to
make most sense to store unpremultiplied values.

http://bugzilla.openedhand.com/show_bug.cgi?id=1959
2010-03-02 11:01:35 +00:00
..
driver Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
winsys Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-atlas-texture-private.h Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-atlas-texture.c Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-atlas.c Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-atlas.h Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-bitmap-fallback.c Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-bitmap-pixbuf.c Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-bitmap-private.h Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-bitmap.c Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-bitmap.h Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-blend-string.c Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-blend-string.h Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-buffer-private.h Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-buffer.c Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-buffer.h Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-clip-stack.c Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-clip-stack.h Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-color.c Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-color.h Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-context.c Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-context.h Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-debug.c Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-debug.h Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-deprecated.h Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-enum-types.c.in Intial Re-layout of the Cogl source code and introduction of a Cogl Winsys 2009-10-16 18:58:50 +01:00
cogl-enum-types.h.in Intial Re-layout of the Cogl source code and introduction of a Cogl Winsys 2009-10-16 18:58:50 +01:00
cogl-feature-private.c Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-feature-private.h Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-fixed.c Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-fixed.h Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-framebuffer-private.h Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-framebuffer.c Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-handle.h Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-internal.h Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-journal-private.h Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-journal.c Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-material-private.h Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-material.c Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-material.h Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-matrix-mesa.c Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-matrix-mesa.h Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-matrix-private.h Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-matrix-stack.c Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-matrix-stack.h Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-matrix.c Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-matrix.h Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-offscreen.h Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-path.c Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-path.h Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-pixel-buffer-private.h Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-pixel-buffer.c Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-pixel-buffer.h Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-primitives.c Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-primitives.h Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-profile.c profiling: Adds initial UProf accounting to Cogl 2010-01-08 20:19:50 +00:00
cogl-profile.h Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-shader.h Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-spans.c Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-spans.h Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-sub-texture-private.h Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-sub-texture.c Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-texture-2d-private.h Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-texture-2d-sliced-private.h Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-texture-2d-sliced.c Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-texture-2d.c Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-texture-driver.h Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-texture-private.h Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-texture.c Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-texture.h Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-types.h Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-util.c Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-util.h Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-vertex-buffer-private.h Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-vertex-buffer.c Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-vertex-buffer.h Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl.c cogl: Support any format in cogl_read_pixels 2010-03-02 11:01:35 +00:00
cogl.h cogl: Support any format in cogl_read_pixels 2010-03-02 11:01:35 +00:00
cogl.pc.in Intial Re-layout of the Cogl source code and introduction of a Cogl Winsys 2009-10-16 18:58:50 +01:00
Makefile.am cogl: cleanly separate primitives + paths code 2010-02-12 14:05:01 +00:00
stb_image.c Covert stb_image.c to Unix format 2010-01-05 18:02:29 +00:00