Commit Graph

216 Commits

Author SHA1 Message Date
Jiyoun Park 9cce5f3959 From: Jiyoun Park <jy0703.park@samsung.com>
Sometimes, gif loader can miss some previous frame.
In that case, display can be dirty.
If frame N loaded without N-1 make these problem.
I fixed this problem. 
And I modified wrong document.



SVN revision: 62712
2011-08-23 06:08:02 +00:00
Carsten Haitzler 5f365281fd fix buffer over/underflow errors with jpeg mmap load. ugh. mmap adds
pains to loading.



SVN revision: 62584
2011-08-19 06:58:33 +00:00
Daniel Juyung Seo 3277e6b5e0 evas: Fixed indentations with arbitrary files.
SVN revision: 62370
2011-08-12 03:50:57 +00:00
Carsten Haitzler 69e27edbe5 how about you actuallyl fix the code correctly rather than break it?
SVN revision: 62369
2011-08-12 02:34:34 +00:00
Mike Blumenkrantz 25a6b8c980 COMMITS: DO THEM PROPERLY!!!!1111
SVN revision: 62366
2011-08-11 23:18:34 +00:00
Mike Blumenkrantz 8e5ee9e2f5 COMPILE WARNINGS: FIX THEM!!!!!!11111
SVN revision: 62361
2011-08-11 21:35:17 +00:00
Jiyoun Park dae46003e7 From: Jiyoun Park <jy0703.park@samsung.com>
Subject: RE: [E-devel] [Patch] Animation gif feature patch

Animated gif suport in evas and api's to handle animated images and
frame flipping. from jy.



SVN revision: 62331
2011-08-11 06:04:08 +00:00
Cedric BAIL 1dc2512897 efl: remove mman as we Eina_File now.
Patch from Vincent Torri.


SVN revision: 62244
2011-08-09 09:19:25 +00:00
Carsten Haitzler 7239b6894f thanks jiyoun... for finding this... silly me... spank spank me.
SVN revision: 61935
2011-08-01 07:34:05 +00:00
Carsten Haitzler 7542b592c0 SOMEONE.... changed the evas jpeg loader to use a membuf src... like
eina_file.... and that SOMEONE didnt check to see if libjpeg always
calls the term func... lkike when decoding headers... when it DOESNT.
force the term func to be called whenever destroying the compress
anyway (and if its already done it'll savely just return and not free
anything)



SVN revision: 61914
2011-07-30 01:13:29 +00:00
Jiyoun Park 81098de5a6 evas: fix _evas_jpeg_membuf_src_skip bug
If file was corrupted , the size value of app frame is bigger than real file
size.

For example, if somebody change file using editor, the file start with (FF
D8 FF E0 FF DB ..).

But real file size can be small than (FF DB).

In that case, _evas_jpeg_membuf_src_skip set src->pub.bytes_in_buffer to
negative value, it make crash later.

Signed-off-by: Jiyoun Park <jy0703.park@samsung.com>

SVN revision: 61222
2011-07-11 02:29:16 +00:00
Carsten Haitzler 17a27a3763 use eina mmap safety.
SVN revision: 60982
2011-07-04 09:44:11 +00:00
Cedric BAIL 2759f47524 evas: raise level of warning.
SVN revision: 60758
2011-06-28 14:26:22 +00:00
Jiyoun Park 8729820393 From: Jiyoun Park <jy0703.park@samsung.com>
Subject: [E-devel] [Patch] Evas_image_load_gif bug fix

I found if gif file didn't have colormap, evas make segmentation fault. 
So I add null check code of the gif color map . 



SVN revision: 60337
2011-06-15 09:34:16 +00:00
Boris Faure e6119fa4d9 remove .cvsignore files
SVN revision: 60246
2011-06-12 21:38:37 +00:00
Cedric BAIL 1e62ad24a3 evas: use Eina_File for JPEG loader.
SVN revision: 60039
2011-06-07 13:34:18 +00:00
Cedric BAIL 2600ac9160 evas: use Eina_File when possible.
SVN revision: 59645
2011-05-24 10:19:06 +00:00
Vincent Torri 70c27550cf Evas: Fix compilation with libjpeg 8 on Windows.
SVN revision: 59609
2011-05-23 06:45:19 +00:00
Carsten Haitzler 59bc413e1f handle surf alloc failures.
SVN revision: 59524
2011-05-19 09:28:43 +00:00
Carsten Haitzler 3789e32040 check return of alloc surf for eet loader.
SVN revision: 59523
2011-05-19 09:25:31 +00:00
Carsten Haitzler 19b70919ad small fix - check surface alloc return and reurn alloc failure.
SVN revision: 59522
2011-05-19 09:22:35 +00:00
Vincent Torri f0cbd4add5 add some guards for non Windows headers and reorder
alphabetically some autotools stuff

