Quoting Patrick.Debois ([EMAIL PROTECTED]):
> Hi,
> 
> i'm trying to adapt the avi videoprovider. While looking at the code
> i can not locate where the copy is done to the surface.

The avifile provider uses dfb_gfxcard_blit() to copy the data from
the pseudo surface wrapped around avifile's frame memory.

The code is a bit ugly because the was no support for preallocated
surfaces the time it was written.

> Being more familiar with v4l i started looking to that code but there also 
> i could not locate the place where the HW videobuffer is copied to the 
> surface rect. Or is it done through some pointer mechanism?

The v4l provider instructs the v4l hardware to write into the video
memory via DMA. This happens during v4l_to_surface(), after setting
everything up it uses the VIDIOCCAPTURE ioctl to start the DMA transfer.

> If this is an obvious question/answer i'm sorry but i'm really willing to 
> understand to add some effort in this project.

Both providers are not the best example, have a look at the libmpeg3 and
OpenQuicktime providers. Please excuse the late answer and don't hesitate
if you have further questions, we are always looking for developers willing
to help as there's still much to be done.

-- 
Best regards,
  Denis Oliver Kropp

.------------------------------------------.
| DirectFB - Hardware accelerated graphics |
| http://www.directfb.org/                 |
"------------------------------------------"

                            Convergence GmbH


-- 
Info:  To unsubscribe send a mail to [EMAIL PROTECTED] with 
"unsubscribe directfb-dev" as subject.

Reply via email to