mutter/cogl
Neil Roberts f944d419a3 cogl-bitmap: Fix converting formats with and without alpha channels
_cogl_bitmap_convert_format_and_premult was failing when converting
from RGBA to RGB and vice versa. _cogl_bitmap_fallback_convert
converts without altering the premult status so when choosing a new
format it would copy over the premult bit. However, it did this
regardless of whether the new format had an alpha channel so when
converting from RGBA_8888_PRE to RGB_888 it would end up inventing a
new meaningless format which would be RGB_888_PRE. This patch makes it
avoid copying the premult flag if the destination has no alpha. It
doesn't matter if it copies when the source format has no alpha
because it will always be unset.

_cogl_bitmap_convert_format_and_premult was also breaking when
converting from RGBA_8888_PRE to RGB_888 because it would think
RGB_888 is unpremultiplied and try to convert but then
_cogl_bitmap_fallback_premult wouldn't know how to do the conversion.

http://bugzilla.openedhand.com/show_bug.cgi?id=2057
2010-04-21 10:56:21 +01: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 cogl-atlas-texture: Fix a memory leak 2010-04-13 17:26:03 +01: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 cogl-bitmap: Fix converting formats with and without alpha channels 2010-04-21 10:56:21 +01: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 cogl-bitmap: Fix converting formats with and without alpha channels 2010-04-21 10:56:21 +01: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 cogl: Implement retained clip stacks 2010-04-15 14:51:01 +01:00
cogl-clip-stack.h cogl: Implement retained clip stacks 2010-04-15 14:51:01 +01:00
cogl-clip-state.c cogl: Implement retained clip stacks 2010-04-15 14:51:01 +01:00
cogl-clip-state.h cogl: Implement retained clip stacks 2010-04-15 14:51:01 +01:00
cogl-color.c cogl: move cogl_set_source* funcs into cogl.c 2010-04-06 09:26:05 +01:00
cogl-color.h Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-context.c cogl: Support retained paths 2010-04-08 19:53:38 +01:00
cogl-context.h cogl: Support retained paths 2010-04-08 19:53:38 +01:00
cogl-debug.c cogl debug: Adds missing guards around debug cogl_args[] 2010-03-02 16:15:39 +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 Separate out CoglClipStackState from cogl-clip-stack.c 2010-04-15 14:51:00 +01:00
cogl-framebuffer.c Separate out CoglClipStackState from cogl-clip-stack.c 2010-04-15 14:51:00 +01:00
cogl-handle.h Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-internal.h cogl: Support retained paths 2010-04-08 19:53:38 +01:00
cogl-journal-private.h cogl-material: Add support for setting the wrap mode for a layer 2010-04-12 15:44:23 +01:00
cogl-journal.c cogl-material: Add support for setting the wrap mode for a layer 2010-04-12 15:44:23 +01:00
cogl-material-private.h cogl-material: Add support for setting the wrap mode for a layer 2010-04-12 15:44:23 +01:00
cogl-material.c cogl-material: Use CLAMP_TO_EDGE for WRAP_AUTOMATIC unless overriden 2010-04-12 15:44:23 +01:00
cogl-material.h cogl-material: Add support for setting the wrap mode for a layer 2010-04-12 15:44:23 +01: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 cogl: Make private members really hard to accidentally use 2010-04-12 15:38:58 +01:00
cogl-offscreen.h Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-path-private.h cogl: Support retained paths 2010-04-08 19:53:38 +01:00
cogl-path.c Separate out CoglClipStackState from cogl-clip-stack.c 2010-04-15 14:51:00 +01:00
cogl-path.h cogl: Support retained paths 2010-04-08 19:53:38 +01: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 cogl-material: Use CLAMP_TO_EDGE for WRAP_AUTOMATIC unless overriden 2010-04-12 15:44:23 +01:00
cogl-primitives.h Use begin/end macros in cogl-primitives.h 2010-03-25 09:33:26 +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 Split the wrap mode of _cogl_texture_set_wrap_mode into three 2010-04-12 15:44:23 +01:00
cogl-texture-2d-private.h Split the wrap mode of _cogl_texture_set_wrap_mode into three 2010-04-12 15:44:23 +01:00
cogl-texture-2d-sliced-private.h Split the wrap mode of _cogl_texture_set_wrap_mode into three 2010-04-12 15:44:23 +01:00
cogl-texture-2d-sliced.c cogl-material: Add support for setting the wrap mode for a layer 2010-04-12 15:44:23 +01:00
cogl-texture-2d.c cogl-material: Add support for setting the wrap mode for a layer 2010-04-12 15:44:23 +01:00
cogl-texture-driver.h Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-texture-private.h Split the wrap mode of _cogl_texture_set_wrap_mode into three 2010-04-12 15:44:23 +01:00
cogl-texture.c Split the wrap mode of _cogl_texture_set_wrap_mode into three 2010-04-12 15:44:23 +01:00
cogl-texture.h Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-types.h cogl: Make private members really hard to accidentally use 2010-04-12 15:38:58 +01:00
cogl-util.c Return and warn if a handle's refcount is <= 0 2010-03-15 16:22:20 +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 cogl-material: Use CLAMP_TO_EDGE for WRAP_AUTOMATIC unless overriden 2010-04-12 15:44:23 +01:00
cogl-vertex-buffer.h Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl.c Separate out CoglClipStackState from cogl-clip-stack.c 2010-04-15 14:51:00 +01:00
cogl.h cogl: renames cogl_multiply_matrix to cogl_transform 2010-04-08 14:37:01 +01: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 Separate out CoglClipStackState from cogl-clip-stack.c 2010-04-15 14:51:00 +01:00
stb_image.c Update stb_image.c 2010-03-03 17:02:51 +00:00