SVN revision: 59393
2011-05-15 05:42:30 +00:00
Carsten Haitzler 9d945dd593 fix svg load WITH scaling - scale down size request broken. 2
different sizing methods.



SVN revision: 59329
2011-05-11 11:26:51 +00:00
Cedric BAIL ba96d1220f evas: actually check if loading header was fine.
SVN revision: 59232
2011-05-06 09:01:18 +00:00
Vincent Torri c7b9d3d14e whitespaces--
SVN revision: 59062
2011-05-01 06:06:56 +00:00
Carsten Haitzler 54f2389187 make generic loader 2 stage (head + data)
SVN revision: 58927
2011-04-26 09:41:07 +00:00
Carsten Haitzler 4af57920a8 fixme++
SVN revision: 58923
2011-04-26 08:45:21 +00:00
Carsten Haitzler 0e57095d06 add generic image loader. allows for GPL loaders, unstable loaders and
more. making a loader is a matter of a binary of a specific name and
evas passes certain input on the cmd-line and your binary produces
output on stdout (and also optionally additionally in a shm or tmp
file).



SVN revision: 58914
2011-04-26 01:03:06 +00:00
Carsten Haitzler 15d22f9c47 warnings--
SVN revision: 58884
2011-04-25 02:36:14 +00:00
Carsten Haitzler 75292cc435 lets have a Makefile.am shall we?
SVN revision: 58882
2011-04-25 02:28:42 +00:00
Cedric BAIL 0cef5e41fe evas: add psd file format support.
Patch from Thierry el Borgi with some rework of myself.

NOTE: I don't have much file to test, so if some don't
contact us with those file and we will fix the loader
if needed.


SVN revision: 58873
2011-04-24 19:45:43 +00:00
Carsten Haitzler c885080057 an initial test at trying pixman instead of evas software rendering.
results... in comments. disabled atm unless u --enable it. only
replaces 1 operation in 2 cases.



SVN revision: 58824
2011-04-22 11:47:14 +00:00
Carsten Haitzler 7722171b96 fix binary ppm loading. that was odd.
SVN revision: 58681
2011-04-15 07:08:14 +00:00
Carsten Haitzler 578ac6f0b6 simplify tiff loader. hoping 64bit bug goes away. :) can't test right
now.



SVN revision: 58577
2011-04-12 06:20:38 +00:00
Vincent Torri e9a7a23536 Evas: formatting and add ico module building
1) i like alphabetical order (build order of modules and configure output

2) ico module was not built

SVN revision: 57747
2011-03-14 20:33:44 +00:00
Carsten Haitzler 6ae518d6d0 handle 1bit icos properly. oops.
make ico loader more robust for broken ico/cur files. ico/cur is a
broken format... but hey. it has to be dealt with.



SVN revision: 57721
2011-03-13 04:41:30 +00:00
Carsten Haitzler 710630d074 Evas: add ico loader!
SVN revision: 57693
2011-03-11 15:07:25 +00:00
Carsten Haitzler 1f2163eeba ok - finally - biran wang... you get your hacky bmp loader.
SVN revision: 57668
2011-03-10 12:11:42 +00:00
Jeonghyun Yun 2c428c4c15 From: Jeonghyun Yun <jh0506.yun@samsung.com>
Subject: Re: [E-devel] [Patch] evas_image_load_bmp small patch

When I tested some bmp files on evas, I found one bmp file is not displayed.
But this bmp file is displayed on windows and linux gimp and etc.
So I checked this bmp file, this file have 208 data per line despite 207
pixel per line!!

I fixed code to skip the data when data is more than width instead of
break. I think this is not bug but evas policy problem.



