Discussion:
[directfb-users] Frame to surface
Silvio Colombaro
2011-10-20 10:46:54 UTC
Permalink
Good morning,
I was trying to develop a small application that should not
to do is display on the screen the incoming signal by a
IP camera.
Through the camera driver I get a complete frame in one
selectable color space, YUV444, YUV422, YUV411, RGB24, RGBA32,
RGB48.
My application should only create a small window where you
can see the incoming video.

Regarding the window no problem, the
documentation is clear, but I can not find the best way (and
naturally more powerful) to transfer the frame into a
DirectFB surface.

Thank you very much
SC
Andre DRASZIK
2011-10-20 12:02:37 UTC
Permalink
Hi,
Post by Silvio Colombaro
Through the camera driver I get a complete frame in one
selectable color space, YUV444, YUV422, YUV411, RGB24, RGBA32,
RGB48.
[...]
Post by Silvio Colombaro
documentation is clear, but I can not find the best way (and
naturally more powerful) to transfer the frame into a
DirectFB surface.
Is this a V4L2 driver? You might be able to pass the DirectFB surface
into that V4L2 driver as a user buffer / mmap buffer, i.e. Lock() the
buffer and then pass the returned pointer inside the v4l2_buffer struct,
setting the appropriate flags.

Cheers,
Andre'
Silvio Colombaro
2011-10-20 13:09:28 UTC
Permalink
Post by Andre DRASZIK
Hi,
Post by Silvio Colombaro
Through the camera driver I get a complete frame in one
selectable color space, YUV444, YUV422, YUV411, RGB24, RGBA32,
RGB48.
[...]
Post by Silvio Colombaro
documentation is clear, but I can not find the best way (and
naturally more powerful) to transfer the frame into a
DirectFB surface.
Is this a V4L2 driver? You might be able to pass the DirectFB surface
into that V4L2 driver as a user buffer / mmap buffer, i.e. Lock() the
buffer and then pass the returned pointer inside the v4l2_buffer struct,
setting the appropriate flags.
I'm not using V4L2 driver. I get a frame directly into a buffer of my
application.
I've try to use IDirectFBSurface->Write but it's seems to be too slow.
I need to watch this video in at least 25 fps for a fluid vision.

There is another way to do this?

Thanks.
Post by Andre DRASZIK
Cheers,
Andre'
_______________________________________________
directfb-users mailing list
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users
Loading...