This is a minor cleanup of RGBA_Image.
struct _RGBA_Image
{
Image_Entry cache_entry;
-
RGBA_Image_Flags flags;
- struct
- {
-/* void *module; */
-/* void *loader; */
-/* char *real_file; */
- char *comment;
-// int format;
- } info;
-
void *extended_info;
-/* unsigned char scale; */
-
/* Colorspace stuff. */
struct {
void *data;
void *(*image_border_set) (void *data, void *image, int l, int r, int t, int b);
void (*image_border_get) (void *data, void *image, int *l, int *r, int *t, int *b);
Eina_Bool (*image_draw) (void *data, void *context, void *surface, void *image, int src_x, int src_y, int src_w, int src_h, int dst_x, int dst_y, int dst_w, int dst_h, int smooth, Eina_Bool do_async);
- char *(*image_comment_get) (void *data, void *image, char *key);
void (*image_colorspace_set) (void *data, void *image, Evas_Colorspace cspace);
Evas_Colorspace (*image_colorspace_get) (void *data, void *image);
Evas_Colorspace (*image_file_colorspace_get)(void *data, void *image);
{
}
-static char *
-eng_image_comment_get(void *data EINA_UNUSED, void *image, char *key EINA_UNUSED)
-{
- Evas_GL_Image *im;
-
- if (!image) return NULL;
- im = image;
- if (!im->im) return NULL;
- return im->im->info.comment;
-}
-
static Evas_Colorspace
eng_image_file_colorspace_get(void *data EINA_UNUSED, void *image)
{
ORD(image_border_set);
ORD(image_border_get);
ORD(image_draw);
- ORD(image_comment_get);
ORD(image_colorspace_set);
ORD(image_colorspace_get);
ORD(image_file_colorspace_get);
{
}
-
-static char *
-eng_image_comment_get(void *data EINA_UNUSED, void *image, char *key EINA_UNUSED)
-{
- Evas_GL_Image *im;
-
- if (!image) return NULL;
- im = image;
- if (!im->im) return NULL;
- return im->im->info.comment;
-}
-
static Evas_Colorspace
eng_image_file_colorspace_get(void *data EINA_UNUSED, void *image)
{
ORD(image_border_set);
ORD(image_border_get);
ORD(image_draw);
- ORD(image_comment_get);
ORD(image_colorspace_set);
ORD(image_colorspace_get);
ORD(image_file_colorspace_get);
{
}
-static char *
-eng_image_comment_get(void *data EINA_UNUSED, void *image, char *key EINA_UNUSED)
-{
- RGBA_Image *im;
-
- if (!image) return NULL;
- im = image;
- return im->info.comment;
-}
-
static Evas_Colorspace
eng_image_file_colorspace_get(void *data EINA_UNUSED, void *image)
{
eng_image_border_set,
eng_image_border_get,
eng_image_draw,
- eng_image_comment_get,
eng_image_colorspace_set,
eng_image_colorspace_get,
eng_image_file_colorspace_get,