diff options
author | hans@rhel5-devel.localdomain <hans@rhel5-devel.localdomain> | 2009-06-05 16:30:33 +0200 |
---|---|---|
committer | hans@rhel5-devel.localdomain <hans@rhel5-devel.localdomain> | 2009-06-05 16:30:33 +0200 |
commit | 8589234d1984a6acce63c0debf804c59c8414588 (patch) | |
tree | 4938f5b151eb2c5e11cb42d43349c444e417228a /v4l2-apps/libv4l/libv4lconvert/libv4lconvert.c | |
parent | 5fefedb3c3a7a0ceaa161e4a3c1e180ba22cd364 (diff) | |
download | mediapointer-dvb-s2-8589234d1984a6acce63c0debf804c59c8414588.tar.gz mediapointer-dvb-s2-8589234d1984a6acce63c0debf804c59c8414588.tar.bz2 |
libv4l: add support for decompressing ov518 JPEG
From: Hans de Goede <hdegoede@redhat.com>
Add support for decompressing ov518 "JPEG", note this code is not
LGPL yet, I'm waiting for a license change permission. If I do not
get one this will be moved to an external helper and the data
will be piped through this, to keep libv4l2.so LGPL
Priority: normal
Signed-off-by: Hans de Goede
Diffstat (limited to 'v4l2-apps/libv4l/libv4lconvert/libv4lconvert.c')
-rw-r--r-- | v4l2-apps/libv4l/libv4lconvert/libv4lconvert.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/v4l2-apps/libv4l/libv4lconvert/libv4lconvert.c b/v4l2-apps/libv4l/libv4lconvert/libv4lconvert.c index ef23be362..47eb2272e 100644 --- a/v4l2-apps/libv4l/libv4lconvert/libv4lconvert.c +++ b/v4l2-apps/libv4l/libv4lconvert/libv4lconvert.c @@ -63,6 +63,7 @@ static const struct v4lconvert_pixfmt supported_src_pixfmts[] = { { V4L2_PIX_FMT_MR97310A, V4LCONVERT_COMPRESSED }, { V4L2_PIX_FMT_SQ905C, V4LCONVERT_COMPRESSED }, { V4L2_PIX_FMT_PJPG, V4LCONVERT_COMPRESSED }, + { V4L2_PIX_FMT_OV518, V4LCONVERT_COMPRESSED }, }; static const struct v4lconvert_pixfmt supported_dst_pixfmts[] = { @@ -615,6 +616,7 @@ static int v4lconvert_convert_pixfmt(struct v4lconvert_data *data, case V4L2_PIX_FMT_SPCA505: case V4L2_PIX_FMT_SPCA508: case V4L2_PIX_FMT_SN9C20X_I420: + case V4L2_PIX_FMT_OV518: { unsigned char *d; int yvu = 0; @@ -644,6 +646,9 @@ static int v4lconvert_convert_pixfmt(struct v4lconvert_data *data, case V4L2_PIX_FMT_SN9C20X_I420: v4lconvert_sn9c20x_to_yuv420(src, d, width, height, yvu); break; + case V4L2_PIX_FMT_OV518: + v4lconvert_ov518_to_yuv420(src, d, width, height, yvu, src_size); + break; } switch (dest_pix_fmt) { |