void (*dealloc)(Image_Entry *im);
/* The cache provide some helpers for surface manipulation. */
- int (*surface_alloc)(Image_Entry *im, int w, int h);
+ int (*surface_alloc)(Image_Entry *im, unsigned int w, unsigned int h);
void (*surface_delete)(Image_Entry *im);
DATA32 *(*surface_pixels)(Image_Entry *im);
int (*constructor)(Image_Entry *im); /**< return is EVAS_LOAD_ERROR_* or EVAS_LOAD_ERROR_NONE! */
void (*destructor)(Image_Entry *im);
- void (*dirty_region)(Image_Entry *im, int x, int y, int w, int h);
+ void (*dirty_region)(Image_Entry *im, unsigned int x, unsigned int y, unsigned int w, unsigned int h);
/* Only called when references > 0. Need to provide a fresh copie of im. */
/* The destination surface does have a surface, but no allocated pixel data. */
int (*dirty)(Image_Entry *dst, const Image_Entry *src);
/* Only called when references == 1. We will call drop on `im'. */
/* The destination surface does not have any surface. */
- int (*size_set)(Image_Entry *dst, const Image_Entry *src, int w, int h);
+ int (*size_set)(Image_Entry *dst, const Image_Entry *src, unsigned int w, unsigned int h);
/* The destination surface does not have any surface. */
- int (*copied_data)(Image_Entry *dst, int w, int h, DATA32 *image_data, int alpha, int cspace);
+ int (*copied_data)(Image_Entry *dst, unsigned int w, unsigned int h, DATA32 *image_data, int alpha, int cspace);
/* The destination surface does not have any surface. */
- int (*data)(Image_Entry *dst, int w, int h, DATA32 *image_data, int alpha, int cspace);
+ int (*data)(Image_Entry *dst, unsigned int w, unsigned int h, DATA32 *image_data, int alpha, int cspace);
int (*color_space)(Image_Entry *dst, int cspace);
/* This function need to update im->w and im->h. */
void *data;
int usage;
- int limit;
+ unsigned limit;
int references;
#ifdef EVAS_FRAME_QUEUING
LK(lock);
int (*constructor)(Engine_Image_Entry *eim, void* data);
void (*destructor)(Engine_Image_Entry *eim);
- void (*dirty_region)(Engine_Image_Entry *eim, int x, int y, int w, int h);
+ void (*dirty_region)(Engine_Image_Entry *eim, unsigned int x, unsigned int y, unsigned int w, unsigned int h);
/* Only called when references > 0. Need to provide a fresh copie of im. */
int (*dirty)(Engine_Image_Entry *dst, const Engine_Image_Entry *src);
/* Only called when references == 1. We will call drop on `im'. */
EAPI int evas_cache_image_usage_get(Evas_Cache_Image *cache);
EAPI int evas_cache_image_get(Evas_Cache_Image *cache);
-EAPI void evas_cache_image_set(Evas_Cache_Image *cache, int size);
+EAPI void evas_cache_image_set(Evas_Cache_Image *cache, unsigned int size);
EAPI Image_Entry* evas_cache_image_alone(Image_Entry *im);
-EAPI Image_Entry* evas_cache_image_dirty(Image_Entry *im, int x, int y, int w, int h);
+EAPI Image_Entry* evas_cache_image_dirty(Image_Entry *im, unsigned int x, unsigned int y, unsigned int w, unsigned int h);
EAPI void evas_cache_image_load_data(Image_Entry *im);
EAPI void evas_cache_image_unload_data(Image_Entry *im);
EAPI Eina_Bool evas_cache_image_is_loaded(Image_Entry *im);
EAPI void evas_cache_image_unload_all(Evas_Cache_Image *cache);
-EAPI void evas_cache_image_surface_alloc(Image_Entry *im, int w, int h);
+EAPI void evas_cache_image_surface_alloc(Image_Entry *im, unsigned int w, unsigned int h);
EAPI DATA32* evas_cache_image_pixels(Image_Entry *im);
-EAPI Image_Entry* evas_cache_image_copied_data(Evas_Cache_Image *cache, int w, int h, DATA32 *image_data, int alpha, int cspace);
-EAPI Image_Entry* evas_cache_image_data(Evas_Cache_Image *cache, int w, int h, DATA32 *image_data, int alpha, int cspace);
+EAPI Image_Entry* evas_cache_image_copied_data(Evas_Cache_Image *cache, unsigned int w, unsigned int h, DATA32 *image_data, int alpha, int cspace);
+EAPI Image_Entry* evas_cache_image_data(Evas_Cache_Image *cache, unsigned int w, unsigned int h, DATA32 *image_data, int alpha, int cspace);
EAPI void evas_cache_image_colorspace(Image_Entry *im, int cspace);
EAPI Image_Entry* evas_cache_image_empty(Evas_Cache_Image *cache);
-EAPI Image_Entry* evas_cache_image_size_set(Image_Entry *im, int w, int h);
+EAPI Image_Entry* evas_cache_image_size_set(Image_Entry *im, unsigned int w, unsigned int h);
EAPI Evas_Cache_Engine_Image* evas_cache_engine_image_init(const Evas_Cache_Engine_Image_Func *cb, Evas_Cache_Image *parent);
EAPI void evas_cache_engine_image_shutdown(Evas_Cache_Engine_Image *cache);
EAPI Engine_Image_Entry* evas_cache_engine_image_engine(Evas_Cache_Engine_Image *cache, void *engine_data);
EAPI void evas_cache_engine_image_drop(Engine_Image_Entry *eim);
EAPI Engine_Image_Entry* evas_cache_engine_image_alone(Engine_Image_Entry *eim, void *data);
-EAPI Engine_Image_Entry* evas_cache_engine_image_dirty(Engine_Image_Entry *eim, int x, int y, int w, int h);
-EAPI Engine_Image_Entry* evas_cache_engine_image_copied_data(Evas_Cache_Engine_Image *cache, int w, int h, DATA32 *image_data, int alpha, int cspace, void *engine_data);
-EAPI Engine_Image_Entry* evas_cache_engine_image_data(Evas_Cache_Engine_Image *cache, int w, int h, DATA32 *image_data, int alpha, int cspace, void *engine_data);
+EAPI Engine_Image_Entry* evas_cache_engine_image_dirty(Engine_Image_Entry *eim, unsigned int x, unsigned int y, unsigned int w, unsigned int h);
+EAPI Engine_Image_Entry* evas_cache_engine_image_copied_data(Evas_Cache_Engine_Image *cache, unsigned int w, unsigned int h, DATA32 *image_data, int alpha, int cspace, void *engine_data);
+EAPI Engine_Image_Entry* evas_cache_engine_image_data(Evas_Cache_Engine_Image *cache, unsigned int w, unsigned int h, DATA32 *image_data, int alpha, int cspace, void *engine_data);
EAPI void evas_cache_engine_image_colorspace(Engine_Image_Entry *eim, int cspace, void *engine_data);
-EAPI Engine_Image_Entry* evas_cache_engine_image_size_set(Engine_Image_Entry *eim, int w, int h);
+EAPI Engine_Image_Entry* evas_cache_engine_image_size_set(Engine_Image_Entry *eim, unsigned int w, unsigned int h);
EAPI void evas_cache_engine_image_load_data(Engine_Image_Entry *eim);
}
EAPI Engine_Image_Entry *
-evas_cache_engine_image_dirty(Engine_Image_Entry *eim, int x, int y, int w, int h)
+evas_cache_engine_image_dirty(Engine_Image_Entry *eim, unsigned int x, unsigned int y, unsigned int w, unsigned int h)
{
Engine_Image_Entry *eim_dirty = eim;
Image_Entry *im_dirty = NULL;
}
EAPI Engine_Image_Entry *
-evas_cache_engine_image_copied_data(Evas_Cache_Engine_Image *cache, int w, int h, DATA32 *image_data, int alpha, int cspace, void *engine_data)
+evas_cache_engine_image_copied_data(Evas_Cache_Engine_Image *cache, unsigned int w, unsigned int h, DATA32 *image_data, int alpha, int cspace, void *engine_data)
{
Image_Entry *im;
}
EAPI Engine_Image_Entry *
-evas_cache_engine_image_data(Evas_Cache_Engine_Image *cache, int w, int h, DATA32 *image_data, int alpha, int cspace, void *engine_data)
+evas_cache_engine_image_data(Evas_Cache_Engine_Image *cache, unsigned int w, unsigned int h, DATA32 *image_data, int alpha, int cspace, void *engine_data)
{
Image_Entry *im;
}
EAPI Engine_Image_Entry *
-evas_cache_engine_image_size_set(Engine_Image_Entry *eim, int w, int h)
+evas_cache_engine_image_size_set(Engine_Image_Entry *eim, unsigned int w, unsigned int h)
{
Evas_Cache_Engine_Image *cache;
Engine_Image_Entry *new;
static void
_evas_cache_image_entry_surface_alloc__locked(Evas_Cache_Image *cache,
Image_Entry *ie,
- int wmin, int hmin)
+ unsigned int wmin,
+ unsigned int hmin)
{
if (ie->allocated.w == wmin && ie->allocated.h == hmin)
return ;
}
EAPI void
-evas_cache_image_set(Evas_Cache_Image *cache, int limit)
+evas_cache_image_set(Evas_Cache_Image *cache, unsigned int limit)
{
assert(cache != NULL);
#ifdef EVAS_FRAME_QUEUING
}
EAPI Image_Entry *
-evas_cache_image_dirty(Image_Entry *im, int x, int y, int w, int h)
+evas_cache_image_dirty(Image_Entry *im, unsigned int x, unsigned int y, unsigned int w, unsigned int h)
{
Image_Entry *im_dirty = im;
Evas_Cache_Image *cache;
}
EAPI Image_Entry *
-evas_cache_image_copied_data(Evas_Cache_Image *cache, int w, int h, DATA32 *image_data, int alpha, int cspace)
+evas_cache_image_copied_data(Evas_Cache_Image *cache, unsigned int w, unsigned int h, DATA32 *image_data, int alpha, int cspace)
{
Image_Entry *im;
}
EAPI Image_Entry *
-evas_cache_image_data(Evas_Cache_Image *cache, int w, int h, DATA32 *image_data, int alpha, int cspace)
+evas_cache_image_data(Evas_Cache_Image *cache, unsigned int w, unsigned int h, DATA32 *image_data, int alpha, int cspace)
{
Image_Entry *im;
}
EAPI void
-evas_cache_image_surface_alloc(Image_Entry *im, int w, int h)
+evas_cache_image_surface_alloc(Image_Entry *im, unsigned int w, unsigned int h)
{
Evas_Cache_Image *cache;
}
EAPI Image_Entry *
-evas_cache_image_size_set(Image_Entry *im, int w, int h)
+evas_cache_image_size_set(Image_Entry *im, unsigned int w, unsigned int h)
{
Evas_Cache_Image *cache;
Image_Entry *new;
assert(cache);
assert(cache->usage >= 0);
- if (cache->limit == -1) return -1;
+ if (cache->limit == (unsigned int)-1) return -1;
- while ((cache->lru) && (cache->limit < cache->usage))
+ while ((cache->lru) && (cache->limit < (unsigned int)cache->usage))
{
Image_Entry *im;
_evas_cache_image_entry_delete(cache, im);
}
- while ((cache->lru_nodata) && (cache->limit < cache->usage))
+ while ((cache->lru_nodata) && (cache->limit < (unsigned int)cache->usage))
{
Image_Entry *im;
/* clip clip clip */
if (w <= 0) return;
- if (src_x + w > src->cache_entry.w) w = src->cache_entry.w - src_x;
+ if (src_x + w > (int)src->cache_entry.w) w = src->cache_entry.w - src_x;
if (w <= 0) return;
if (src_x < 0)
{
if (w <= 0) return;
if (h <= 0) return;
- if (src_y + h > src->cache_entry.h) h = src->cache_entry.h - src_y;
+ if (src_y + h > (int)src->cache_entry.h) h = src->cache_entry.h - src_y;
if (h <= 0) return;
if (src_y < 0)
{
if (h <= 0) return;
if (w <= 0) return;
- if (dst_x + w > dst->cache_entry.w) w = dst->cache_entry.w - dst_x;
+ if (dst_x + w > (int)dst->cache_entry.w) w = dst->cache_entry.w - dst_x;
if (w <= 0) return;
if (dst_x < 0)
{
if (w <= 0) return;
if (h <= 0) return;
- if (dst_y + h > dst->cache_entry.h) h = dst->cache_entry.h - dst_y;
+ if (dst_y + h > (int)dst->cache_entry.h) h = dst->cache_entry.h - dst_y;
if (h <= 0) return;
if (dst_y < 0)
{
EAPI void evas_common_image_set_alpha_sparse (Image_Entry *ie); /*2*/
/* EAPI RGBA_Image *evas_common_image_alpha_create (int w, int h); */
/* EAPI RGBA_Image *evas_common_image_create (int w, int h); */
-EAPI RGBA_Image *evas_common_image_new (int w, int h, int alpha);
+EAPI RGBA_Image *evas_common_image_new (unsigned int w, unsigned int h, unsigned int alpha);
EAPI Evas_Cache_Image *evas_common_image_cache_get (void);
-EAPI void evas_common_image_set_cache (int size);
+EAPI void evas_common_image_set_cache (unsigned int size);
EAPI int evas_common_image_get_cache (void);
EAPI RGBA_Image *evas_common_image_line_buffer_obtain (int len);
EAPI RGBA_Image *evas_common_load_image_from_file (const char *file, const char *key, RGBA_Image_Loadopts *lo, int *error);
EAPI int evas_common_save_image_to_file (RGBA_Image *im, const char *file, const char *key, int quality, int compress);
-EAPI void evas_common_rgba_image_scalecache_size_set(int size);
-EAPI int evas_common_rgba_image_scalecache_size_get(void);
+EAPI void evas_common_rgba_image_scalecache_size_set(unsigned int size);
+EAPI unsigned int evas_common_rgba_image_scalecache_size_get(void);
EAPI void evas_common_rgba_image_scalecache_flush(void);
EAPI void
}
int
-evas_common_rgba_image_size_set(Image_Entry *ie_dst, const Image_Entry *ie_im, int w, int h __UNUSED__)
+evas_common_rgba_image_size_set(Image_Entry *ie_dst, const Image_Entry *ie_im, unsigned int w, unsigned int h __UNUSED__)
{
RGBA_Image *dst = (RGBA_Image *) ie_dst;
RGBA_Image *im = (RGBA_Image *) ie_im;
static Image_Entry *_evas_common_rgba_image_new(void);
static void _evas_common_rgba_image_delete(Image_Entry *ie);
-static int _evas_common_rgba_image_surface_alloc(Image_Entry *ie, int w, int h);
+static int _evas_common_rgba_image_surface_alloc(Image_Entry *ie, unsigned int w, unsigned int h);
static void _evas_common_rgba_image_surface_delete(Image_Entry *ie);
static DATA32 *_evas_common_rgba_image_surface_pixels(Image_Entry *ie);
static void _evas_common_rgba_image_unload(Image_Entry *im);
-static void _evas_common_rgba_image_dirty_region(Image_Entry *im, int x, int y, int w, int h);
+static void _evas_common_rgba_image_dirty_region(Image_Entry *im, unsigned int x, unsigned int y, unsigned int w, unsigned int h);
static int _evas_common_rgba_image_ram_usage(Image_Entry *ie);
}
static int
-_evas_common_rgba_image_surface_alloc(Image_Entry *ie, int w, int h)
+_evas_common_rgba_image_surface_alloc(Image_Entry *ie, unsigned int w, unsigned int h)
{
RGBA_Image *im = (RGBA_Image *) ie;
size_t siz = 0;
}
static void
-_evas_common_rgba_image_dirty_region(Image_Entry* ie, int x __UNUSED__, int y __UNUSED__, int w __UNUSED__, int h __UNUSED__)
+_evas_common_rgba_image_dirty_region(Image_Entry* ie, unsigned int x __UNUSED__, unsigned int y __UNUSED__, unsigned int w __UNUSED__, unsigned int h __UNUSED__)
{
RGBA_Image *im = (RGBA_Image *) ie;
/* } */
static RGBA_Image *
-evas_common_image_create(int w, int h)
+evas_common_image_create(unsigned int w, unsigned int h)
{
RGBA_Image *im;
}
EAPI RGBA_Image *
-evas_common_image_alpha_create(int w, int h)
+evas_common_image_alpha_create(unsigned int w, unsigned int h)
{
RGBA_Image *im;
}
EAPI RGBA_Image *
-evas_common_image_new(int w, int h, int alpha)
+evas_common_image_new(unsigned int w, unsigned int h, unsigned int alpha)
{
if (alpha)
return evas_common_image_alpha_create(w, h);
}
EAPI void
-evas_common_image_set_cache(int size)
+evas_common_image_set_cache(unsigned int size)
{
if (eci)
evas_cache_image_set(eci, size);
#ifndef _EVAS_IMAGE_PRIVATE_H
#define _EVAS_IMAGE_PRIVATE_H
-int evas_common_rgba_image_size_set (Image_Entry* dst, const Image_Entry* im, int w, int h);
-int evas_common_rgba_image_from_copied_data (Image_Entry* dst, int w, int h, DATA32 *image_data, int alpha, int cspace);
-int evas_common_rgba_image_from_data (Image_Entry* dst, int w, int h, DATA32 *image_data, int alpha, int cspace);
+int evas_common_rgba_image_size_set (Image_Entry* dst, const Image_Entry* im, unsigned int w, unsigned int h);
+int evas_common_rgba_image_from_copied_data (Image_Entry* dst, unsigned int w, unsigned int h, DATA32 *image_data, int alpha, int cspace);
+int evas_common_rgba_image_from_data (Image_Entry* dst, unsigned int w, unsigned int h, DATA32 *image_data, int alpha, int cspace);
int evas_common_rgba_image_colorspace_set (Image_Entry* dst, int cspace);
void evas_common_scalecache_init(void);
for (i = 0; i < 4; i++)
{
if (p[i].u < 0) p[i].u = 0;
- else if (p[i].u > (src->cache_entry.w << FP))
+ else if (p[i].u > (int)(src->cache_entry.w << FP))
p[i].u = src->cache_entry.w << FP;
if (p[i].v < 0) p[i].v = 0;
- else if (p[i].v > (src->cache_entry.h << FP))
+ else if (p[i].v > (int)(src->cache_entry.h << FP))
p[i].v = src->cache_entry.h << FP;
}
const DATA32 *sp;
DATA16 *dp;
DATA8 *ap;
- int y;
+ unsigned int y;
sp = src;
dp = im->pixels;
{
const DATA32 *sp;
DATA16 *dp;
- int y;
+ unsigned int y;
sp = src;
dp = im->pixels;
static Image_Entry *_evas_common_soft16_image_new(void);
static void _evas_common_soft16_image_delete(Image_Entry *ie);
-static int _evas_common_soft16_image_surface_alloc(Image_Entry *ie, int w, int h);
+static int _evas_common_soft16_image_surface_alloc(Image_Entry *ie, unsigned int w, unsigned int h);
static void _evas_common_soft16_image_surface_delete(Image_Entry *ie);
static DATA32 *_evas_common_soft16_image_surface_pixels(Image_Entry *ie);
static int _evas_common_load_soft16_image_from_file(Image_Entry *ie);
static void _evas_common_soft16_image_unload(Image_Entry *ie);
-static void _evas_common_soft16_image_dirty_region(Image_Entry *im, int x, int y, int w, int h);
+static void _evas_common_soft16_image_dirty_region(Image_Entry *im, unsigned int x, unsigned int y, unsigned int w, unsigned int h);
static int _evas_common_soft16_image_dirty(Image_Entry *ie_dst, const Image_Entry *ie_src);
static int _evas_common_soft16_image_ram_usage(Image_Entry *ie);
-static int _evas_common_soft16_image_size_set(Image_Entry *ie_dst, const Image_Entry *ie_im, int w, int h);
-static int _evas_common_soft16_image_from_copied_data(Image_Entry* ie_dst, int w, int h, DATA32 *image_data, int alpha, int cspace);
-static int _evas_common_soft16_image_from_data(Image_Entry* ie_dst, int w, int h, DATA32 *image_data, int alpha, int cspace);
+static int _evas_common_soft16_image_size_set(Image_Entry *ie_dst, const Image_Entry *ie_im, unsigned int w, unsigned int h);
+static int _evas_common_soft16_image_from_copied_data(Image_Entry* ie_dst, unsigned int w, unsigned int h, DATA32 *image_data, int alpha, int cspace);
+static int _evas_common_soft16_image_from_data(Image_Entry* ie_dst, unsigned int w, unsigned int h, DATA32 *image_data, int alpha, int cspace);
static int _evas_common_soft16_image_colorspace_set(Image_Entry* ie_dst, int cspace);
static int _evas_common_load_soft16_image_data_from_file(Image_Entry *ie);
}
static int
-_evas_common_soft16_image_surface_alloc(Image_Entry *ie, int w, int h)
+_evas_common_soft16_image_surface_alloc(Image_Entry *ie, unsigned int w, unsigned int h)
{
Soft16_Image *im = (Soft16_Image *) ie;
}
static void
-_evas_common_soft16_image_dirty_region(Image_Entry *im __UNUSED__, int x __UNUSED__, int y __UNUSED__, int w __UNUSED__, int h __UNUSED__)
+_evas_common_soft16_image_dirty_region(Image_Entry *im __UNUSED__, unsigned int x __UNUSED__, unsigned int y __UNUSED__, unsigned int w __UNUSED__, unsigned int h __UNUSED__)
{
}
}
static int
-_evas_common_soft16_image_size_set(Image_Entry *ie_dst, const Image_Entry *ie_im, int w __UNUSED__, int h __UNUSED__)
+_evas_common_soft16_image_size_set(Image_Entry *ie_dst, const Image_Entry *ie_im, unsigned int w __UNUSED__, unsigned int h __UNUSED__)
{
Soft16_Image *dst = (Soft16_Image *) ie_dst;
Soft16_Image *im = (Soft16_Image *) ie_im;
}
static int
-_evas_common_soft16_image_from_data(Image_Entry* ie_dst, int w, int h, DATA32 *image_data, int alpha, int cspace __UNUSED__)
+_evas_common_soft16_image_from_data(Image_Entry* ie_dst, unsigned int w, unsigned int h, DATA32 *image_data, int alpha, int cspace __UNUSED__)
{
Soft16_Image *im = (Soft16_Image *) ie_dst;
}
static int
-_evas_common_soft16_image_from_copied_data(Image_Entry* ie_dst, int w __UNUSED__, int h, DATA32 *image_data, int alpha __UNUSED__, int cspace __UNUSED__)
+_evas_common_soft16_image_from_copied_data(Image_Entry* ie_dst, unsigned int w __UNUSED__, unsigned int h, DATA32 *image_data, int alpha __UNUSED__, int cspace __UNUSED__)
{
Soft16_Image *im = (Soft16_Image *) ie_dst;
clip->h += clip->y;
clip->y = 0;
}
- if ((clip->x + clip->w) > im->cache_entry.w) clip->w = im->cache_entry.w - clip->x;
- if ((clip->y + clip->h) > im->cache_entry.h) clip->h = im->cache_entry.h - clip->y;
+ if ((clip->x + clip->w) > (int)im->cache_entry.w) clip->w = im->cache_entry.w - clip->x;
+ if ((clip->y + clip->h) > (int)im->cache_entry.h) clip->h = im->cache_entry.h - clip->y;
}
else
{
static Image_Entry *_evas_common_soft8_image_new(void);
static void _evas_common_soft8_image_delete(Image_Entry * ie);
-static int _evas_common_soft8_image_surface_alloc(Image_Entry * ie, int w,
- int h);
+static int _evas_common_soft8_image_surface_alloc(Image_Entry * ie, unsigned int w, unsigned int h);
static void _evas_common_soft8_image_surface_delete(Image_Entry * ie);
static DATA32 *_evas_common_soft8_image_surface_pixels(Image_Entry * ie);
static int _evas_common_load_soft8_image_from_file(Image_Entry * ie);
static void _evas_common_soft8_image_unload(Image_Entry * ie);
-static void _evas_common_soft8_image_dirty_region(Image_Entry * im, int x,
- int y, int w, int h);
+static void _evas_common_soft8_image_dirty_region(Image_Entry * im, unsigned int x, unsigned int y, unsigned int w, unsigned int h);
static int _evas_common_soft8_image_dirty(Image_Entry * ie_dst,
const Image_Entry * ie_src);
static int _evas_common_soft8_image_ram_usage(Image_Entry * ie);
static int _evas_common_soft8_image_size_set(Image_Entry * ie_dst,
- const Image_Entry * ie_im, int w,
- int h);
-static int _evas_common_soft8_image_from_copied_data(Image_Entry * ie_dst,
- int w, int h,
- DATA32 * image_data,
- int alpha, int cspace);
-static int _evas_common_soft8_image_from_data(Image_Entry * ie_dst, int w,
- int h, DATA32 * image_data,
- int alpha, int cspace);
+ const Image_Entry * ie_im, unsigned int w, unsigned int h);
+static int _evas_common_soft8_image_from_copied_data(Image_Entry * ie_dst, unsigned int w, unsigned int h, DATA32 * image_data, int alpha, int cspace);
+static int _evas_common_soft8_image_from_data(Image_Entry * ie_dst, unsigned int w, unsigned int h, DATA32 * image_data, int alpha, int cspace);
static int _evas_common_soft8_image_colorspace_set(Image_Entry * ie_dst,
int cspace);
}
static int
-_evas_common_soft8_image_surface_alloc(Image_Entry * ie, int w, int h)
+_evas_common_soft8_image_surface_alloc(Image_Entry * ie, unsigned int w, unsigned int h)
{
Soft8_Image *im = (Soft8_Image *) ie;
static void
_evas_common_soft8_image_dirty_region(Image_Entry * im __UNUSED__,
- int x __UNUSED__, int y __UNUSED__,
- int w __UNUSED__, int h __UNUSED__)
+ unsigned int x __UNUSED__,
+ unsigned int y __UNUSED__,
+ unsigned int w __UNUSED__,
+ unsigned int h __UNUSED__)
{
}
static int
_evas_common_soft8_image_size_set(Image_Entry * ie_dst,
- const Image_Entry * ie_im, int w __UNUSED__,
- int h __UNUSED__)
+ const Image_Entry * ie_im,
+ unsigned int w __UNUSED__,
+ unsigned int h __UNUSED__)
{
Soft8_Image *dst = (Soft8_Image *) ie_dst;
Soft8_Image *im = (Soft8_Image *) ie_im;
}
static int
-_evas_common_soft8_image_from_data(Image_Entry * ie_dst, int w, int h,
+_evas_common_soft8_image_from_data(Image_Entry * ie_dst,
+ unsigned int w, unsigned int h,
DATA32 * image_data, int alpha,
int cspace __UNUSED__)
{
static int
_evas_common_soft8_image_from_copied_data(Image_Entry * ie_dst,
- int w __UNUSED__, int h,
+ unsigned int w __UNUSED__,
+ unsigned int h,
DATA32 * image_data,
int alpha __UNUSED__,
int cspace __UNUSED__)
}
/* Soft16_Image * */
-/* evas_common_soft16_image_new(int w, int h, int stride, int have_alpha, DATA16 *pixels, */
+/* evas_common_soft16_image_new(int w, unsigned int h, unsigned int stride, int have_alpha, DATA16 *pixels, */
/* int copy) */
/* { */
/* Soft16_Image *im; */
clip->h += clip->y;
clip->y = 0;
}
- if ((clip->x + clip->w) > im->cache_entry.w)
+ if ((clip->x + clip->w) > (int)im->cache_entry.w)
clip->w = im->cache_entry.w - clip->x;
- if ((clip->y + clip->h) > im->cache_entry.h)
+ if ((clip->y + clip->h) > (int)im->cache_entry.h)
clip->h = im->cache_entry.h - clip->y;
}
else
static int
_soft8_adjust_areas(Eina_Rectangle * src,
- int src_max_x, int src_max_y,
- Eina_Rectangle * dst,
+ int src_max_x, int src_max_y, Eina_Rectangle * dst,
int dst_max_x, int dst_max_y, Eina_Rectangle * dst_clip)
{
if (_is_empty_rectangle(src) ||
int src_region_x, int src_region_y,
int src_region_w, int src_region_h,
int dst_region_x, int dst_region_y,
- int dst_region_w, int dst_region_h, int smooth __UNUSED__)
+ int dst_region_w, int dst_region_h,
+ int smooth __UNUSED__)
{
Eina_Rectangle sr, dr;
Cutout_Rects *rects;
}
/* Soft16_Image * */
-/* evas_common_soft16_image_size_set(Soft16_Image *old_im, int w, int h) */
+/* evas_common_soft16_image_size_set(Soft16_Image *old_im, unsigned int w, unsigned int h) */
/* { */
/* Soft16_Image *new_im; */
/* DATA16 *dp, *sp; */
{
int scale_down_by; // if > 1 then use this
double dpi; // if > 0.0 use this
- int w, h; // if > 0 use this
+ unsigned int w, h; // if > 0 use this
struct {
- int x, y, w, h;
+ unsigned int x, y, w, h;
} region;
};
RGBA_Image_Loadopts load_opts;
int space;
- int w;
- int h;
+ unsigned int w;
+ unsigned int h;
struct
{
- int w;
- int h;
+ unsigned int w;
+ unsigned int h;
} allocated;
struct
((((g) >> 2) & 0x3f) << 5) | \
(((b) >> 3) & 0x1f))
-static inline int
-_calc_stride(int w)
+static inline unsigned int
+_calc_stride(unsigned int w)
{
- int pad;
-
- pad = w % 4;
+ unsigned int pad = w % 4;
if (!pad) return w;
else return w + 4 - pad;
}
void evas_gl_common_rect_draw(Evas_GL_Context *gc, int x, int y, int w, int h);
Evas_GL_Texture *evas_gl_common_texture_new(Evas_GL_Context *gc, RGBA_Image *im);
-Evas_GL_Texture *evas_gl_common_texture_native_new(Evas_GL_Context *gc, int w, int h, int alpha, Evas_GL_Image *im);
-Evas_GL_Texture *evas_gl_common_texture_render_new(Evas_GL_Context *gc, int w, int h, int alpha);
+Evas_GL_Texture *evas_gl_common_texture_native_new(Evas_GL_Context *gc, unsigned int w, unsigned int h, int alpha, Evas_GL_Image *im);
+Evas_GL_Texture *evas_gl_common_texture_render_new(Evas_GL_Context *gc, unsigned int w, unsigned int h, int alpha);
Evas_GL_Texture *evas_gl_common_texture_dynamic_new(Evas_GL_Context *gc, Evas_GL_Image *im);
void evas_gl_common_texture_update(Evas_GL_Texture *tex, RGBA_Image *im);
void evas_gl_common_texture_free(Evas_GL_Texture *tex);
-Evas_GL_Texture *evas_gl_common_texture_alpha_new(Evas_GL_Context *gc, DATA8 *pixels, int w, int h, int fh);
-void evas_gl_common_texture_alpha_update(Evas_GL_Texture *tex, DATA8 *pixels, int w, int h, int fh);
-Evas_GL_Texture *evas_gl_common_texture_yuv_new(Evas_GL_Context *gc, DATA8 **rows, int w, int h);
-void evas_gl_common_texture_yuv_update(Evas_GL_Texture *tex, DATA8 **rows, int w, int h);
+Evas_GL_Texture *evas_gl_common_texture_alpha_new(Evas_GL_Context *gc, DATA8 *pixels, unsigned int w, unsigned int h, int fh);
+void evas_gl_common_texture_alpha_update(Evas_GL_Texture *tex, DATA8 *pixels, unsigned int w, unsigned int h, int fh);
+Evas_GL_Texture *evas_gl_common_texture_yuv_new(Evas_GL_Context *gc, DATA8 **rows, unsigned int w, unsigned int h);
+void evas_gl_common_texture_yuv_update(Evas_GL_Texture *tex, DATA8 **rows, unsigned int w, unsigned int h);
void evas_gl_common_image_all_unload(Evas_GL_Context *gc);
Evas_GL_Image *evas_gl_common_image_load(Evas_GL_Context *gc, const char *file, const char *key, Evas_Image_Load_Opts *lo, int *error);
-Evas_GL_Image *evas_gl_common_image_new_from_data(Evas_GL_Context *gc, int w, int h, DATA32 *data, int alpha, int cspace);
-Evas_GL_Image *evas_gl_common_image_new_from_copied_data(Evas_GL_Context *gc, int w, int h, DATA32 *data, int alpha, int cspace);
-Evas_GL_Image *evas_gl_common_image_new(Evas_GL_Context *gc, int w, int h, int alpha, int cspace);
+Evas_GL_Image *evas_gl_common_image_new_from_data(Evas_GL_Context *gc, unsigned int w, unsigned int h, DATA32 *data, int alpha, int cspace);
+Evas_GL_Image *evas_gl_common_image_new_from_copied_data(Evas_GL_Context *gc, unsigned int w, unsigned int h, DATA32 *data, int alpha, int cspace);
+Evas_GL_Image *evas_gl_common_image_new(Evas_GL_Context *gc, unsigned int w, unsigned int h, int alpha, int cspace);
Evas_GL_Image *evas_gl_common_image_alpha_set(Evas_GL_Image *im, int alpha);
void evas_gl_common_image_native_enable(Evas_GL_Image *im);
void evas_gl_common_image_native_disable(Evas_GL_Image *im);
void evas_gl_common_image_scale_hint_set(Evas_GL_Image *im, int hint);
void evas_gl_common_image_content_hint_set(Evas_GL_Image *im, int hint);
void evas_gl_common_image_free(Evas_GL_Image *im);
-Evas_GL_Image *evas_gl_common_image_surface_new(Evas_GL_Context *gc, int w, int h, int alpha);
-void evas_gl_common_image_dirty(Evas_GL_Image *im, int x, int y, int w, int h);
+Evas_GL_Image *evas_gl_common_image_surface_new(Evas_GL_Context *gc, unsigned int w, unsigned int h, int alpha);
+void evas_gl_common_image_dirty(Evas_GL_Image *im, unsigned int x, unsigned int y, unsigned int w, unsigned int h);
void evas_gl_common_image_map4_draw(Evas_GL_Context *gc, Evas_GL_Image *im, RGBA_Map_Point *p, int smooth, int level);
void evas_gl_common_image_draw(Evas_GL_Context *gc, Evas_GL_Image *im, int sx, int sy, int sw, int sh, int dx, int dy, int dw, int dh, int smooth);
}
Evas_GL_Image *
-evas_gl_common_image_new_from_data(Evas_GL_Context *gc, int w, int h, DATA32 *data, int alpha, int cspace)
+evas_gl_common_image_new_from_data(Evas_GL_Context *gc, unsigned int w, unsigned int h, DATA32 *data, int alpha, int cspace)
{
Evas_GL_Image *im;
Eina_List *l;
}
Evas_GL_Image *
-evas_gl_common_image_new_from_copied_data(Evas_GL_Context *gc, int w, int h, DATA32 *data, int alpha, int cspace)
+evas_gl_common_image_new_from_copied_data(Evas_GL_Context *gc, unsigned int w, unsigned int h, DATA32 *data, int alpha, int cspace)
{
Evas_GL_Image *im;
}
Evas_GL_Image *
-evas_gl_common_image_new(Evas_GL_Context *gc, int w, int h, int alpha, int cspace)
+evas_gl_common_image_new(Evas_GL_Context *gc, unsigned int w, unsigned int h, int alpha, int cspace)
{
Evas_GL_Image *im;
}
Evas_GL_Image *
-evas_gl_common_image_surface_new(Evas_GL_Context *gc, int w, int h, int alpha)
+evas_gl_common_image_surface_new(Evas_GL_Context *gc, unsigned int w, unsigned int h, int alpha)
{
Evas_GL_Image *im;
}
void
-evas_gl_common_image_dirty(Evas_GL_Image *im, int x, int y, int w, int h)
+evas_gl_common_image_dirty(Evas_GL_Image *im, unsigned int x, unsigned int y, unsigned int w, unsigned int h)
{
if ((w == 0) && (h == 0) && (x == 0) && (y == 0))
{
} c, a, v, r, n, d;
} texinfo = {0};
-static int
+static void
_print_tex_count(void)
{
if (getenv("EVAS_GL_MEMINFO"))
}
static Evas_GL_Texture_Pool *
-_pool_tex_new(Evas_GL_Context *gc, int w, int h, int intformat, int format)
+_pool_tex_new(Evas_GL_Context *gc, int w, int h, int intformat, GLenum format)
{
Evas_GL_Texture_Pool *pt;
}
Evas_GL_Texture *
-evas_gl_common_texture_native_new(Evas_GL_Context *gc, int w, int h, int alpha, Evas_GL_Image *im)
+evas_gl_common_texture_native_new(Evas_GL_Context *gc, unsigned int w, unsigned int h, int alpha, Evas_GL_Image *im)
{
Evas_GL_Texture *tex;
}
Evas_GL_Texture *
-evas_gl_common_texture_render_new(Evas_GL_Context *gc, int w, int h, int alpha)
+evas_gl_common_texture_render_new(Evas_GL_Context *gc, unsigned int w, unsigned int h, int alpha)
{
Evas_GL_Texture *tex;
}
Evas_GL_Texture *
-evas_gl_common_texture_alpha_new(Evas_GL_Context *gc, DATA8 *pixels,
- int w, int h, int fh)
+evas_gl_common_texture_alpha_new(Evas_GL_Context *gc, DATA8 *pixels,
+ unsigned int w, unsigned int h, int fh)
{
Evas_GL_Texture *tex;
Eina_List *l_after = NULL;
}
void
-evas_gl_common_texture_alpha_update(Evas_GL_Texture *tex, DATA8 *pixels,
- int w, int h, int fh)
+evas_gl_common_texture_alpha_update(Evas_GL_Texture *tex, DATA8 *pixels,
+ unsigned int w, unsigned int h, int fh)
{
if (!tex->pt) return;
glBindTexture(GL_TEXTURE_2D, tex->pt->texture);
}
Evas_GL_Texture *
-evas_gl_common_texture_yuv_new(Evas_GL_Context *gc, DATA8 **rows, int w, int h)
+evas_gl_common_texture_yuv_new(Evas_GL_Context *gc, DATA8 **rows, unsigned int w, unsigned int h)
{
Evas_GL_Texture *tex;
// Eina_List *l_after = NULL;
}
void
-evas_gl_common_texture_yuv_update(Evas_GL_Texture *tex, DATA8 **rows, int w, int h)
+evas_gl_common_texture_yuv_update(Evas_GL_Texture *tex, DATA8 **rows, unsigned int w, unsigned int h)
{
if (!tex->pt) return;
// FIXME: works on lowest size 4 pixel high buffers. must also be multiple of 2
pm = ns->data.x11.pixmap;
if (im->native.data)
{
- Evas_Native_Surface *n = im->native.data;
- if ((n->data.x11.visual == vis) && (n->data.x11.pixmap == pm))
+ Evas_Native_Surface *ens = im->native.data;
+ if ((ens->data.x11.visual == vis) && (ens->data.x11.pixmap == pm))
return im;
}
}
if (n)
{
int pixmap_att[20];
- int target = 0;
- int i = 0;
+ unsigned int target = 0;
+ unsigned int i = 0;
eina_hash_add(re->win->gl_context->shared->native_hash, &pmid, im);
if ((re->win->depth_cfg[depth].tex_target &
if ((eng_image_colorspace_get(data, image) == EVAS_COLORSPACE_YCBCR422P601_PL) ||
(eng_image_colorspace_get(data, image) == EVAS_COLORSPACE_YCBCR422P709_PL))
w &= ~0x1;
- if ((im_old) && (im_old->im->cache_entry.w == w) && (im_old->im->cache_entry.h == h))
+ if ((im_old) &&
+ ((int)im_old->im->cache_entry.w == w) &&
+ ((int)im_old->im->cache_entry.h == h))
return image;
if (im_old)
{
static int _sdl16_image_constructor (Engine_Image_Entry *ie, void* data);
static void _sdl16_image_destructor (Engine_Image_Entry *eim);
-static void _sdl16_image_dirty_region(Engine_Image_Entry *eim, int x, int y, int w, int h);
+static void _sdl16_image_dirty_region(Engine_Image_Entry *eim, unsigned int x, unsigned int y, unsigned int w, unsigned int h);
static int _sdl16_image_dirty (Engine_Image_Entry *dst, const Engine_Image_Entry *src);
_tmp_out_alloc(Render_Engine *re)
{
Tilebuf_Rect *r;
- int w = 0, h = 0;
+ unsigned int w = 0, h = 0;
EINA_INLIST_FOREACH(re->rects, r)
{
- if (r->w > w) w = r->w;
- if (r->h > h) h = r->h;
+ if (r->w > (int)w) w = r->w;
+ if (r->h > (int)h) h = r->h;
}
if (re->tmp_out)
d = (Soft16_Image *) re->soft16_engine_image->cache_entry.src;
s = re->tmp_out;
- if ((w < 1) || (h < 1)
- || (out_x >= d->cache_entry.w) || (out_y >= d->cache_entry.h))
+ if ((w < 1) || (h < 1) ||
+ (out_x >= (int)d->cache_entry.w) || (out_y >= (int)d->cache_entry.h))
return;
if (re->rot == 90)
}
static void
-_sdl16_image_dirty_region(Engine_Image_Entry *eim, int x, int y, int w, int h)
+_sdl16_image_dirty_region(Engine_Image_Entry *eim, unsigned int x, unsigned int y, unsigned int w, unsigned int h)
{
SDL_Engine_Image_Entry *dst;
RGBA_Image *im;
_tmp_out_alloc(Render_Engine *re)
{
Tilebuf_Rect *r;
- int w = 0, h = 0;
+ unsigned int w = 0, h = 0;
EINA_INLIST_FOREACH(re->rects, r)
{
- if (r->w > w) w = r->w;
- if (r->h > h) h = r->h;
+ if (r->w > (int)w) w = r->w;
+ if (r->h > (int)h) h = r->h;
}
if (re->tmp_out)
d = re->shbuf->im;
s = re->tmp_out;
- if ((w < 1) || (h < 1) || (out_x >= d->cache_entry.w) || (out_y >= d->cache_entry.h))
+ if ((w < 1) || (h < 1) ||
+ (out_x >= (int)d->cache_entry.w) || (out_y >= (int)d->cache_entry.h))
return;
if (re->rot == 90)
_tmp_out_alloc(Render_Engine * re)
{
Tilebuf_Rect *r;
- int w = 0, h = 0;
+ unsigned int w = 0, h = 0;
EINA_INLIST_FOREACH(re->rects, r)
{
- if (r->w > w)
+ if (r->w > (int)w)
w = r->w;
- if (r->h > h)
+ if (r->h > (int)h)
h = r->h;
}
d = re->shbuf->im;
s = re->tmp_out;
- if ((w < 1) || (h < 1) || (out_x >= d->cache_entry.w)
- || (out_y >= d->cache_entry.h))
+ if ((w < 1) || (h < 1) ||
+ (out_x >= (int)d->cache_entry.w) ||
+ (out_y >= (int)d->cache_entry.h))
return;
if (re->rot == 90)
(p[0].y <= p[2].y) &&
(p[0].u == 0) &&
(p[0].v == 0) &&
- (p[1].u == (im->cache_entry.w << FP)) &&
+ (p[1].u == (int)(im->cache_entry.w << FP)) &&
(p[1].v == 0) &&
- (p[2].u == (im->cache_entry.w << FP)) &&
- (p[2].v == (im->cache_entry.h << FP)) &&
+ (p[2].u == (int)(im->cache_entry.w << FP)) &&
+ (p[2].v == (int)(im->cache_entry.h << FP)) &&
(p[3].u == 0) &&
- (p[3].v == (im->cache_entry.h << FP)) &&
+ (p[3].v == (int)(im->cache_entry.h << FP)) &&
(p[0].col == 0xffffffff) &&
(p[1].col == 0xffffffff) &&
(p[2].col == 0xffffffff) &&
Ximage_Info *(*ximage_info_get)(Display *connection, Drawable draw, Visual *vis);
void (*ximage_info_free)(Ximage_Info *xinf);
- void (*ximage_info_pool_flush)(Ximage_Info *xinf, int max_num, int max_mem);
+ void (*ximage_info_pool_flush)(Ximage_Info *xinf, unsigned int max_num, unsigned int max_mem);
Ximage_Image *(*ximage_new)(Ximage_Info *xinf, int w, int h, int depth);
void (*ximage_free)(Ximage_Image *xim);
void (*ximage_put)(Ximage_Image *xim, Drawable draw, int x, int y, int w, int h);
void *fmt1;
void *fmtdef;
} x11;
- int depth;
- int pool_mem;
+ unsigned int depth;
+ unsigned int pool_mem;
Eina_List *pool;
unsigned char can_do_shm;
Xrender_Surface *mul;
/* ximage support calls (ximage vs xshmimage, cache etc.) */
Ximage_Info *_xr_xlib_image_info_get(Display *disp, Drawable draw, Visual *vis);
void _xr_xlib_image_info_free(Ximage_Info *xinf);
-void _xr_xlib_image_info_pool_flush(Ximage_Info *xinf, int max_num, int max_mem);
+void _xr_xlib_image_info_pool_flush(Ximage_Info *xinf, unsigned int max_num, unsigned int max_mem);
Ximage_Image *_xr_xlib_image_new(Ximage_Info *xinf, int w, int h, int depth);
void _xr_xlib_image_free(Ximage_Image *xim);
void _xr_xlib_image_put(Ximage_Image *xim, Drawable draw, int x, int y, int w, int h);
#ifdef BUILD_ENGINE_XRENDER_XCB
Ximage_Info *_xr_xcb_image_info_get(xcb_connection_t *conn, xcb_screen_t *screen, xcb_drawable_t draw, xcb_visualtype_t *visual);
void _xr_xcb_image_info_free(Ximage_Info *xinf);
-void _xr_xcb_image_info_pool_flush(Ximage_Info *xinf, int max_num, int max_mem);
+void _xr_xcb_image_info_pool_flush(Ximage_Info *xinf, unsigned int max_num, unsigned int max_mem);
Ximage_Image *_xr_xcb_image_new(Ximage_Info *xinf, int w, int h, int depth);
void _xr_xcb_image_free(Ximage_Image *xim);
void _xr_xcb_image_put(Ximage_Image *xim, xcb_drawable_t draw, int x, int y, int w, int h);
}
void
-_xr_xcb_image_info_pool_flush(Ximage_Info *xinf, int max_num, int max_mem)
+_xr_xcb_image_info_pool_flush(Ximage_Info *xinf, unsigned int max_num, unsigned int max_mem)
{
if ((xinf->pool_mem <= max_mem) && (eina_list_count(xinf->pool) <= max_num)) return;
while ((xinf->pool_mem > max_mem) || (eina_list_count(xinf->pool) > max_num))
}
void
-_xr_xlib_image_info_pool_flush(Ximage_Info *xinf, int max_num, int max_mem)
+_xr_xlib_image_info_pool_flush(Ximage_Info *xinf, unsigned int max_num, unsigned int max_mem)
{
if ((xinf->pool_mem <= max_mem) && (eina_list_count(xinf->pool) <= max_num)) return;
while ((xinf->pool_mem > max_mem) || (eina_list_count(xinf->pool) > max_num))
static Eina_Bool
evas_image_load_file_head_jpeg_internal(Image_Entry *ie, FILE *f, int *error)
{
- int w, h, scalew, scaleh;
+ unsigned int w, h, scalew, scaleh;
struct jpeg_decompress_struct cinfo;
struct _JPEG_error_mgr jerr;
}
else if ((ie->load_opts.w > 0) && (ie->load_opts.h > 0))
{
- int w2 = w, h2 = h;
+ unsigned int w2 = w, h2 = h;
if (ie->load_opts.w > 0)
{
w2 = ie->load_opts.w;
h2 = (ie->load_opts.w * h) / w;
if ((ie->load_opts.h > 0) && (h2 > ie->load_opts.h))
{
- int w3;
+ unsigned int w3;
h2 = ie->load_opts.h;
w3 = (ie->load_opts.h * w) / h;
if (w3 > w2)
static Eina_Bool
evas_image_load_file_data_jpeg_internal(Image_Entry *ie, FILE *f, int *error)
{
- int w, h;
+ unsigned int w, h;
struct jpeg_decompress_struct cinfo;
struct _JPEG_error_mgr jerr;
DATA8 *ptr, *line[16], *data;
DATA32 *ptr2;
- int x, y, l, i, scans;
+ unsigned int x, y, l, i, scans;
int region = 0;
cinfo.err = jpeg_std_error(&(jerr.pub));
if (cinfo.output_components == 4)
{
// FIXME: handle region
- for (i = 0; i < cinfo.rec_outbuf_height; i++)
+ for (i = 0; (int)i < cinfo.rec_outbuf_height; i++)
line[i] = data + (i * w * 4);
for (l = 0; l < h; l += cinfo.rec_outbuf_height)
{
}
t = get_time();
*/
- for (i = 0; i < cinfo.rec_outbuf_height; i++)
+ for (i = 0; (int)i < cinfo.rec_outbuf_height; i++)
line[i] = data + (i * w * 3);
for (l = 0; l < h; l += cinfo.rec_outbuf_height)
{
/* We finally handle RGB with 1 component */
else if (cinfo.output_components == 1)
{
- for (i = 0; i < cinfo.rec_outbuf_height; i++)
+ for (i = 0; (int)i < cinfo.rec_outbuf_height; i++)
line[i] = data + (i * w);
for (l = 0; l < h; l += cinfo.rec_outbuf_height)
{
else if ((ie->load_opts.w > 0) &&
(ie->load_opts.h > 0))
{
- int w2, h2;
+ unsigned int w2, h2;
w2 = ie->load_opts.w;
h2 = (ie->load_opts.w * h) / w;
if (h2 > ie->load_opts.h)
{
- int w3;
+ unsigned int w3;
h2 = ie->load_opts.h;
w3 = (ie->load_opts.h * w) / h;
if (w3 > w2)
else if ((ie->load_opts.w > 0) &&
(ie->load_opts.h > 0))
{
- int w2, h2;
+ unsigned int w2, h2;
w2 = ie->load_opts.w;
h2 = (ie->load_opts.w * h) / w;
DATA32 *ptr;
JSAMPROW *jbuf;
int y = 0;
- int i, j;
if (!im || !im->image.data || !file)
return 0;
ptr = im->image.data;
while (cinfo.next_scanline < cinfo.image_height)
{
+ unsigned int i, j;
for (j = 0, i = 0; i < im->cache_entry.w; i++)
{
buf[j++] = ((*ptr) >> 16) & 0xff;
png_structp png_ptr;
png_infop info_ptr;
DATA32 *ptr, *data = NULL;
- int x, y, j;
+ unsigned int x, y, j;
png_bytep row_ptr, png_data = NULL;
png_color_8 sig_bit;
int num_passes = 1, pass;