aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2012-11-15 05:23:40 +0000
committerCarsten Haitzler <raster@rasterman.com>2012-11-15 05:23:40 +0000
commit515d08491d86ae7eebd9e9f71ac24d03ef93b511 (patch)
tree12b26d26fb8ed45aec749b4050b80bc64a62b21e
parentyet more warn-- (diff)
downloadefl-515d08491d86ae7eebd9e9f71ac24d03ef93b511.tar.gz
add comments in cserve2 bin webp loader too.
SVN revision: 79316
-rw-r--r--src/bin/evas/loaders/webp/evas_image_load_webp.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/bin/evas/loaders/webp/evas_image_load_webp.c b/src/bin/evas/loaders/webp/evas_image_load_webp.c
index c0c89d3f48..70c52c461f 100644
--- a/src/bin/evas/loaders/webp/evas_image_load_webp.c
+++ b/src/bin/evas/loaders/webp/evas_image_load_webp.c
@@ -23,6 +23,7 @@ evas_image_load_file_head_webp(Evas_Img_Load_Params *ilp, const char *file, cons
size_t header_size = 30;
uint8_t header[30];
+ // XXX: use eina_file to mmap things
f = fopen(file, "rb");
if (!f)
{
@@ -61,9 +62,10 @@ evas_image_load_file_data_webp(Evas_Img_Load_Params *ilp, const char *file, cons
{
FILE *f;
size_t file_size;
- uint8_t *data, *decoded;
+ void *data, *decoded;
int width, height;
+ // XXX: use eina_file to mmap things
f = fopen(file, "rb");
if (!f)
{
@@ -104,6 +106,7 @@ evas_image_load_file_data_webp(Evas_Img_Load_Params *ilp, const char *file, cons
free(data);
goto close_file;
}
+ // XXX: this copy of the surface is inefficient
memcpy(ilp->buffer, decoded, width * height * 4);
evas_cserve2_image_premul(ilp);