Hi all,
as I'm tyring to program a little application for my VDR, which should simply work just as fbtv does except that fact that my application should be able to deinterlace with ffmpeg's help, I thought that DirectFB would probably just be perfect for my needs.
I dug through the source of ffmpeg and finally found the following function:
int avpicture_deinterlace( AVPicture *dst,
const AVPicture *src,
int pix_fmt,
int width,
int height )You can clearly see that I need an AVPicture, which simply looks like that:
typedef struct AVPicture {
uint8_t *data[4];
int linesize[4];
} AVPicture;My "problem" now is, that I've no idea how to copy an AVPicture back to the framebuffer...
By the way, I don't really know if it's a good idea but, as I haven't really figured out how to read data from /dev/video0 with ffmpeg's functions, I thought it could work like that:
DirectFB-Videoprovider(reads from /dev/video0) -> "BufferSurface" -> "convert" the data from "BufferSurface" to an AVPicture -> deinterlace this AVPicture -> Blit the deinterlaced AVPicture onto the screen-Surface
I assume that it would be wise to directly read the data vom /dev/video0 with ffmpeg so that it looks like this:
ffmpeg reads from /dev/video0 directly to an AVPicture -> deinterlace -> deinterlaced AVPicture is blitted to the screen
Anyone has got an idea how to do something like that?
Thanks in advance, Gaubatz Patrick
smime.p7s
Description: S/MIME Cryptographic Signature
_______________________________________________ directfb-dev mailing list [email protected] http://www.directfb.org/cgi-bin/mailman/listinfo/directfb-dev
