Commit Graph

721 Commits

Author SHA1 Message Date
Carsten Haitzler 87e5e70a9d fix anothe rmap draw bug.
SVN revision: 43917
2009-11-23 10:07:07 +00:00
Cedric BAIL 992a1b4f13 * evas: Add convertion function for 8bpp grayscale no pal (256 and 16 values).
SVN revision: 43491
2009-11-06 15:15:37 +00:00
Carsten Haitzler b2ac7c110a fix mmx code
SVN revision: 43386
2009-11-01 11:45:16 +00:00
Carsten Haitzler 069de70853 add color to the vertexes in map. this allows for fading/shading of
reflections, goraud shading for smooth 3d surfaces, mor realistic lighting
etc. etc. it comes at a small cost, but worth it.



SVN revision: 43384
2009-11-01 01:32:23 +00:00
Vincent Torri 00d1eab6d8 spelling
SVN revision: 43374
2009-10-31 15:18:19 +00:00
Carsten Haitzler 335081d18c ifdef++
SVN revision: 43337
2009-10-29 11:54:47 +00:00
Carsten Haitzler 422faf09fd clean up map - move to #included worker and add mmx - just copied from normal
image scaler actually.



SVN revision: 43336
2009-10-29 06:52:51 +00:00
Carsten Haitzler b0695a6712 fill in last fixme on rendering code and make it better written by moving
comon code blobs to functions.