SVN revision: 57076
2011-02-16 05:44:01 +00:00
Carsten Haitzler 40b908c869 oops somehow missed this commit - part of adding wbmp support. limit
image size macro used. (so no point with a changelog - part of existing).



SVN revision: 56791
2011-02-07 23:06:22 +00:00
Carsten Haitzler 573103fd34 formatting of wbmp loader code fix.
SVN revision: 56625
2011-02-01 09:40:30 +00:00
Carsten Haitzler 75bb165f29 Thanks to samsung - added WBMP loader.
SVN revision: 56624
2011-02-01 09:38:48 +00:00
Carsten Haitzler 3613caf8a5 warning--. ppl been removing headers eh?
SVN revision: 56183
2011-01-16 08:08:13 +00:00
Carsten Haitzler b8398f5035 remove useless statement
SVN revision: 56178
2011-01-16 06:51:03 +00:00
Carsten Haitzler e7bd084847 in case we access other footer elements in future - align it.
SVN revision: 56174
2011-01-16 06:00:12 +00:00
Mike Blumenkrantz 64fcf02198 close file on error
SVN revision: 56103
2011-01-14 06:50:32 +00:00
Mike Blumenkrantz 14ff070f5c comment out some variables which are not currently implemented/used
SVN revision: 56096
2011-01-14 06:21:24 +00:00
Vincent Torri f3df2fcce9 typo
SVN revision: 55858
2011-01-04 23:16:34 +00:00
Gustavo Sverzut Barbieri 379b546adf better logging.
* log domains in lower-case only please. let's make it a standard so
   we don't have to look at the code everytime to figure out the name...

 * logs do NOT require trailing newline (\n), it's automatic!

 * do NOT add newline inside log messages!

 * add gl_common logging.

NOTE: I tried to compile all modules, but there are clear broken
      modules such as cairo and qtopia. Other modules like gl_sdl are
      broken as they were not updated to new gl_common api (resize
      method AFAIR).



SVN revision: 53174
2010-10-07 23:46:42 +00:00
Eduardo de Barros Lima f61a1cb5cb Evas: Don't #define _GNU_SOURCE
Instead use AC_GNU_SOURCE macro in configure.ac and #include <config.h> properly


SVN revision: 53159
2010-10-07 19:52:47 +00:00
Carsten Haitzler 1a72827555 warnings--
warnings = 0.



SVN revision: 52449
2010-09-19 02:43:08 +00:00
Carsten Haitzler 857119a1c2 maybe actually fix things correctly eh? -> images load again.
SVN revision: 52435
2010-09-19 01:14:56 +00:00
Carsten Haitzler 5d15f41500 warning--
SVN revision: 52430
2010-09-18 23:39:30 +00:00
Gustavo Sverzut Barbieri d89ebf341b cleanup: internal image information is now unsigned.
There is no meaning in negative values for image loading, marking as
dirty or size, so image internals (cache, entry) were changed to
unsigned, reducing possible errors, particularly with overflow.

engines were converted to the new way, but any 3rd party modules will
still work as they should be using values >= 0 only anyway.

please review.

new cases introduced by "comparison between signed and unsigned" were
fixed in the modules that used cache_entry or Image_Entry dimensions.



SVN revision: 52428
2010-09-18 23:16:25 +00:00
Gustavo Sverzut Barbieri 19f0eebd27 cleanup: simple clean of "comparison between signed and unsigned errors"
not much to see here, please review but these are simple changes.



SVN revision: 52426
2010-09-18 23:07:31 +00:00
Gustavo Sverzut Barbieri e37c1c7a0a cleanup: fix some "unused" errors from -Wextra.
As we're heading for a release we better remove as much errors as
possible and as the first step I'm removing warnings due unused
parameters, variables and functions. These tend to pollute real errors
spotted by -Wall and clang/llvm.

