diff options
author | Neil Roberts <neil@linux.intel.com> | 2012-03-01 13:14:10 +0000 |
---|---|---|
committer | Neil Roberts <neil@linux.intel.com> | 2012-03-05 17:44:52 +0000 |
commit | 8ce5f5ade895c7f9f7d266a56ef25ae9596ef787 (patch) | |
tree | e7ef8ccc753983be9c8ef2b45b9ab4f978b9d105 /cogl/cogl-bitmap-private.h | |
parent | b85f2e907a38b6a6f19e5356a682bb72453bb11e (diff) | |
download | cogl-8ce5f5ade895c7f9f7d266a56ef25ae9596ef787.tar.gz |
bitmap: Remove the split between 'image library' and 'fallback'
Previously the bitmap code was setup so that there could be an image
library used to convert between formats and then some 'fallback' code
when the image library can't handle the conversion. However there was
never any implementation of the conversion in the image library so the
fallback was always used. I don't think this split really makes sense
so this patch renames cogl-bitmap-fallback to cogl-bitmap-conversion
and removes the stub conversion functions in the image library.
Reviewed-by: Robert Bragg <robert@linux.intel.com>
Diffstat (limited to 'cogl/cogl-bitmap-private.h')
-rw-r--r-- | cogl/cogl-bitmap-private.h | 27 |
1 files changed, 3 insertions, 24 deletions
diff --git a/cogl/cogl-bitmap-private.h b/cogl/cogl-bitmap-private.h index 7a398d59..7bbdc739 100644 --- a/cogl/cogl-bitmap-private.h +++ b/cogl/cogl-bitmap-private.h @@ -83,42 +83,21 @@ _cogl_bitmap_new_shared (CoglBitmap *shared_bmp, int height, int rowstride); -gboolean -_cogl_bitmap_can_convert (CoglPixelFormat src, CoglPixelFormat dst); - -gboolean -_cogl_bitmap_can_unpremult (CoglPixelFormat format); - -gboolean -_cogl_bitmap_can_premult (CoglPixelFormat format); - CoglBitmap * _cogl_bitmap_convert (CoglBitmap *bmp, CoglPixelFormat dst_format); + CoglBitmap * -_cogl_bitmap_fallback_convert (CoglBitmap *bmp, - CoglPixelFormat dst_format); +_cogl_bitmap_from_file (const char *filename, + GError **error); gboolean _cogl_bitmap_unpremult (CoglBitmap *dst_bmp); gboolean -_cogl_bitmap_fallback_unpremult (CoglBitmap *dst_bmp); - -gboolean _cogl_bitmap_premult (CoglBitmap *dst_bmp); gboolean -_cogl_bitmap_fallback_premult (CoglBitmap *dst_bmp); - -CoglBitmap * -_cogl_bitmap_from_file (const char *filename, - GError **error); - -CoglBitmap * -_cogl_bitmap_fallback_from_file (const char *filename); - -gboolean _cogl_bitmap_convert_premult_status (CoglBitmap *bmp, CoglPixelFormat dst_format); |