Mercurial > libavformat.hg
changeset 2131:551f836ed80e libavformat
extending video4linux support to handle the additional formats UYVY, YUYV and RGB565
author | mhoffman |
---|---|
date | Mon, 04 Jun 2007 13:28:02 +0000 |
parents | 861cfbc6297a |
children | c8e642dd5f9c |
files | grab.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/grab.c Mon Jun 04 13:25:29 2007 +0000 +++ b/grab.c Mon Jun 04 13:28:02 2007 +0000 @@ -60,8 +60,11 @@ } video_formats [] = { {.palette = VIDEO_PALETTE_YUV420P, .depth = 12, .pix_fmt = PIX_FMT_YUV420P }, {.palette = VIDEO_PALETTE_YUV422, .depth = 16, .pix_fmt = PIX_FMT_YUYV422 }, + {.palette = VIDEO_PALETTE_UYVY, .depth = 16, .pix_fmt = PIX_FMT_UYVY422 }, + {.palette = VIDEO_PALETTE_YUYV, .depth = 16, .pix_fmt = PIX_FMT_YUYV422 }, /* NOTE: v4l uses BGR24, not RGB24 */ {.palette = VIDEO_PALETTE_RGB24, .depth = 24, .pix_fmt = PIX_FMT_BGR24 }, + {.palette = VIDEO_PALETTE_RGB565, .depth = 16, .pix_fmt = PIX_FMT_BGR565 }, {.palette = VIDEO_PALETTE_GREY, .depth = 8, .pix_fmt = PIX_FMT_GRAY8 }, };