This does not fixes all, just the clear that could be set to
__UNUSED__, particularly to do (and I'd like some help from the
authors):

 * src/lib/engines/common/evas_font_{draw,query}.c (tasn):
   intl_props is just used while doing BIDI, but also used in other
   #ifdef blocks :-/

 * evas_map_* (raster):
   huge amount of warnings, code is quite confusing and thus I'm not
   touching it. I have no idea whenever the commented blocks or extra
   parameters are intended to be used or no.

 * src/modules/engines/fbevas_fb_main.c (raster?):
   is fb_setvt() to be used? If not do you mind removing it?

 * src/modules/engines/gl_{common,x11} (raster):
   huge amount of warnings, code is quite nested and full of #ifdefs
   that does not help to give a clear picture of what's going on.

 * src/bin/evas_cserve_main.c (raster):
   I could have ignored most of the errors, but is the code correct? I
   mean, there is no unload of images being applied. If you confirm
   none of those warnings are harmful I can flag them as unused.

 * src/lib/engines/common_8 (dottedmag):
   lots of unused functions that were acquired from common_16, they
   are unused and if they will not, then they should be removed.



SVN revision: 52421
2010-09-18 19:17:41 +00:00
Lucas De Marchi 85815e306c Fix common misspellings
Following misspellings were fixed:

accomodate->accommodate
achive->achieve
beacuse->because
caluclate->calculate
cant->can't
carefull->careful
convertion->conversion
dependancy->dependency
dependant->dependent
doesnt->doesn't
existant->existent
extention->extension
fucntion->function
impliment->implement
inital->initial
lenght->length
occured->occurred
occuring->occurring
onyl->only
positon->position
possibilty->possibility
postion->position
proccessing->processing
proccess->process
propogate->propagate
recieve->receive
sucessive->successive
teh->the
ther->there
throught->through
thsi->this
wasnt->wasn't
whcih->which
wheras->whereas




SVN revision: 51965
2010-09-08 03:51:24 +00:00
Chidambar Zinnoury fd44c06b68 Evas SVG loader: if both width and height scale dimensions are given, we want to use the biggest computed dimensions.
Fixes some ugly views if width and height factors are too much different.

   See r51774.

   Thank you Cédric!


SVN revision: 51775
2010-08-31 08:14:39 +00:00
Chidambar Zinnoury e42df55f10 Evas JPEG loader: if both width and height scale dimensions are given, we want to use the biggest computed dimensions.
Fixes some ugly views if width and height factors are too much different.


SVN revision: 51774
2010-08-31 06:50:48 +00:00
Lucas De Marchi 5a8a8c9014 Convert (hopefully) all comparisons to NULL
Apply badzero.cocci, badnull.coci and badnull2.cocci

This should convert all cases where there's a comparison to NULL to simpler
forms. This patch applies the following transformations:

code before patch               ||code after patch
===============================================================

return a == NULL;                 return !a;

return a != NULL;                 return !!a;

func(a == NULL);                  func(!a);

func(a != NULL);                  func(!!a);

b = a == NULL;                    b = !a;

b = a != NULL;                    b = !!a;

b = a == NULL ? c : d;            b = !a ? c : d;

b = a != NULL ? c : d;            b = a ? c : d;


other cases:

a == NULL                         !a
a != NULL                         a




SVN revision: 51487
2010-08-21 13:52:25 +00:00
Christopher Michael cbe3c3a21c Fix placement of __UNUSED__.
SVN revision: 51282
2010-08-18 15:20:48 +00:00
Cedric BAIL c689865500 * evas: remove some warning.
SVN revision: 51281
2010-08-18 15:11:07 +00:00
Lucas De Marchi 0a4617ae38 FORMATTING
* Remove vim modelines:
 find . -name '*.[chx]' -exec sed -i '/\/\*$/ {N;N;/ \* vim:ts/d}' \{\} \;
 find . -name '*.[chx]' -exec sed -i '/\/[\*\/] *vim:/d' \{\} \;

* Remove leading blank lines:
 find . -name '*.[cxh]' -exec sed -i '/./,$!d'