SVN revision: 43298
2009-10-26 14:06:21 +00:00
Carsten Haitzler b36917b180 smooth map works (down to 1/2 size its good. its pretty much gl_linear, but
in software. but it looks gorgeous. rotations are groovey.



SVN revision: 43226
2009-10-23 13:17:22 +00:00
Vincent Torri e5046c8846 Fix some warnings. I don't touch map code for now.
SVN revision: 43218
2009-10-22 22:22:10 +00:00
Carsten Haitzler 041327008f a little cleaner, but not faster
SVN revision: 43204
2009-10-22 16:06:32 +00:00
Carsten Haitzler a24ad9a1c4 fast path for solid maps.
SVN revision: 43203
2009-10-22 15:51:18 +00:00
Carsten Haitzler 7fce71c5d9 add some beginnigns of utility funcs to evas map. move it to its own file.
SVN revision: 43201
2009-10-22 15:47:30 +00:00
Cedric BAIL 8984a75799 * evas: Cleanup move to eina log.
Patch from Mathieu Taillefumier.


SVN revision: 43200
2009-10-22 15:22:22 +00:00
Carsten Haitzler 43234e9b59 pull smooth... that's not going to be sane. or smooth. hmmm.
SVN revision: 43192
2009-10-22 07:31:25 +00:00
Carsten Haitzler 63ec70ea91 enable smooth path - same as nearest... for now
SVN revision: 43183
2009-10-21 14:53:55 +00:00
Carsten Haitzler ceb6cb9600 handle if uv are out of image coords - clamp. remove unsued bounds checks
(not needed anymore). also fix a black edge.



SVN revision: 43182
2009-10-21 14:45:55 +00:00
Carsten Haitzler 0f138474d6 improve map.. now no rendering or segv bugs (that i have seen). woot. also
handle clipping and clip-outs.



SVN revision: 43178
2009-10-21 09:33:07 +00:00
Carsten Haitzler 8bf3f50b2c map code... works.. with bugs... but works. visually...
SVN revision: 43163
2009-10-20 16:03:57 +00:00
Carsten Haitzler c50ea6b1c8 map image... not used yet.
SVN revision: 43131
2009-10-17 10:25:51 +00:00
Carsten Haitzler 46996c95d3 mini-speedups!
SVN revision: 43037
2009-10-12 15:22:38 +00:00
Carsten Haitzler 37b66e806b new gl engine. no one uses it anyway. not 100% complete, but much better than
the old. and it ALSO does GLES2.0 as well asn GL.



SVN revision: 42982
2009-10-09 12:10:27 +00:00
Carsten Haitzler e30651d7ca more patches from tom
SVN revision: 42828
2009-10-01 05:18:17 +00:00
Carsten Haitzler 0986cd681b init some ptrs to null.
SVN revision: 42823
2009-09-30 22:30:12 +00:00
Tom 39b6c9148c From: Tom <tom@stosb.com> (tasn)
Hey raster,

Here is the non intrusive patch I talked to you about. Please apply it as it
introduces some fixes, some improvements and mostly and underlying
infrastructure for future RTL improvements.

(note hebrew & yiddish seem fine, but things expedite test seems to show are
wrong (why i don't know as i dont speak the langs- just comparing to pango /
gtk output):

arabic seems lsightl wrong (maybe composition chars not working?)
gujarati - also seems wrong
malayam - also looks wrong
persian - looks wrong
sinhala - looks wrong
tamil - looks wrong

these are what, appear to me, to look wrong. why they look wrong, i don't
know. i'm guessing its compositiong not being handled. but i dont's peak,
read or write any of these languages so i am unsure of what it really should
be like, why and how to fix it.

anyone want to put up a hand? (everything else is displaying fine as best i
can tell - the langauges i read/speak/somewhat understand are working fine).



SVN revision: 42814
2009-09-30 04:23:21 +00:00
Vincent Torri 165a507ce2 move declaration of variables at the beginning of the block
SVN revision: 42627
2009-09-22 22:37:03 +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 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
Mikhail Gusarov 226e4e5e16 From: Mikhail Gusarov <dottedmag@dottedmag.net>
Subject: [E-devel] [evas] Add RGBA -> grayscale 64 entries palette conversion

This is needed for E-Ink devices outta there. Names of new files,
configure.ac variables and macros are awful, suggestions are welcome.



SVN revision: 41825
2009-08-17 01:41:07 +00:00
Gustavo Sverzut Barbieri 09bb18e727 need to set trailing NULL as it will not be done automatically.
SVN revision: 41708
2009-08-12 16:02:32 +00:00
Carsten Haitzler c3c692269a Ticket #372 - patch. fix.
SVN revision: 41563
2009-08-03 08:19:12 +00:00
Cedric BAIL 5784d74daa * eina: Add eina_cpu_count.
SVN revision: 41543
2009-07-30 16:45:15 +00:00
Mikhail Gusarov d6af88ef6c patch from: Mikhail Gusarov <dottedmag@dottedmag.net>
evas_common_font_utf8_get_prev currently works correctly only on an
ASCII symbols. For non-ASCII it just returns random garbage somehow
constructed from a string.

Attached patch makes it work according to the comment at the start.



SVN revision: 41292
2009-07-10 06:06:37 +00:00
Cedric BAIL 7a94d9de85 * evas: Try all known modules when testing an unknown file.
SVN revision: 41262
2009-07-07 11:07:43 +00:00
Cedric BAIL 1676145494 * evas: Reduce code duplication.
SVN revision: 41228
2009-07-01 14:05:04 +00:00
Carsten Haitzler e420003d7e add a zero of cpu.. just in case.
SVN revision: 41195
2009-06-25 14:59:12 +00:00
Cedric BAIL 0c9aead634 Evas_Rectangle are gone. We now use Eina_Rectangle and memory pool is
shared accross the application.


SVN revision: 41170
2009-06-23 13:57:27 +00:00
Cedric BAIL 42e610f81b * evas: Reduce malloc/free done by Fribidi use in evas.
Note: More could be done to improve this situation.


SVN revision: 41169
2009-06-23 13:51:41 +00:00
Gustavo Sverzut Barbieri 0567fd7bf2 improve sched_getaffinity() usage.
* handle error code and print out error message, this should remove
   invalid access traces from valgrind.

 * give "0" as pid to get self affinity, this is documented in the man
   page.



SVN revision: 41118
2009-06-20 06:34:20 +00:00
Cedric BAIL 5d0a773fef * evas: Use Eina hash improvements.
SVN revision: 41101
2009-06-18 12:14:29 +00:00
Cedric BAIL 6d0ee81526 * evas: Remove Evas_Bool.
SVN revision: 41067
2009-06-17 10:01:52 +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
Cedric BAIL 0839ec65ea * Evas: Improve RGBA_Font_* cache using hash and stringshare correctly.
Note: This should not impact font rendering, but if you notice anything
	wrong, please don't hesitate to report this to me.


SVN revision: 41050
2009-06-15 15:07:13 +00:00
Cedric BAIL f63beb3edf * Evas: Remove allocation/free from the critical path.
SVN revision: 41048
2009-06-15 14:34:33 +00:00
Gustavo Sverzut Barbieri 600d560fc6 Cleanup llvm warnings.
By: michael bouchaud.


SVN revision: 41033
2009-06-14 20:48:37 +00:00
Gustavo Sverzut Barbieri 3e04e9ec3f cleanup llvm warnings by michael bouchaud.
By: michael bouchaud.


SVN revision: 41024
2009-06-13 00:04:25 +00:00
Carsten Haitzler c3b8b4ee14 revertg big R to L patches because they break cursors and selection.... BACK
boy BACK!



SVN revision: 40783
2009-05-22 21:12:32 +00:00
Iván Briano 5888d62400 Make fribidi truly optional
SVN revision: 40755
2009-05-20 03:14:29 +00:00
Vincent Torri 0c233cfcf3 missing declaration of evas_common_font_query_last_up_to_pos()
patch by Lars Munch (previous one too)


SVN revision: 40729
2009-05-18 17:33:54 +00:00
Carsten Haitzler e999c88e80 tasn's rtl pathes and improvements... continued!
SVN revision: 40715
2009-05-18 06:08:15 +00:00
Carsten Haitzler c830f68a06 1. fix scalecache to actually respect env vars set!
2. fix textblock cursor stuff in corner case.



SVN revision: 40617
2009-05-13 12:20:14 +00:00
Carsten Haitzler 47f6f036c1 fix load opts to only unload/reload if opts changed for cserve
SVN revision: 40573
2009-05-10 03:06:49 +00:00
Carsten Haitzler f79b4a4a2f 1. scalecache config env vars an use them
2. more api's related to cserve



SVN revision: 40548
2009-05-08 11:26:25 +00:00
Carsten Haitzler 85bff718d6 1. scale cache now allows you to hint at the object if its dynamic, static or
none (ie default) and the engines actually understand it and use it.
2. fixes to scalecache and cserver too. more toto's done and its now been
stress tested by me - and i think cserve is ready to go gold. just enable it
with export EVAS_CSERVE=1 in your env for any eflapps - and run evas_cserve
(cmd-line options avalable plus cmd-line tol to query settings change on the
fly and query statsitics and state)



SVN revision: 40536
2009-05-07 13:29:56 +00:00
Carsten Haitzler d92a6d99a7 more cserver work for sharede cache- improvements
SVN revision: 40524
2009-05-06 12:36:06 +00:00
Gustavo Sverzut Barbieri 8ef8b1e15a fix build of cserve with -fvisibility=hidden.
SVN revision: 40486
2009-05-02 15:53:48 +00:00
Carsten Haitzler 46e8aa1b0d shared cache server++
is it ok?

1. it can be --disabled in evas's configure, but i think it works WITHOUT
disabling it (runtime) as it falls back to the old way of loading
2. it may cause build problems on some platforms - without it being enabled
we won't find out, so enable.
3. it needs enabling runtime to make use of it so it should be safe for now
until you enable it.

what is it?

it is a SHARED cache server - that means images loaded are loaded BY the
cache server (not by the actual process using evas). images are shared via
shared memory segments (shm_open + mmap). this means only 1 copy is in all
ram at any time - no matter how many processes need it , and its only loaded
once. also if another app has already loaded the same data - and its in the
cache or active hash, then another process needing the same stuff will avoid
the loads as it will just get instant replies from the cache of "image already
there". as it runs in its own process it can also time-out images from the
cache too.

right now you enable it by doing 2 things

1. run evas_cserve (it has cmd-line options to configure cache etc.
2. export EVAS_CSERVE=1 (im the environment of apps that should use the cache
server).

it works (for me) without crashes or problems. except for the following:

1. preloading doesnt work so its disabled if cserve is enabled. thisis
because the load threads interfere withthe unix comms socket causing
problems. this need to really change and have the cserve know about/do
preload and let the select() on the evas async events fd listen for the
unsolicited reply "load done". but it's not broken - simple preloads are
syncronous and forced if cserve is enabled (at build time).
2. if cserve is killed/crashes every app using it will have a bad day. baaad
day. so dont do it. also cserve may be vulnerable to apps crashing on it - it
may also exit with sigpipe. this needs fixing.
3. if the apps load using relative paths - this will break as it doesnt
account for the CWD of the client currently. will be fixed.
4. no way to change cache config runtime (yet)
5. no way to get internal cache state (yet).
6. if cache server exist - it wont clean up the shmem file nodes in /dev/shm
- it will clean on restart (remove the old junk). this needs fixing.

if you fine other issues - let me know.

things for the future:

1. now its a separate server.. the server could do async http etc. loads too
2. as a server it could monitor history of usage of files and images and
auto-pre-load files it knows historically are loaded then whose data is 
immediately accessed.
3. the same infra could be used to share font loads (freetype and/or 
fontconfig data).
4. ultimately being able to share rendered font glyphs will help a lot too.
5. it could, on its own, monitor "free memory" and when free memory runs
load, reduce cache size dynamically. (improving low memory situations).
6. it should get a gui to query cache state/contents and display visually.
this would be awesome to have a list of thumbnails that show whats in the
cache, how many referencesa they have, last active timestamps etc.

blah blah.

please let me know if the build is broken asap though as i will vanish
offline for a bit in about 24hrs...



SVN revision: 40478
2009-05-01 07:11:07 +00:00
Mike Frysinger 0041222bb0 pull in evas_common.h for evas_string_char_len_get() decl
SVN revision: 40428
2009-04-28 05:06:48 +00:00
Iván Briano 554dccdb0b some formatting
SVN revision: 40343
2009-04-24 04:35:52 +00:00
Iván Briano 6c7831c3ab Build against newer Fribidi
SVN revision: 40341
2009-04-24 00:21:26 +00:00
Carsten Haitzler 99ccf484f8 snapworth quality - distchecked. sonames bumped. rev's bumped. tarballs
uploaded.



SVN revision: 40284
2009-04-22 14:07:05 +00:00
Vincent Torri cc2916b58f add evas_intl_utils.h to extra dist (fix make distcheck)
reported by Albin Tonnerre


SVN revision: 40243
2009-04-19 22:06:59 +00:00
Carsten Haitzler 38811d99c5 cleanup on shutdown better
SVN revision: 40242
2009-04-19 20:40:41 +00:00
Iván Briano 994190d144 Don't leak, and be consistent with return values.
SVN revision: 40101
2009-04-16 04:52:33 +00:00
Carsten Haitzler ce6094df3f move fribidi link to main lib
SVN revision: 40082
2009-04-15 12:01:05 +00:00
Carsten Haitzler 2f0458439a and actually enable th RTL code!
SVN revision: 39981
2009-04-11 13:11:10 +00:00
Carsten Haitzler e279ba4bbe more files!
SVN revision: 39974
2009-04-11 08:11:47 +00:00
Carsten Haitzler 02f87aeaf5 and add files!
SVN revision: 39973
2009-04-11 08:06:50 +00:00
Carsten Haitzler c89a71c6c2 TAsn: patch from tasn. use libfribid for Right-to-left text.
this (apparently) makes right-to-left work for display. that means:

hebrew
yiddish
arabic
persian
...

i don't read (or write ... or speak) an of these...

so.. i'll leave it up to others to find bugs/problems and send patches.
thanks a huge amount to TAsn for the patch!



SVN revision: 39972
2009-04-11 07:51:20 +00:00
Carsten Haitzler b0b043f443 scalecache tracks normal cache size etc. etc. etc.
SVN revision: 39907
2009-04-09 13:20:00 +00:00
Carsten Haitzler d5cfffc3c2 add - in theory rgb24+32 666 support (ezx).
SVN revision: 39836
2009-04-03 01:00:54 +00:00
Carsten Haitzler 9c4c129125 hmm some more generous params for sc.
SVN revision: 39808
2009-03-31 04:12:09 +00:00
Carsten Haitzler 44dc876479 remove accounting info not used atm.
SVN revision: 39766
2009-03-28 02:50:19 +00:00
Carsten Haitzler 9dbf47682d oops and fix the flags!
SVN revision: 39762
2009-03-27 14:11:27 +00:00
Carsten Haitzler 28034d840b cover not good speedup case.
SVN revision: 39760
2009-03-27 13:46:53 +00:00
Carsten Haitzler df68d791b5 enable cache again
SVN revision: 39745
2009-03-27 07:34:45 +00:00
Carsten Haitzler 5f0c7389a2 fix non-scalecache mode
SVN revision: 39744
2009-03-27 07:22:46 +00:00
Carsten Haitzler 66cc98b0f4 also be able to free orig data now (and reload)
SVN revision: 39743
2009-03-27 06:06:45 +00:00
Carsten Haitzler e0a8a97b6d now enough logic to know when to unload original... now just need to make
unloaidng possible without instant-reload.



SVN revision: 39742
2009-03-27 03:50:03 +00:00
Carsten Haitzler 1a224311d6 make pipe renderer separate to thread support - off by default.
SVN revision: 39740
2009-03-27 01:48:58 +00:00
Carsten Haitzler 3335fef2aa found it! i was building without threading for realistic testing. lock issue.
fixed.



SVN revision: 39739
2009-03-27 00:30:41 +00:00
Gustavo Sverzut Barbieri 02d715fa7c brokes e17, canola and most things?
dunno why, but at least it does for me and some users at #e/#edevelop,
e17 freezes at start, so does canola and other evas apps, maybe due
64-bits? No time to investigate right now (at a conference).



SVN revision: 39738
2009-03-26 21:48:24 +00:00
Carsten Haitzler 29216b4a78 for now... enable scalecache. i havent seen it crash e or expedite or
elementary nor leak... so .. let's see. not 100% done yet. but good.



SVN revision: 39724
2009-03-26 12:47:44 +00:00
Carsten Haitzler a3f68ea9d9 1. a bunch of neon asm infra and some asm, but only the neon that works is
enabled. the blending is not working/complete. the neon for fills and copies
isnt actually faster though currently :(
2. scalecache infra - disabled for now. working on it.



SVN revision: 39723
2009-03-26 07:14:08 +00:00
Gustavo Sverzut Barbieri 74ece51f0b warnings--
SVN revision: 39593
2009-03-19 19:29:05 +00:00
Cedric BAIL f6a3045ce3 * evas: Add forgottent file needed for make dist.
SVN revision: 39583
2009-03-19 16:21:09 +00:00
Gustavo Sverzut Barbieri 1213744f42 fix image_data_put on software 16 bits engine.
SVN revision: 39537
2009-03-17 20:57:02 +00:00
Sebastian Dransfeld 8d40d92f83 Check whether functions exist before executing them.
SVN revision: 39521
2009-03-17 13:39:23 +00:00
Carsten Haitzler 09176167bd more neon infra - just for "copies" right now. only 1 func filled in.
SVN revision: 39502
2009-03-16 10:50:37 +00:00
Carsten Haitzler eba0aaffd6 preliminary neon asm support. do NOT use!
SVN revision: 39474
2009-03-14 06:48:25 +00:00
Carsten Haitzler 6bc4266805 patch from Tiago Falcão - unroll loops in evas a bit.
SVN revision: 39467
2009-03-13 15:18:39 +00:00
Cedric BAIL ed6e29a5dc * evas: Add some const.
SVN revision: 39345
2009-03-03 14:38:24 +00:00
Gustavo Sverzut Barbieri 5be0dac611 Split files so we can avoid "defined but not used" warnings.
SVN revision: 39295
2009-02-28 18:47:17 +00:00
Gustavo Sverzut Barbieri 3fb821ca1d shutdown cache, hope it works like in common/32 engine.
SVN revision: 39294
2009-02-28 18:36:18 +00:00
Vincent Torri 7dd1e9e055 remove more 'unused parameter' warnings
SVN revision: 39223
2009-02-25 23:39:19 +00:00
Vincent Torri 4d1961ac59 remove 'unused parameter' warning
SVN revision: 39222
2009-02-25 23:18:15 +00:00
Vincent Torri f344743dae fix some warnings reported by llvm (see http://local.profusion.mobi:8081/~lfelipe/output-efl/)
* mainly unused parameters
 * in src/lib/imaging/evas_imaging.c, set font to NULL
 * in src/lib/canvas/evas_object_gradient.c, add unititialized member

there are a *lot* of reported warnings by llvm, i'll fix them later

there are also *lots* of unused parameters (compile evas with -W). I'll
fix them later too



SVN revision: 39172
2009-02-24 08:31:31 +00:00
Carsten Haitzler fca6a09640 fix font cutout clip bug.
SVN revision: 39153
2009-02-23 07:20:21 +00:00
Carsten Haitzler 7a74942b41 1. make software font draw code actually use cutouts.
2. make gl engine able to use cutouts - in some cases its faster, some
slower. it's a mixed bag. not sure what to make of it. it's #defined to be
disabled atm.



SVN revision: 39114
2009-02-21 03:13:49 +00:00
rephorm a3fdd2ab4e don't return NaN for hue if r=g=b
SVN revision: 39019
2009-02-15 01:53:02 +00:00
Cedric BAIL b70ae3c927 * evas/src/lib/include/evas_common.h,
* evas/src/lib/engines/common/evas_font.h,
	* evas/src/lib/engines/common/evas_font_draw.c,
	* evas/src/lib/engines/common/evas_font_load.c,
	* evas/src/lib/engines/common/evas_font_query.c: Add cache for font kerning.

This patch give something around 2% for all tests around text in expedite,
except for Textblock Intl where it give a 3 times boost.

Regarding text rendering speed, something is strange when used by evas_pipe.
All tests using Styles are around 40% faster without evas_pipe. 30% faster
for Text Change. But Text Basic 7% slower. So it should be possible to have
faster rendering when using evas_pipe for font rendering.


SVN revision: 38993
2009-02-10 15:53:17 +00:00
Gustavo Sverzut Barbieri 83783665f5 Let's try to shutdown cache and fix delete problem.
SVN revision: 38702
2009-01-23 00:08:11 +00:00
Carsten Haitzler 185d9ae9b5 allow asm to turn off via env vars
SVN revision: 38693
2009-01-22 03:21:04 +00:00
Daniel Kolesa 6c874722ee Added support for "make doc" in evas and ecore.
Thanks to Lutin :)


SVN revision: 38545
2009-01-11 10:20:22 +00:00
Iván Briano 140b0a9fca Add function to get the length in characters of a string
SVN revision: 38158
2008-12-15 22:03:04 +00:00
Cedric BAIL 2b278b9419 Remove use of evas_hash from evas and use directly eina.
SVN revision: 38066
2008-12-09 17:56:31 +00:00
Carsten Haitzler a2cd677cdc ok - revert scalecache until leak fixed.
SVN revision: 37899
2008-12-02 02:33:09 +00:00
Carsten Haitzler 72c25fd2fc quick - evas scalecache put this in svn do i dont lose my patch. i'll revert
and work on gettign the leak fixed.



SVN revision: 37898
2008-12-02 02:32:22 +00:00
Carsten Haitzler 9705e3c741 hmmm after some talking - for now put the transform patch on hold - we need
tyo fix up some of these breaks first and there isn't a lot of time devoted
to this. so revert this. it's in svn history so we can dig it out any time we
like.



SVN revision: 37453
2008-11-04 09:19:35 +00:00
Carsten Haitzler 3e984fee34 jose's transform patches. some things to note:
1. nearest scaling is now broken - it's always linear interpolation. this
will lead to slowdowns. i need to fix this - a must.
2. i think it's time i put in a transformed image cache that can cache an
image object at a transform (and share it) automatically.
3. transforms in non-software-engines will not work - broken. need to at
least do xrender and gl engines.

any volunteers to help?



SVN revision: 37447
2008-11-03 22:50:54 +00:00
Sebastian Dransfeld 88c695c2ad Only unix should depend on signal.h
SVN revision: 37043
2008-10-24 06:49:44 +00:00
Cedric BAIL 465b76a017 Remove Evas_List from Evas.
SVN revision: 36942
2008-10-21 16:31:05 +00:00
Cedric BAIL 68d377afe6 Rename EINA_INLIST_ITER_NEXT/EINA_INLIST_ITER_LAST to EINA_INLIST_FOREACH/
EINA_INLIST_REVERSE_FOREACH so it best match is behaviour. Asked by Gustavo.



SVN revision: 36928
2008-10-21 12:19:57 +00:00
Cedric BAIL e9ddcdd311 Remove evas hash.
SVN revision: 36862
2008-10-20 16:12:47 +00:00
Cedric BAIL bdfed791ea More use of iterator macro.
SVN revision: 36852
2008-10-20 12:36:48 +00:00
Cedric BAIL c99824328f Move from Evas_Object_List to Eina_Inlist and completly remove Evas_Object_List.
SVN revision: 36750
2008-10-17 11:23:18 +00:00
Cedric BAIL 1cec65e922 Switch evas internal use of evas_stringshare to eina_stringshare.
SVN revision: 36674
2008-10-15 14:38:34 +00:00
Cedric BAIL ad1525e5f9 Make evas depend on eina. No change in the code yet, so just fix your build system and no bug must show up.
SVN revision: 36621
2008-10-13 15:58:56 +00:00
Carsten Haitzler 6dfb74c54a and now i added "line dither". what is this. it's only for non-rotated 16bpp
565. what it does is it's a half-way house between no dither and "small
dither mask". what is does is change the "rounding" between odd and even
lines. the resolt is not as nice as small (or large) dither mask - but its
almost "good". it gives a horizontal-blinds like look to dithering. it's
almost as fast as no-dither in my tests on a core2 (of course making lots of
use of branch prediction or conditional instructins - whihc arm nd x86 have).



SVN revision: 36373
2008-10-01 06:37:31 +00:00
Carsten Haitzler 4e809cf60d 1. yuv fix for unused algorithm :)
2. jose's 16bit speedup patches. quick summary:

speedups:
large dither 409 -> 518
small dither 451 -> 524
no dither    728 -> 757

(reference) 32bit gets: 853



SVN revision: 36369
2008-10-01 02:27:18 +00:00
Carsten Haitzler bc7d6544e9 speedups in c yuv->rgb from joseg. :) 11% - but only if u dont have mmx/sse
or altivec. this is c fallbacks only.



SVN revision: 36243
2008-09-25 05:30:23 +00:00
Vincent Torri eae91bae39 * remove trailing spaces in configure.in
* compile src/lib/engines/common16 on if one of the 16 bits
   engines is requested


SVN revision: 36176
2008-09-22 17:55:13 +00:00
Carsten Haitzler aa2fded0fc some notes on kerning bugs in ft2.
SVN revision: 35876
2008-09-08 02:08:43 +00:00
Carsten Haitzler d73b8c5d7b updated patches from jose!
SVN revision: 35756
2008-08-31 02:04:31 +00:00
Carsten Haitzler c1fe72d7e4 jose has some new gradient work - these are his patches. nice work joseg! yes
- some enignes break as they dont have the stubbed out functions, and
xrender/gl engines dont even implement the drawing and need to (but are
stubbed out).



SVN revision: 35677
2008-08-26 05:45:04 +00:00
doursse 6a87729269 add some vim headers
SVN revision: 35183
2008-07-21 16:44:58 +00:00
doursse 9c58ab7087 * move blend functions declaration to their own header files
* add vim header


SVN revision: 35182
2008-07-21 16:10:48 +00:00
doursse 60391e746d * move draw functions declaration to their own file
* add missing headers


SVN revision: 35181
2008-07-21 15:52:09 +00:00
doursse 3f28e61186 * move image declaration funtions to their own header file
* add vim header


SVN revision: 35173
2008-07-19 18:32:32 +00:00
doursse 83c733fbf7 * move line, polygon, rectangle API to their own files
* add vim header


SVN revision: 35172
2008-07-19 18:05:54 +00:00
doursse 193c21da9e remove tons of trailing spaces
SVN revision: 35171
2008-07-19 17:40:52 +00:00
doursse 261189e2e2 * move font and gradient declarations to their own files
* add vim headers
 * remove some trailing spaces


SVN revision: 35170
2008-07-19 17:13:42 +00:00
doursse e576961d89 add vi formatting stuff
SVN revision: 35131
2008-07-16 20:47:22 +00:00
doursse 77a014170b formatting
SVN revision: 35130
2008-07-16 20:46:47 +00:00
doursse 0fd75a462a move pipe function declarations to their own file
SVN revision: 35064
2008-07-11 08:21:25 +00:00
doursse 493eb069a3 * remove trailing spaces in evas_pipe.c
* move scale function declarations to their own files


SVN revision: 35063
2008-07-11 06:36:30 +00:00
doursse 739be5c6b7 move evas_convert_main.h to evas_common.h
SVN revision: 35062
2008-07-11 05:50:56 +00:00
doursse 312b0dfc6c add header files to the distribution
SVN revision: 35059
2008-07-10 22:58:04 +00:00
doursse fb9313c024 * move convert function declarations to their own header file
* add vim header in the files I modified
 * fix minor warnings

i think i don't break compilation on that commit :)


SVN revision: 35058
2008-07-10 22:53:33 +00:00
Carsten Haitzler 5b74833dfb broke evas! change other evas_common_array calls to be evas_array! :)
SVN revision: 35056
2008-07-10 21:14:44 +00:00
doursse b5011a094e evas_common_array_hash_free --> evas_array_hash_free
SVN revision: 35054
2008-07-10 18:12:45 +00:00
doursse 0760cc6776 evas_common_array_hash_free --> evas_array_hash_free
SVN revision: 35053
2008-07-10 18:08:18 +00:00
doursse 993697fec7 * move _Evas_Object_List and _Evas_Hash structures to Evas_Data.h
* move Evas_Array_Hash and Evas_Object_List declarations to Evas_Data.h
 * move evas_array_hash.c from engines/common/ to data/
 * remove Evas_Array_Double_Hash declaration (not used)


SVN revision: 35042
2008-07-09 16:50:33 +00:00
Carsten Haitzler 6f480338d4 cover up segv where somehow the alpha flag is set in the 16bit engine but the
alpha pixel pointer is NULL. couldn't see where that happens, but it's now
protected against it.


SVN revision: 34968
2008-07-02 00:57:26 +00:00
Gustavo Sverzut Barbieri d6b97fd852 Destroy pthread_attr when we do not need it anymore.
pthread manual says it is safe to destroy them after they are used
with pthread_create: "If the attributes specified by attr are modified
later, the thread���s attributes shall not be affected."


SVN revision: 34937
2008-06-28 15:29:57 +00:00
Cedric BAIL 47bf4e1999 cvsignore++
SVN revision: 34778
2008-06-09 08:59:09 +00:00
Cedric BAIL 9feac9ef8b Fix common 16bpp engine use of alpha.
SVN revision: 34729
2008-06-03 14:45:39 +00:00
Cedric BAIL d102e3db82 * Make RGBA_IMAGE_HAS_ALPHA and RGBA_IMAGE_ALPHA_SPARSE part of
Image_Entry flag structure. This fix a bug with 16 bpp software engine.

        * Change image loader module API to take any Image_Entry. Same goes
        for evas_common_image_premul and evas_common_image_set_alpha_sparse.

        * Use new eet API: eet_data_image_read_to_surface.


SVN revision: 34728
2008-06-03 09:09:39 +00:00
Carsten Haitzler c510afbd8e end_opt not needed there.
SVN revision: 34715
2008-06-01 00:40:58 +00:00
Carsten Haitzler 7752c8a3e5 and fix the gradient bug - yes. it is a GRADIENT BUG. you emms() when u are
totally done and may hand control back to a non rendering codepath - or
before u do any fp ops u are unsure of the cpu state beforehand. see the big
fat comment.

i was right. it was a missing emms.


SVN revision: 34707
2008-05-31 04:16:39 +00:00
Carsten Haitzler cd0fd38a9c add file
SVN revision: 34606
2008-05-19 03:37:37 +00:00
Carsten Haitzler 0d42705593 adapt to newer valgrind goop
SVN revision: 34605
2008-05-19 03:29:54 +00:00
Carsten Haitzler 5887bde860 colorspace stuff in cvs.
SVN revision: 34604
2008-05-19 03:13:16 +00:00
Cedric BAIL b85c0672c4 Update the stride when needed.
SVN revision: 34566
2008-05-14 16:38:36 +00:00
Cedric BAIL 5f41def624 Only call the allocation surface when required and correctly handle no_free.
SVN revision: 34480
2008-05-06 11:20:29 +00:00
Carsten Haitzler 0688234e2f notes - cedric... i think i may have found a problem here...
SVN revision: 34443
2008-05-03 08:31:26 +00:00
Carsten Haitzler 42facfffe6 1. dont free/realoc if no_free is set.
2. free then malloc otherwise realloc might ALSO have to memcpy if it cant
resize the segment whihc means overhead we dont need/want.


SVN revision: 34441
2008-05-03 06:38:45 +00:00
Carsten Haitzler 14e2187305 get rid of 0 byte alloc
SVN revision: 34440
2008-05-03 05:33:26 +00:00
doursse 56eacad43d Autotools cleaning (not complete)
* formatting
 * put WIN32_CFLAGS in AM_CFLAGS and not AM_CPPFLAGS, as it is where it belongs
 * rename create_shared_lib to lt_no_undefined
 * pass -Wl,--enable-auto-import to libtool when compiling with cegcc
 * add files to EXTRA_DIST only when they are not in _SOURCES or _include_HEADERS (they
   are added anyway)


SVN revision: 34353
2008-04-23 06:55:10 +00:00
Carsten Haitzler 184bfa989d fix image dirties with yuv and software rendering
SVN revision: 34272
2008-04-15 15:20:53 +00:00
Carsten Haitzler 35b8f22752 add missing files.
SVN revision: 34254
2008-04-12 02:11:07 +00:00
Carsten Haitzler ae1977a214 cedric's cache changes patch
SVN revision: 34253
2008-04-12 00:32:30 +00:00
doursse 219831980f * Remove Windows code in evas_module.c and use evilness instead
* Allow Windows Mobile to correctly load dll's
 * Use correct scheme for EAPI on Windows and include config.h when necessary
 * add -mwin32 to compiler flags when compiling with cegcc


SVN revision: 34024
2008-03-14 16:49:49 +00:00
Peter Wehrfritz 5acbfcb6e3 add portable pixmaps image loader
SVN revision: 33880
2008-03-01 15:27:20 +00:00
Gustavo Sverzut Barbieri 9b983b96b1 Patch by Cedric to really shutdown font system.
every thing is not really cleaned on shutdown (It make it crash, if
you shutdown completely the font system and then restart it again).

Author: Cedric BAIL


SVN revision: 33746
2008-02-15 14:43:51 +00:00
Gustavo Sverzut Barbieri 7cb7216314 Add const: evas_hash.c
As agreed on IRC, evas_hash_foreach() now takes const, to make clear
that hash shouldn't be changed. If one wants to change he must do a
cast and return 0.  However this will require users to be updated in
applications.


SVN revision: 33708
2008-02-08 19:55:03 +00:00
Carsten Haitzler 0112fdc383 patches, caching fixes, zone dynamic creation/deletion handling, stuff.
SVN revision: 33127
2007-12-14 05:57:16 +00:00
Sebastian Dransfeld 631f96bc0e formatting
SVN revision: 32946
2007-12-02 19:44:27 +00:00
Carsten Haitzler c10ccad763 static func - cedric patch
SVN revision: 32649
2007-11-13 05:58:50 +00:00
doursse e21fb0f122 autostuff improvements:
* use non deprecated version of AC_INIT and AM_INIT_AUTOMAKE
   and check the required minimal versions.
 * add bzipped distribution archive
 * add AC_LIBTOOL_WIN32_DLL
 * forbid libtool to check fortran
 * compute libtool versioning from the version of the package
 * pass the directories based on ${prefix} to the preoprocessor
   with the -D option
 * replace INCLUDES, wich is deprecated since 2001 by AM_CPPFLAGS
 * remove useless -L flags in *_la_LDFLAGS


SVN revision: 32337
2007-11-04 09:21:50 +00:00
Carsten Haitzler cd2e7767fd resolved bug from leonardo.cunha@openbossa.org
SVN revision: 32180
2007-10-28 04:01:56 +00:00
Carsten Haitzler 2ea744bc1b working on optimising software-x11 with the one-buffer persistence idea that
software-16 uses. it works and in some cases gets massive speedups (70%+) but
in a few its slowdowns (30% down) in expedite tests - why, i don't know. it
should be the same or better in all tests. disabled for now - also not
complete. < 32bpp wont' work and not sure rotation works and masks don't work
either.


SVN revision: 31928
2007-10-02 03:40:14 +00:00
Gustavo Sverzut Barbieri 6d63d0ea99 Use correct type size for conversion between integer and pointer.
By: Brett Nash (dereference-ints-all-bad.patch)


SVN revision: 31700
2007-09-13 14:35:01 +00:00
Gustavo Sverzut Barbieri 0c404433e7 Fix typo that leads to incorrect behavior.
By: Brett Nash (iindex-to-many-is.patch)


SVN revision: 31697
2007-09-13 14:24:15 +00:00
Gustavo Sverzut Barbieri b09e8f2f45 Cosmetic: use correct size for comparison of pointers.
Due the comparions, the code worked fine, but use the correct type
size so it's cleaner.

By: Brett Nash (compare-whole-pointer.patch)


SVN revision: 31696
2007-09-13 14:19:30 +00:00
Gustavo Sverzut Barbieri bd66a665b6 Use C89 prototype.
By: Brett Nash (c89-is-18-years-old-lets-use-it.patch)


SVN revision: 31695
2007-09-13 14:14:37 +00:00
tilman 761eed190f Replace another deprecated macro.
SVN revision: 31510
2007-08-26 08:21:57 +00:00
Carsten Haitzler 2a04c23a33 futzing around with tilan's mono font issue - some commented otu debugging -
use the all caps enum for bitmap fonts now...


SVN revision: 31496
2007-08-25 11:54:17 +00:00
doursse ffb74463b2 remove c99 structure initialization
SVN revision: 31458
2007-08-22 15:06:04 +00:00
doursse df099a54e3 use standard syntax when initializing structures instead of specific gcc one
SVN revision: 31396
2007-08-19 06:21:23 +00:00
doursse acb11e7c5a remove 2 consecutive semicolons here and there, ans some trailing spaces
SVN revision: 31308
2007-08-14 12:49:10 +00:00
doursse fd9e6e06bf WIN32 is not always defined on Windows platform, while _WIN32 is. Remove trailing spaces and replace c++ comments by C ones
SVN revision: 31302
2007-08-13 12:13:03 +00:00
Sebastian Dransfeld 4d346e4bd8 Remove unnecessary code.
SVN revision: 31270
2007-08-12 19:20:16 +00:00
Carsten Haitzler 287d8779fb fix the cache code - it was basically broken and wouldnt free things from
cache. it also didnt account cache USAGE (cache is ref == 0 count images
speculatively hanging around in case theyare needed).


SVN revision: 31227
2007-08-08 23:41:31 +00:00
Carsten Haitzler b8b5b958f2 i spyed me a bug that captin'! aye! comments in the code about it - hack
around it for now.


SVN revision: 30933
2007-07-22 16:25:24 +00:00
doursse 9ea393d8a0 add gif explicitely as loader, to avoid iteration over all the availabl loader modules
SVN revision: 30892
2007-07-18 09:04:30 +00:00
Carsten Haitzler 694cab4e14 0
cedric's patches broke emotion - fix.


SVN revision: 30888
2007-07-18 04:42:23 +00:00
Dan Sinclair 7c624f5787 - don't free the passed in im structure. leave it up to the caller to
cleanup as needed on error.
- this should hopefully fix bug 97


SVN revision: 30886
2007-07-18 03:23:35 +00:00
codewarrior ec8ea7c7dd fix Bug#: 111
http://bugzilla.enlightenment.org/show_bug.cgi?id=111


SVN revision: 30870
2007-07-17 10:08:16 +00:00
Carsten Haitzler 9e5d2dfdf8 cedric's const patches for evas
SVN revision: 30847
2007-07-16 07:29:34 +00:00
Carsten Haitzler 6c167c3a6d cedric's sdl patch.
SVN revision: 30845
2007-07-16 07:25:35 +00:00
Carsten Haitzler 78408fe60a 1. fix a lot of things so they pass make distcheck - so many things have
broken. guys - need to be more careful!
2. asparagus
3. some extra docs/comments for evas


SVN revision: 30696
2007-07-10 00:13:26 +00:00
kiwi 2cdf35aad4 revert this, the index pointer can be negative
SVN revision: 30476
2007-06-27 14:56:14 +00:00
kiwi a001af9e23 fix some warnings, mostly missing "void" when a function has no parameters
SVN revision: 30474
2007-06-27 10:57:54 +00:00
Sebastian Dransfeld f2b945b53d Find chr_x the same way as in the other functions. The main loop is very
similar in many functions and should be refactored.


SVN revision: 30389
2007-06-18 16:47:20 +00:00
Gustavo Sverzut Barbieri b5c8891349 Restrict rectangles to be inside the screen at evas_tiler
SVN revision: 30274
2007-06-08 00:03:56 +00:00
Gustavo Sverzut Barbieri f685af6573 Be polite and flush cache when tilebuf is free()d.
SVN revision: 30249
2007-06-05 03:30:05 +00:00
Gustavo Sverzut Barbieri 294769b086 Use memory pool for rect_node_t
SVN revision: 30238
2007-06-04 18:32:57 +00:00
Carsten Haitzler 849e428e7f documentation from brett... tiler can compiler again.
SVN revision: 30221
2007-06-04 09:48:28 +00:00
Carsten Haitzler c9dd4797f3 patch seems to give a bit of a speedup at fuzz = 32 overall.
SVN revision: 30207
2007-06-03 05:28:12 +00:00