Commit Graph

34 Commits

Author SHA1 Message Date
Gustavo Sverzut Barbieri fd2659c572 evas: mega documentation improving commit.
This commit moves Evas.h contents a lot, but it should not change code
(some conts were added, some function attributes were changed).

The purpose of such is to define the order that doxygen show modules
in its documentation.

I also splitted documentation a bit more, and added a src/examples to
list useful example code. Right now it is just a pure-evas
draw-and-save using buffer engine.

NOTE: there is lots to document, and the @todo list is quite long but
      I guess lots of things there were done already. Raster, could
      you review this list?




SVN revision: 47308
2010-03-18 04:57:40 +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
Carsten Haitzler b5f613f161 remove test progs and data
SVN revision: 26825
2006-10-28 07:04:17 +00:00
Carsten Haitzler f435375b19 initial import fo loadable engine modules for evas - from jorge zappie :)
SVN revision: 19775
2006-01-14 12:13:38 +00:00
Carsten Haitzler 17fc7bb20b auto-package for evas and cleanups
SVN revision: 13612
2005-03-04 14:34:35 +00:00
Carsten Haitzler 5c82257464 in goes new code
SVN revision: 6444
2002-11-08 07:46:04 +00:00
Carsten Haitzler 5f5925671c nuke
SVN revision: 6443
2002-11-08 07:43:18 +00:00
rephorm c475e48ead put this in HEAD too
SVN revision: 6099
2002-04-01 04:59:39 +00:00
Carsten Haitzler 55bba3ab5e optimize! software enigne image objects will keep a pre-scaled copy IF:
1. they are rendered completely unclipped by clip obejcts or edges of the
canvas for more than 16 iterations at the same size with no border scaling
2. it will throw thme out if things chnage
3. it will share image objects only of original size :)


SVN revision: 5139
2001-08-13 09:15:04 +00:00
Carsten Haitzler 9f5ca406a0 up to 0.5.0 versaion for evas.
SVN revision: 4680
2001-04-29 05:57:59 +00:00
Carsten Haitzler 84d24d28da 1. optimize evas lists a bit by keeping a "last" pointer
2. fix rendering - forgot to scale output of primitives other than images when
viewport not 1:1 with window
3. up to 0.0.5


SVN revision: 4592
2001-04-12 17:54:51 +00:00
Carsten Haitzler 92c7f7e87a 0.0.4
SVN revision: 4298
2001-03-02 19:07:20 +00:00
Carsten Haitzler 709470c05b up to 0.0.3
SVN revision: 4055
2000-12-29 21:39:19 +00:00
Carsten Haitzler e14aa620c2 dont return null fi images doesnt exist.. obejct creation shoudl ALWAYs
succeed!


SVN revision: 3934
2000-11-29 04:49:22 +00:00
Term 96475fa637 I was wondering why it worked anyway...
SVN revision: 3722
2000-10-25 23:37:23 +00:00
Term 5416825108 typo
SVN revision: 3721
2000-10-25 23:36:44 +00:00
Carsten Haitzler 8a740e5fa4 stubs for Xfree86 Render extension support. STUBS only now. will get filled in
as soon as i have this puppy installed and working


SVN revision: 3651
2000-10-18 00:48:25 +00:00
Carsten Haitzler 53b3a6face start of polygon drawing support...
SVN revision: 3574
2000-10-12 00:26:34 +00:00
Carsten Haitzler 289117a952 privatise data structs for evas... much cleaner. all structs are now internal
so you cant look into them. all defines now become enums too - cleaner. no
more bypassing the api is possible :)

also added better checks and --with- stuff for imlib2, gl and ttf


SVN revision: 3548
2000-09-26 19:16:48 +00:00
Carsten Haitzler 240dc97f4c x11 engine code added - only partially works
SVN revision: 3503
2000-09-17 06:30:44 +00:00
Carsten Haitzler a751ec1b21 we have a new rendering target for evas - an imlib image buffer.
it will render to a virtual image buffer just like it would to a window.
the logic works the exact same way as a window - it wil lonly render the rects
that changed. if a rect chnaged it expects that rect to have been cleared and
will blend the canvas ontop of the image - so you can use it to augment the
current image contents (though they will be permenantly modified). This is
specifically designed for doing things like rendering a canvas to be saved
to an image file.

WHEEEEEEEE :)


SVN revision: 3460
2000-09-13 22:36:46 +00:00
Carsten Haitzler 71d101387e dont need that file
SVN revision: 3441
2000-09-13 14:43:21 +00:00
Carsten Haitzler 22a8ecd6fb evas-config scritp added
SVN revision: 3220
2000-08-22 04:26:18 +00:00
Carsten Haitzler 5c0c1289d6 endianess chekc for texture gneration
SVN revision: 3118
2000-08-14 16:43:52 +00:00
Carsten Haitzler bcb7bcea6c dont need bits code.. that will go in another lib - higher level than a canvas
item IMHO


SVN revision: 3110
2000-08-13 22:57:22 +00:00
Carsten Haitzler a5ba53be87 cleaner use func pointers for rendering backend funcs - too much copy & paste
SVN revision: 3096
2000-08-13 06:06:43 +00:00
Carsten Haitzler c72ef1301d 2 more text geometry rotuines......... um........ done! :)
SVN revision: 3088
2000-08-10 22:12:42 +00:00
Carsten Haitzler c802275f05 framework for imlib2 backend. - ne3ed at least another sample.....
SVN revision: 3033
2000-08-06 02:06:24 +00:00
Carsten Haitzler eccb8b7520 blah!
SVN revision: 2987
2000-08-03 23:54:32 +00:00
Carsten Haitzler 5631d58659 blah!
SVN revision: 2970
2000-08-02 04:01:18 +00:00
Carsten Haitzler b4a315b048 ewooo- gl routines for evas.. been working on them...... :)
SVN revision: 2969
2000-08-02 03:33:11 +00:00
Carsten Haitzler 83dff01c43 tidier
SVN revision: 2957
2000-07-31 18:21:54 +00:00
Carsten Haitzler 7c0f7a6f9a '
split that up.....


SVN revision: 2956
2000-07-31 18:06:21 +00:00
Carsten Haitzler 154f99de7f evas........
SVN revision: 2938
2000-07-30 20:21:14 +00:00