Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1658391

Re: Support for RGB/YUV 10, 12 BPC(bits per color/component) image data formats in kernel

Path csiph.com!news.redatomik.org!aioe.org!news.servidellagleba.it!bofh.it!news.nic.it!robomod
From Ajay kumar <ajaynumb@gmail.com>
Newsgroups linux.kernel
Subject Re: Support for RGB/YUV 10, 12 BPC(bits per color/component) image data formats in kernel
Date Tue, 06 Jun 2017 08:40:01 +0200
Message-ID <tPgjL-58I-9@gated-at.bofh.it> (permalink)
References <tNUv0-1xY-1@gated-at.bofh.it> <tOcrT-4zm-1@gated-at.bofh.it>
X-Original-To Sakari Ailus <sakari.ailus@iki.fi>
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=kHQf7RfgWhbA821BGZsTWfasS+cDavSc0lcFz3TuiAI=; b=sMQWp4pTdzZUe7GVC+cT5fyMWOx8I+Cr0VkHa/Acp02CtOUPxS5vjLQih6h2CP8sf8 ziBnrg0gxFtBwKhgDT9JFRqV/zEyzYnU7DpdFRQ49D0Ez1inoxPIYVF3iNWTNynv6Uxm c7swCt9dridHndwvr+3LVf1yHsPVkHtLFqm1L8jt4XvJArCDpnUDHq17H6FI1MEvQnN5 zvWMuOHdNQuPRsBhptlUxZeHrrybH3MkWi6DjDWRG6h0PgwXeUUVLrSO+bNlabpiMLDH dASnyeTK4/ApqYJb7Tw7MFPcvQ0iKtBp+u0pxvum2GJ5oGnVaixnn8SyqPtJHxZd9TUc bShg==
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=kHQf7RfgWhbA821BGZsTWfasS+cDavSc0lcFz3TuiAI=; b=L6y4G+shXO3svEsCb94Mg5g708nRPvLw8/Q8Y7gErl6OiqwGlDckwl+uYDr5JO8Eh6 XaZGgtH++DytymN2YbTD9jP3wL4AkdG8i8UOHEUY8+mCLahcD78UYZMYIQ8N9ky585go V/gO42pGDvSPnexGpcob6+976pZM6Ne9EYQR7IdhNbIHK8sHzZ3I1z9PTH48kJiKor2m tkEiuZhNUmercJXjTVJmNkMyozsPWChxqjQm9EFXLFqT4Do/zW3n6HqNYxoDJEefYjLk cKF0eqmFX3ugCPACNX0gf2Ze4vlcPayMRheZ8QsBffLFL5ZaA4pPMohokdDZdqD/PM4H n6Ug==
X-Gm-Message-State AODbwcDXgIHi4V/m61UG+lWCOVO8pdlWkF2l7XB88ukvjWoANUIzoIP8 FXI+KAQrYRy3nRrlH44uU6HaoZ1Ltu7VlrPnXg==
X-Received by 10.157.11.173 with SMTP id 42mr7266853oth.32.1496730945165; Mon, 05 Jun 2017 23:35:45 -0700 (PDT)
MIME-Version 1.0
Content-Type text/plain; charset="UTF-8"
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 43
Organization linux.* mail to news gateway
X-Original-Cc LKML <linux-kernel@vger.kernel.org>, linux-media <linux-media@vger.kernel.org>
X-Original-Date Tue, 6 Jun 2017 12:05:44 +0530
X-Original-Message-ID <CAEC9eQM6Ns07qRF6ofy5OL6BOGjM8gNs9uzDFxjpdpev-Z3zYA@mail.gmail.com>
X-Original-References <CAEC9eQNW1hHrn2p9Tu-WR3Kft62x71383HjwbJQSiq_iWebsnw@mail.gmail.com> <20170603081817.GQ1019@valkosipuli.retiisi.org.uk>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1658391

Show key headers only | View raw


Hi Sakari,

On Sat, Jun 3, 2017 at 1:48 PM, Sakari Ailus <sakari.ailus@iki.fi> wrote:
> Hi Ajay,
>
> On Fri, Jun 02, 2017 at 06:38:53PM +0530, Ajay kumar wrote:
>> Hi all,
>>
>> I have tried searching for RGB/YUV 10, 12 BPC formats in videodev2.h,
>> media-bus-format.h and drm_fourcc.h
>> I could only find RGB 10BPC support in drm_fourcc.h.
>> I guess not much support is present for formats with (BPC > 8) in the kernel.
>
> What's "BPC"? Most YUV and RGB formats have only 8 bits per sample. More
> format definitions may be added if there's a driver that makes use of them.
BPC : Bits Per Color/Component
In my project, we have an image capture device which can capture 10 or
12 bits for each of R, G, B colors, i.e:
R[0:9] G[0:9] B[0:9] and
R[0:11] G[0:11] B[0:11]

I want to define macros for the above formats in videodev2.h.
But, I am not getting the logic behind the naming convention used to
define v4l2_fourcc macros.
ex:
V4L2_PIX_FMT_ARGB32      v4l2_fourcc('A', 'R', '2', '4');

How did they choose the characters 'A', 'R', '2', '4' in the above case?

I want to know the logic/naming convention behind that, so that I can create
new v4l2_fourcc defines for 10, 12 BPC formats and use in my driver.

Thanks,
Ajay Kumar
>>
>> Are there any plans to add fourcc defines for such formats?
>> Also, I wanted to how to define fourcc code for those formats?
>
> --
> Regards,
>
> Sakari Ailus
> e-mail: sakari.ailus@iki.fi     XMPP: sailus@retiisi.org.uk

Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Support for RGB/YUV 10, 12 BPC(bits per color/component) image data  formats in kernel Ajay kumar <ajaynumb@gmail.com> - 2017-06-02 15:10 +0200
  Re: Support for RGB/YUV 10, 12 BPC(bits per color/component) image  data formats in kernel Sakari Ailus <sakari.ailus@iki.fi> - 2017-06-03 10:20 +0200
    Re: Support for RGB/YUV 10, 12 BPC(bits per color/component) image  data formats in kernel Ajay kumar <ajaynumb@gmail.com> - 2017-06-06 08:40 +0200
      Re: Support for RGB/YUV 10, 12 BPC(bits per color/component) image  data formats in kernel Hans Verkuil <hverkuil@xs4all.nl> - 2017-06-06 11:40 +0200

csiph-web