If you use vim, use this in your .vimrc:
set ts=8 sw=3 sts=8 expandtab cino=>5n-3f0^-2{2(0W1st0



SVN revision: 50816
2010-08-04 16:57:32 +00:00
Christopher Michael b115cdf6b5 Remove unused variable(s).
SVN revision: 50716
2010-07-31 16:57:09 +00:00
Lucas De Marchi 2a84379ba9 Remove unneeded code with notnull.cocci script
The notnull.cocci script from Coccinelle finds places where you check if a
variable is NULL, but it's known not to be NULL. The check can be safely
removed. For example, this code would be caught by notnull:

if (!var) return;
if (var && var->fld) { ... }

It's needless to check again if var is not NULL because if it's in fact NULL,
it would have returned on the previous "if". This commit removes all the
trivial places where this pattern happens. Another patch will be generated for
the more complex cases.


SVN revision: 50241
2010-07-14 02:05:47 +00:00
Vincent Torri 7eacb5c1d4 use (A)RGB_JOIN macro
SVN revision: 49562
2010-06-08 05:39:46 +00:00
Carsten Haitzler 05c5b03d5e Snapshot evas
SVN revision: 49532
2010-06-06 17:26:38 +00:00
Vincent Torri a84e00ed28 as we use fopen ourself, no need to use the wrapping for win ce
SVN revision: 49527
2010-06-06 17:18:10 +00:00
Carsten Haitzler d231f624eb distcheck!
SVN revision: 49342
2010-05-31 01:34:43 +00:00
Carsten Haitzler 9621532945 trga loader - snarfed 80% from imlib2. missing paletted mode (just
like the imlib2 one) but.. handles alpha correctly- unlike imlib2 and
manyother loaders.



SVN revision: 49330
2010-05-30 17:48:19 +00:00
Carsten Haitzler 2cf09cdc4a on data load alloc surface only if dimensiosn match
SVN revision: 49329
2010-05-30 15:34:22 +00:00
Carsten Haitzler 5f03706efa oops - left over png thing.
SVN revision: 49328
2010-05-30 14:33:36 +00:00
Carsten Haitzler 6f6730eaf8 for shits and giggles... i wrote a bmp loader. i did look at the old
imlib2 bmp loader, but it was imcomplete compared to the bmp
standards, so i actually ended up reading the file format definitions
on line i could find and using lots of test images... wrote a new one.
you can at least view bmp files now. note - i found 1 bmp file that
claims to have an alpha channel (amask is non-empty) and then proceeds
to provide an image with pixels - all alpha 0. so its transparent when
it shouldnt be. beats me but looks like a broken bmp file to me when
it compes to specs.



SVN revision: 49324
2010-05-30 13:04:34 +00:00
Cedric BAIL 7c0098c1a3 * evas: fix race condition when file change between header read and data read.
WARNING: THIS RACE STILL EXIST IF YOU USE JPEG REGION.


SVN revision: 48200
2010-04-21 13:47:42 +00:00
Vincent Torri fb9bde702e static int for the log domain. Thanks, Gustavo
SVN revision: 47850
2010-04-08 22:55:54 +00:00
Vincent Torri fee33f22cb add eina log stuff
SVN revision: 47837
2010-04-08 17:39:01 +00:00
Gustavo Sverzut Barbieri f96faf0b67 stop using rsvg_term()
given that rsvg seems to be causing random problems for those using
svg icons in E17, I consider Lennart's advice to stop using
rsvg_term() quite useful.

Yeah... not everybody does excellent reference counted module
init/shutdown... shame on you ;-) (/me looks at fontconfig and couple
of others as well).


References:
 - http://0pointer.de/blog/projects/beware-of-rsvg-term
 - https://bugzilla.gnome.org/show_bug.cgi?id=592100



SVN revision: 47403
2010-03-23 22:13:51 +00:00
Carsten Haitzler 422bf813d4 theoraticel bug - llvm report. wouldnt actually happen if api used right.
SVN revision: 46765
2010-03-02 02:14:39 +00:00
Nicholas Hughart 9b343e33e3 libpng 1.4 no longer has png_check_sig, png_sig_cmp should be used instead. This exists in 1.2 as well and I'd hope noone is still on the 1.0 branch.
SVN revision: 45620
2010-01-27 05:52:27 +00:00
Cedric BAIL 6a0668110d * evas: Fix segv source by checking result before using it.
SVN revision: 45301
2010-01-18 20:04:21 +00:00
Cedric BAIL 7c00860cc1 * evas: Loader can now tell if they could be used in another thread or not.
xpm and svg loader don't allow preload at this time.


SVN revision: 44714
2009-12-24 13:15:34 +00:00
Cedric BAIL b28cf65fcc * evas: Fix typo.
SVN revision: 44679
2009-12-23 10:50:07 +00:00
Gustavo Sverzut Barbieri 51c00c6526 fix evas image loading error reporting.
Evas image load was always reporint "generic" error, since it was
disconnected from actual loader modules.

This commit will break the module loader API (as it's restricted to
inside Evas, this should be no problem). The return was turned into
"Eina_Bool" for clarity, while an extra "int *error" is responsible to
report errors. This approach was choosen to force compiler warnings
and to try avoid mistakes as EINA_FALSE == EVAS_LOAD_ERROR_NONE and
thus we'd get opposite behavior if something slips.

Most loaders play well, except by eet that does not provide means to
know if the file open failed due missing file, incorrect format or
corrupted file :-(

Please report any issues. I added eina_log debugging to loader
functions, just run your Evas application as:

     EINA_LOG_LEVELS=evas_main:4 your_app




SVN revision: 44666
2009-12-22 23:11:57 +00:00
Cedric BAIL a27c701f27 * evas: Remove lot's of warning.
SVN revision: 44629
2009-12-21 15:52:12 +00:00
Vincent Torri f60b381333 Fix some warnings. I don't touch gl engines for now
SVN revision: 43221
2009-10-22 22:33:06 +00:00
Cedric BAIL 0cf81bc080 * evas: Fix missing correction.
SVN revision: 43205
2009-10-22 16:39:20 +00:00
Carsten Haitzler 67fd2dd37c default load - 75dpi. like fonts.
SVN revision: 43190
2009-10-22 06:40:58 +00:00
Cedric BAIL c259d8addd * evas: Use eina_log.
Patch from Matthieu.


SVN revision: 42598
2009-09-21 16:08:51 +00:00
Carsten Haitzler 2f87e02f09 more work on jpeg region load. use some hacks i did to libjpeg.
SVN revision: 42593
2009-09-21 12:49:31 +00:00
Carsten Haitzler c61c9643ca handle regions for all jpeg types (cymk, rgb, gray). other formats dont
support this (atm). there is possibly little point in doing so... perhaps
svg... thought maybe tiff too later? for now, get jpeg 100% up to snuff.



SVN revision: 42587
2009-09-20 14:31:48 +00:00
Carsten Haitzler 65f147aa81 make loaders use "big image" macro to detect an image that is going to just
be way too big to ever allocate. probably code can do with other fixes too.

also make jpeg loader rudametarily understand load regions. very brute-force.
but enough for just this moment to do testing.



SVN revision: 42507
2009-09-16 09:48:05 +00:00
Carsten Haitzler f780cc2c8f add "region" load opt. no loader handles it... yet
SVN revision: 42494
2009-09-15 13:34:12 +00:00
Carsten Haitzler 7ee7fb5604 1. make max image size a #define
2. max image size > 65536x65536
3. fix cserve leak
4. fix cserve+async load to work together.



SVN revision: 42406
2009-09-11 13:44:53 +00:00
Iván Briano 0269d38187 Fix build of loaders
SVN revision: 41527
2009-07-28 17:59:26 +00:00
Vincent Torri 39809967cb clean dist rule
SVN revision: 41526
2009-07-28 11:50:22 +00:00
Vincent Torri ddc06185d2 Remove the static options of configure and add
a way to select it with --enable-foo by passing
'static'. Use at your own risks.

If I've messed something up, please report in that thread


SVN revision: 41160
2009-06-22 17:35:31 +00:00
Cedric BAIL eb488748c6 * evas: Fix a few typo preventing a full static build.
SVN revision: 41114
2009-06-19 16:40:21 +00:00
Gustavo Sverzut Barbieri 3c6e35dd10 be explicit about SUBDIRS and DIST_SUBDIRS, fix maintainer-clean.
automake was "smart enough" to include in DIST_SUBDIRS even when 'if'
clause didn't add it to SUBDIRS, that was causing modules like XPM be
added twice, resulting maintainer-clean to double-clean the directory
(one from src/modules/loaders and other from src/lib), failing on the
second time.



SVN revision: 41060
2009-06-16 19:03:28 +00:00
Cedric BAIL 575b0579cd * evas: Move to Eina module and make it possible to build a libevas with
everything in it.

	Note: This patch break the module API, so make sure you recompile and install
	every thing.


SVN revision: 41055
2009-06-16 13:01:36 +00:00
Gustavo Sverzut Barbieri 600d560fc6 Cleanup llvm warnings.
By: michael bouchaud.


SVN revision: 41033
2009-06-14 20:48:37 +00:00