public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Edgar Thier <info@edgarthier.net>
Cc: linux-media@vger.kernel.org
Subject: Re: [PATCH] Added bayer 8-bit patterns to uvcvideo
Date: Tue, 18 Feb 2014 15:37:34 +0100	[thread overview]
Message-ID: <232139127.sJD4YvNJ9E@avalon> (raw)
In-Reply-To: <CAENiEt-OA==jH_tA4HBP68RW3vGga99dpuFE+Zx7=QNYBqeC5A@mail.gmail.com>

Hi Edgar,

Thank you for the patch.

On Monday 20 January 2014 09:11:28 Edgar Thier wrote:
> Add bayer 8-bit GUIDs to uvcvideo and
> associate them with the corresponding V4L2 pixel formats.
> 
> Signed-off-by: Edgar Thier <info@edgarthier.net>

Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>

Out of curiosity, could you please send me the lsusb -v output of the camera 
you need this for ?

> ---
>  drivers/media/usb/uvc/uvc_driver.c | 22 +++++++++++++++++++++-
>  drivers/media/usb/uvc/uvcvideo.h   | 12 ++++++++++++
>  2 files changed, 33 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/media/usb/uvc/uvc_driver.c
> b/drivers/media/usb/uvc/uvc_driver.c
> index c3bb250..84da426 100644
> --- a/drivers/media/usb/uvc/uvc_driver.c
> +++ b/drivers/media/usb/uvc/uvc_driver.c
> @@ -108,11 +108,31 @@ static struct uvc_format_desc uvc_fmts[] = {
>          .fcc        = V4L2_PIX_FMT_Y16,
>      },
>      {
> -        .name        = "RGB Bayer",
> +        .name        = "RGB Bayer (bggr)",
>          .guid        = UVC_GUID_FORMAT_BY8,
>          .fcc        = V4L2_PIX_FMT_SBGGR8,

It looks like your mailer has corrupted the patch by replacing tabs with 
spaces. Could you please fix that and resubmit ? While you're at it, could you 
please prefix the commit subject with "uvcvideo: " ?

>      },
>      {
> +        .name        = "RGB Bayer (bggr)",
> +        .guid        = UVC_GUID_FORMAT_BY8_BA81,
> +        .fcc        = V4L2_PIX_FMT_SBGGR8,
> +    },
> +    {
> +        .name        = "RGB Bayer (grbg)",
> +        .guid        = UVC_GUID_FORMAT_BY8_GRBG,
> +        .fcc        = V4L2_PIX_FMT_SGRBG8,
> +    },
> +    {
> +        .name        = "RGB Bayer (gbrg)",
> +        .guid        = UVC_GUID_FORMAT_BY8_GBRG,
> +        .fcc        = V4L2_PIX_FMT_SGBRG8,
> +    },
> +    {
> +        .name        = "RGB Bayer (rggb)",
> +        .guid        = UVC_GUID_FORMAT_BY8_RGGB,
> +        .fcc        = V4L2_PIX_FMT_SRGGB8,
> +    },
> +    {
>          .name        = "RGB565",
>          .guid        = UVC_GUID_FORMAT_RGBP,
>          .fcc        = V4L2_PIX_FMT_RGB565,
> diff --git a/drivers/media/usb/uvc/uvcvideo.h
> b/drivers/media/usb/uvc/uvcvideo.h index 9e35982..57357d9 100644
> --- a/drivers/media/usb/uvc/uvcvideo.h
> +++ b/drivers/media/usb/uvc/uvcvideo.h
> @@ -94,6 +94,18 @@
>  #define UVC_GUID_FORMAT_BY8 \
>      { 'B',  'Y',  '8',  ' ', 0x00, 0x00, 0x10, 0x00, \
>       0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71}
> +#define UVC_GUID_FORMAT_BY8_BA81 \
> +    { 'B',  'A',  '8',  '1', 0x00, 0x00, 0x10, 0x00, \
> +     0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71}
> +#define UVC_GUID_FORMAT_BY8_GRBG \
> +    { 'G',  'R',  'B',  'G', 0x00, 0x00, 0x10, 0x00, \
> +     0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71}
> +#define UVC_GUID_FORMAT_BY8_GBRG \
> +    { 'G',  'B',  'R',  'G', 0x00, 0x00, 0x10, 0x00, \
> +     0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71}
> +#define UVC_GUID_FORMAT_BY8_RGGB \
> +    { 'R',  'G',  'G',  'B', 0x00, 0x00, 0x10, 0x00, \
> +     0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71}
>  #define UVC_GUID_FORMAT_RGBP \
>      { 'R',  'G',  'B',  'P', 0x00, 0x00, 0x10, 0x00, \
>       0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71}

-- 
Regards,

Laurent Pinchart


      reply	other threads:[~2014-02-18 14:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-20  8:11 [PATCH] Added bayer 8-bit patterns to uvcvideo Edgar Thier
2014-02-18 14:37 ` Laurent Pinchart [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=232139127.sJD4YvNJ9E@avalon \
    --to=laurent.pinchart@ideasonboard.com \
    --cc=info@edgarthier.net \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox