add comments in cserve2 bin webp loader too.

SVN revision: 79316
This commit is contained in:
Carsten Haitzler 2012-11-15 05:23:40 +00:00
parent c417fab157
commit 515d08491d
1 changed files with 4 additions and 1 deletions

View File

@ -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);