On Sat, 02 Aug 2008 01:21:26 +0200 Timo Drick <[EMAIL PROTECTED]> babbled:

> Hi all,
> 
> i would like to make a proof of concept for displaying a jpeg video 
> stream with evas. I will compare this to gtk. It is for a project that 
> should run on the new Freerunner from Openmoko so performance is relevant.
> 
> My problem:
> the evas function: evas_object_image_file_set(image, "test.png", "");
> takes the filename as parameter. But my jpeg image is not a file. It 
> stay in memory only. I do not want to write it at a file.
> My question:
> Which is the recommended way to read a image from memory in evas?
> (I attached my testing code with comments that focus on my intention)

the simple version is - evas has no ability to load an ENCODED image (jpeg, png
etc.) from ram. the loader modules all work off disk. u'd have to decode it
yourself with libjpeg and present evas with ARGB32 data (for software_x11
engine) or 16bit pixel data (rgb565) for a 16bit engine.

note - you'll be limited by video bus bandwidth here - be it gtk or evas. your
best bet is to use xvideo and decode jpeg to yuv and upload yuv via xvideo. xv
can scale in hardware to screen size, and uses a little less bandwidth than
rgb565 (16bit).

-- 
------------- Codito, ergo sum - "I code, therefore I am" --------------
The Rasterman (Carsten Haitzler)    [EMAIL PROTECTED]


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to