On Thu, Jan 6, 2011 at 2:02 PM, Stefano Sabatini <[email protected]> wrote:
> On date Monday 2011-01-03 17:26:00 +0900, Carsten Haitzler wrote:
>> On Fri, 31 Dec 2010 01:31:46 +0100 Stefano Sabatini <[email protected]> 
>> said:
>> > In data Wednesday 2010-12-29 19:57:53 +0100, Nicolas ha scritto:
>> > > Hello,
>> > >
>> > > Here's a new version of EvasVideoSink, feel free to test it.
>> > > https://sourceforge.net/projects/evasvideosink/files/
>> > >
>> > > I also created a widget for Elementary.
>> > > To test it, you need the latest svn version of Elementary, follow the
>> > > instructions listed in the README file for compilation.
>> > >
>> > > Why create an Elementary widget for EvasVideoSink and not Emotion?
>> > >
>> > > Emotion is intended to be a complete library manager for xine, gstreamer
>> > > and vlc but the problem with this kind of project is that it is never
>> > > complete!
>> > > Take the example of pidgin, it supports all the protocols, but most are
>> > > not complete, that is why I chose GStreamer and I intend to focus solely
>> > > on GStreamer.
>> > > Please note, I'm not criticizing anyone, it's just my opinion!
>> >
>> > And if you have time to kill and you want to try something new, you
>> > could try to write a sink for libavfilter (the FFmpeg A/V filtering
>> > library), I recently wrote an SDL sink (check the ffmpeg-devel
>> > archive) and I even started to work to an ecore/evas sink but got
>> > stucked at some point. If you're interested I can let you see my
>> > unfinished work and provide help (and eventually push it to the FFmpeg
>> > repo). From what I can see the libavfilter variant should be much
>> > simpler.
>>
>> i'm a little bit curious - how is this really much different than emotion -
>> where emotion wraps up gst and xine in an abstracted api to access and also
>> provides the sinks needed for both to display in the evas object emotion
>> creates... :) well i know the difference is in that you've just done the sink
>> bit and no wrapping/abstracting - but i'm a tad curious as to "why" when
>> emotion already provided that? :) (if you were missing controls for the video
>> or audio stream the emotion could always have the controls added in api...) 
>> :)
>
> I'm coding that as part of FFmpeg itself, and we try to avoid heavy
> dependencies, so having to rely on other wrapper frameworks (xine and
> gstreamer, both using FFmpeg internally) would make little
> sense. Anyway, consider this work still in a "proof of concept" stage,
> as it's not still clear what's the better way to implement a sort of
> vo (check MPlayer/libvo) in the FFmpeg architecture.
>
> My idea of implementing an ecore/evas video sink stems from the need
> to overcome the libsdl 1.2 limitation (only one window
> per-application).
>
> Related thread:
> http://thread.gmane.org/gmane.comp.video.ffmpeg.devel/121770/
>
> Unfortunately I got stucked as I can't see much documentation in
> libevas and I'm not much familiar with graphical toolkits (and I still
> didn't dedicate much time to this).

You need very few primitives. You need an evas_object_image to get a
framebuffer, you can either get one from user or create one given an
Evas*. The problem is that in both scenarios you need to be given a
parameter to create it, so you need to figure out in libavcodec how to
do it.

Once done, it's stupidly easy. Just get the pixels for write
(evas_object_image_data_get()'s bool parameter), then write (memcpy)
and report the updates using evas_object_image_data_update_add() so
texture is uploaded (GL) and screen is updated.

You may want to configure the surface prior to getting the pixels with:
    - evas_object_image_size_set() -- the real frame size, buffer will
be stride * h in ARGB888.
    - evas_object_image_alpha_set() -- likely turn off alpha?
    - evas_object_image_colorspace_set() -- EVAS_COLORSPACE_ARGB8888,
EVAS_COLORSPACE_YCBCR422P601_PL or EVAS_COLORSPACE_YCBCR422P709_PL

If you know how to handle it a pointer (Evas* or Evas_Object*), then
the rest is simple and I can help you.

-- 
Gustavo Sverzut Barbieri
http://profusion.mobi embedded systems
--------------------------------------
MSN: [email protected]
Skype: gsbarbieri
Mobile: +55 (19) 9225-2202

------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
enlightenment-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-users

Reply via email to