All of lore.kernel.org
 help / color / mirror / Atom feed
From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: "Hadli, Manjunath" <manjunath.hadli@ti.com>
Cc: LMML <linux-media@vger.kernel.org>,
	dlos <davinci-linux-open-source@linux.davincidsp.com>,
	Hans Verkuil <hverkuil@xs4all.nl>,
	Guennadi Liakhovetski <g.liakhovetski@gmx.de>,
	Sakari Ailus <sakari.ailus@iki.fi>
Subject: Re: [PATCH 1/2] media: add new mediabus format enums for dm365
Date: Wed, 21 Dec 2011 23:18:54 +0100	[thread overview]
Message-ID: <201112212318.55517.laurent.pinchart@ideasonboard.com> (raw)
In-Reply-To: <E99FAA59F8D8D34D8A118DD37F7C8F75018904@DBDE01.ent.ti.com>

Hi Manju,

On Wednesday 21 December 2011 14:54:18 Hadli, Manjunath wrote:
> On Wed, Dec 21, 2011 at 05:28:31, Laurent Pinchart wrote:
> > On Friday 16 December 2011 15:20:24 Hadli, Manjunath wrote:
> > > On Thu, Dec 15, 2011 at 18:32:44, Laurent Pinchart wrote:
> > > > On Thursday 15 December 2011 13:24:57 Manjunath Hadli wrote:
> > > > > add new enum entry V4L2_MBUS_FMT_SGRBG10_ALAW8_1X8 into
> > > > > mbus_pixel_code to represent A-LAW compressed Bayer format. This
> > > > > corresponds to pixel format - V4L2_PIX_FMT_SGRBG10ALAW8.
> > > > > add UV8 and NV12 ( Y and C separate with UV interleaved) which are
> > > > > supported on dm365.
> > > > > 
> > > > > Signed-off-by: Manjunath Hadli <manjunath.hadli@ti.com>
> > > > > Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> > > > > ---
> > > > > 
> > > > >  include/linux/v4l2-mediabus.h |   10 ++++++++--
> > > > >  1 files changed, 8 insertions(+), 2 deletions(-)
> > > > 
> > > > Please also update the documentation in
> > > > Documentation/DocBook/media/v4l.
> > > > 
> > > > > diff --git a/include/linux/v4l2-mediabus.h
> > > > > b/include/linux/v4l2-mediabus.h index 5ea7f75..d408654 100644
> > > > > --- a/include/linux/v4l2-mediabus.h
> > > > > +++ b/include/linux/v4l2-mediabus.h
> > > > > @@ -47,7 +47,7 @@ enum v4l2_mbus_pixelcode {
> > > > > 
> > > > >  	V4L2_MBUS_FMT_RGB565_2X8_BE = 0x1007,
> > > > >  	V4L2_MBUS_FMT_RGB565_2X8_LE = 0x1008,
> > > > > 
> > > > > -	/* YUV (including grey) - next is 0x2014 */
> > > > > +	/* YUV (including grey) - next is 0x2016 */
> > > > > 
> > > > >  	V4L2_MBUS_FMT_Y8_1X8 = 0x2001,
> > > > >  	V4L2_MBUS_FMT_UYVY8_1_5X8 = 0x2002,
> > > > >  	V4L2_MBUS_FMT_VYUY8_1_5X8 = 0x2003,
> > > > > 
> > > > > @@ -67,8 +67,10 @@ enum v4l2_mbus_pixelcode {
> > > > > 
> > > > >  	V4L2_MBUS_FMT_YVYU8_1X16 = 0x2012,
> > > > >  	V4L2_MBUS_FMT_YUYV10_1X20 = 0x200d,
> > > > >  	V4L2_MBUS_FMT_YVYU10_1X20 = 0x200e,
> > > > > 
> > > > > +	V4L2_MBUS_FMT_NV12_1X20 = 0x2014,
> > > > > +	V4L2_MBUS_FMT_UV8_1X8 = 0x2015,
> > > > 
> > > > NV12, on the bus ? How does that work ? (The documentation should
> > > > answer my question :-))
> > > 
> > > Well, this is on the internal bus not exposed outside, but
> > > nevertheless bus between two subdevs or two independent hardware
> > > blocks. For example Resizer supports NV12 on its pad. Is there any
> > > other way to treat this?
> > 
> > How is NV12 transferred on the bus in that case ? Are all luma samples
> > transferred first, followed by all chroma samples ?
> 
> It uses parallel bus of 16 bits, where Y and C are transmitted
> simultaneously on 8 bits each. NV12 uses a dummy C byte for every valid
> one.
> So I guess we call it V4L2_MBUS_FMT_YDYC_1X16 or V4L2_MBUS_FMT_YCYD_1X16?
> That way we will be able to document the format in the documentation also.

That sounds good (YDYC8_1X16 to be precise). Hans, Guennadi, Sakari, any 
opinion ?

-- 
Regards,

Laurent Pinchart

  reply	other threads:[~2011-12-21 22:18 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-15 12:24 [PATCH 0/2] add dm365 specific media formats Manjunath Hadli
2011-12-15 12:24 ` [PATCH 1/2] media: add new mediabus format enums for dm365 Manjunath Hadli
2011-12-15 13:02   ` Laurent Pinchart
2011-12-16 14:20     ` Hadli, Manjunath
2011-12-20 23:58       ` Laurent Pinchart
2011-12-21 13:54         ` Hadli, Manjunath
2011-12-21 22:18           ` Laurent Pinchart [this message]
2011-12-15 12:24 ` [PATCH 2/2] v4l2: add new pixel formats supported on dm365 Manjunath Hadli
2011-12-15 13:00   ` Laurent Pinchart
2011-12-16 13:42     ` Hadli, Manjunath
2011-12-21  0:02       ` Laurent Pinchart
2011-12-21 13:56         ` Hadli, Manjunath
2011-12-21 22:23           ` Laurent Pinchart
2011-12-21 22:46             ` Guennadi Liakhovetski
2011-12-22 10:23               ` Laurent Pinchart
2011-12-28 11:16             ` Sakari Ailus
2012-01-02 11:21               ` Laurent Pinchart
2012-01-17  6:59                 ` Hadli, Manjunath
2012-01-17  9:17                   ` Laurent Pinchart

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=201112212318.55517.laurent.pinchart@ideasonboard.com \
    --to=laurent.pinchart@ideasonboard.com \
    --cc=davinci-linux-open-source@linux.davincidsp.com \
    --cc=g.liakhovetski@gmx.de \
    --cc=hverkuil@xs4all.nl \
    --cc=linux-media@vger.kernel.org \
    --cc=manjunath.hadli@ti.com \
    --cc=sakari.ailus@iki.fi \
    /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.