Mark Adams wrote:
> On 10/09/06, Claudio Ciccani <[EMAIL PROTECTED]> wrote:
> 
>> The driver in DirectFB-extra was developed for the xine video provider.
>> It's intended to be used for internal purposes only.
>> The driver in xine-lib is more or less a port of the code from df_xine
>> and it is intended to be used by common applications.
> 
> OK, that makes sense.
> 
>> What kind of features does libcle266mpegdec provide? Video motion
>> compesation?
>> The best solution for a VMC decoder would be writing video output driver
>> instead of a video decoder.
> 
> The library provides a complete MPEG-2 video decoder: you pass
> elementary stream data in and you get pictures out, hence the decision
> to write a decoder plug-in for it.  The hardware itself does all the
> motion compensation, the IDCTs and the variable length decoding of the
> motion vectors and DCT coefficients.
> 
> Do you know of any likely problems with the rest of the video_out_dfb
> plug-in if the frame surfaces happen to be in video memory?

The only problem/limitation I see is that the destination surface must
be YV12.

Consider the following approach to support hardware video decoding in
xine, instead.
What we need is to tell the video driver to allocate frames in video
memory: this could be achieved by adding a capability flag (say
VO_CAP_VIDEO_STORAGE) to know whether the driver supports this feature,
and a driver property (say VO_PROP_VIDEO_STORAGE) to enable the feature.
Thus the decoder receives the virtual memory address of the surface in
vo_frame->base[] without the need to access surface's data directly.

This is much more simple: the video decoder remains indipendent from the
graphics environment, we avoid the declaration of another frame format
(XINE_IMGFMT_DFBV is actually an alias for XINE_IMGFMT_YV12) and it can
be easly implemented in video_out_directfb (the driver included in
xine-lib).


-- 
Regards,
     Claudio Ciccani

[EMAIL PROTECTED]
http://directfb.org
http://sf.net/projects/php-directfb

_______________________________________________
directfb-dev mailing list
directfb-dev@directfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev

Reply via email to