From: Hans de Goede <hdegoede@redhat.com>
To: Hans Verkuil <hverkuil@xs4all.nl>,
Linux Media Mailing List <linux-media@vger.kernel.org>
Subject: Re: [PATCH] libv4lconvert: add support for new pixelformats
Date: Fri, 18 Jul 2014 12:01:34 +0200 [thread overview]
Message-ID: <53C8F07E.9080805@redhat.com> (raw)
In-Reply-To: <53C84DDE.4000701@xs4all.nl>
Hi,
On 07/18/2014 12:27 AM, Hans Verkuil wrote:
> Support for alpha-channel aware pixelformats was added. Recognize those formats
> in libv4lconvert.
>
> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Looks good:
Acked-by: Hans de Goede <hdegoede@redhat.com>
Feel free to push.
Regards,
Hans
>
> diff --git a/lib/libv4lconvert/libv4lconvert.c b/lib/libv4lconvert/libv4lconvert.c
> index 7ee7c19..cea65aa 100644
> --- a/lib/libv4lconvert/libv4lconvert.c
> +++ b/lib/libv4lconvert/libv4lconvert.c
> @@ -86,6 +86,10 @@ static const struct v4lconvert_pixfmt supported_src_pixfmts[] = {
> { V4L2_PIX_FMT_RGB565, 16, 4, 6, 0 },
> { V4L2_PIX_FMT_BGR32, 32, 4, 6, 0 },
> { V4L2_PIX_FMT_RGB32, 32, 4, 6, 0 },
> + { V4L2_PIX_FMT_XBGR32, 32, 4, 6, 0 },
> + { V4L2_PIX_FMT_XRGB32, 32, 4, 6, 0 },
> + { V4L2_PIX_FMT_ABGR32, 32, 4, 6, 0 },
> + { V4L2_PIX_FMT_ARGB32, 32, 4, 6, 0 },
> /* yuv 4:2:2 formats */
> { V4L2_PIX_FMT_YUYV, 16, 5, 4, 0 },
> { V4L2_PIX_FMT_YVYU, 16, 5, 4, 0 },
> @@ -1121,6 +1125,8 @@ static int v4lconvert_convert_pixfmt(struct v4lconvert_data *data,
> break;
>
> case V4L2_PIX_FMT_RGB32:
> + case V4L2_PIX_FMT_XRGB32:
> + case V4L2_PIX_FMT_ARGB32:
> if (src_size < (width * height * 4)) {
> V4LCONVERT_ERR("short rgb32 data frame\n");
> errno = EPIPE;
> @@ -1143,6 +1149,8 @@ static int v4lconvert_convert_pixfmt(struct v4lconvert_data *data,
> break;
>
> case V4L2_PIX_FMT_BGR32:
> + case V4L2_PIX_FMT_XBGR32:
> + case V4L2_PIX_FMT_ABGR32:
> if (src_size < (width * height * 4)) {
> V4LCONVERT_ERR("short bgr32 data frame\n");
> errno = EPIPE;
>
prev parent reply other threads:[~2014-07-18 10:01 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-17 22:27 [PATCH] libv4lconvert: add support for new pixelformats Hans Verkuil
2014-07-18 10:01 ` Hans de Goede [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=53C8F07E.9080805@redhat.com \
--to=hdegoede@redhat.com \
--cc=hverkuil@xs4all.nl \
--cc=linux-media@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.