On Tue, 5 Jul 2016 10:20:24 -0700 Cedric BAIL <cedric.b...@free.fr> said:

> Hello,
> 
> This should better go to the developpers mailing list, so forwarded it there.
> 
> On Sun, Jul 3, 2016 at 11:32 AM, Markus Svilans <msvil...@aeonyx.ca> wrote:
> > I am very new to Elementary, still reading through the examples and
> > learning the various features.
> >
> > I could use a bit of assistance in getting started towards accomplishing my
> > goals.
> >
> > Here is what I would like to do:
> >
> > 1. Create an a program that uses Elementary for event loop, widgets and
> > graphics
> > 2. Render the graphics to an in-memory buffer
> > 3. Receive a notification or callback each time the buffer changes, and
> > send the buffer contents to an external device or program (e.g. via a
> > socket or pipe)
> >
> > This program would eventually run on a Linux system without a display, so
> > there is no framebuffer or graphics hardware available. For now I would run
> > it on a desktop Ubuntu 15.10 system and send the buffer contents via IPC to
> > a separate program for viewing the contents.
> 
> Not to sure of your goal, but I think that Ecore_Evas extn backend
> does exactly what you are describing. You can also look at elementary
> ELM_WIN_SOCKET_IMAGE that does use Ecore_Evas extn infrastructure to
> do this.

what cedric said - this is already done with shm memory and local unix socket
ipc as above. you can start an elm app with a buffer canvas. it's perfectly
possible. there are evas events fro pre/post render too... there are various
examples in git - rage for example creates an elm win and sets the engine to
buffer before to have an offscreen in-m,emory elm window, inside this window it
can do whatever it likes. it uses an inline window that exposes an image object
that can get the pixel data. this inline window can be whatever content/window
you like. you technically can get the ecore_evas handle from an elm win but
this is not portable or guaranteed to keep working in future. we dont have
callbacks/events on elm windows when they render atm. BUT if you
evas_object_evas_get() there are evas canvas events for pre/post render, flush
etc. etc.and you can use those on the inline window. :) you can get pixel data
ptr from it.... :)

-- 
------------- Codito, ergo sum - "I code, therefore I am" --------------
The Rasterman (Carsten Haitzler)    ras...@rasterman.com


------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
enlightenment-users mailing list
enlightenment-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-users

Reply via email to