From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sakari Ailus Date: Tue, 30 Jul 2013 11:32:21 +0000 Subject: Re: [PATCH v3 4/5] v4l: Add V4L2_PIX_FMT_NV16M and V4L2_PIX_FMT_NV61M formats Message-Id: <20130730113221.GO12281@valkosipuli.retiisi.org.uk> List-Id: References: <1374757213-20194-1-git-send-email-laurent.pinchart@ideasonboard.com> <1374757213-20194-5-git-send-email-laurent.pinchart@ideasonboard.com> <20130730110934.GN12281@valkosipuli.retiisi.org.uk> <3004984.tPvT1zp9Z5@avalon> In-Reply-To: <3004984.tPvT1zp9Z5@avalon> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Laurent Pinchart Cc: linux-media@vger.kernel.org, linux-sh@vger.kernel.org, Hans Verkuil , Katsuya MATSUBARA , Sylwester Nawrocki On Tue, Jul 30, 2013 at 01:16:54PM +0200, Laurent Pinchart wrote: ... > > > + This is a multi-planar, two-plane version of the YUV 4:2:0 > format. > > > +The three components are separated into two sub-images or planes. > > > +V4L2_PIX_FMT_NV16M differs from > > > V4L2_PIX_FMT_NV16 + in that the two planes are > > > non-contiguous in memory, i.e. the chroma +plane do not necessarily > > > immediately follows the luma plane. > > > +The luminance data occupies the first plane. The Y plane has one byte per > > > pixel. +In the second plane there is a chrominance data with alternating > > > chroma samples. +The CbCr plane is the same width and height, in bytes, > > > as the Y plane. +Each CbCr pair belongs to four pixels. For example, > > > +Cb0/Cr0 belongs to > > > +Y'00, Y'01, > > > +Y'10, Y'11. > > > +V4L2_PIX_FMT_NV61M is the same as > > > V4L2_PIX_FMT_NV16M +except the Cb and Cr bytes are > > > swapped, the CrCb plane starts with a Cr byte. + > > > + V4L2_PIX_FMT_NV16M is intended to be > > > +used only in drivers and applications that support the multi-planar API, > > > +described in . > > > > I think you could refer to V4L2_PIX_FMT_NV61M or alternatively move the > > sentence explaining V4L2_PIX_FMT_NV61M after the above. Up to you. > > Something like > > V4L2_PIX_FMT_NV16M and > V4L2_PIX_FMT_NV61M are intended to be used only in > drivers and applications that support the multi-planar API, described in Fine for me. -- Cheers, Sakari Ailus e-mail: sakari.ailus@iki.fi XMPP: sailus@retiisi.org.uk From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from nblzone-211-213.nblnetworks.fi ([83.145.211.213]:54902 "EHLO hillosipuli.retiisi.org.uk" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751972Ab3G3Lc4 (ORCPT ); Tue, 30 Jul 2013 07:32:56 -0400 Date: Tue, 30 Jul 2013 14:32:21 +0300 From: Sakari Ailus To: Laurent Pinchart Cc: linux-media@vger.kernel.org, linux-sh@vger.kernel.org, Hans Verkuil , Katsuya MATSUBARA , Sylwester Nawrocki Subject: Re: [PATCH v3 4/5] v4l: Add V4L2_PIX_FMT_NV16M and V4L2_PIX_FMT_NV61M formats Message-ID: <20130730113221.GO12281@valkosipuli.retiisi.org.uk> References: <1374757213-20194-1-git-send-email-laurent.pinchart@ideasonboard.com> <1374757213-20194-5-git-send-email-laurent.pinchart@ideasonboard.com> <20130730110934.GN12281@valkosipuli.retiisi.org.uk> <3004984.tPvT1zp9Z5@avalon> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3004984.tPvT1zp9Z5@avalon> Sender: linux-media-owner@vger.kernel.org List-ID: On Tue, Jul 30, 2013 at 01:16:54PM +0200, Laurent Pinchart wrote: ... > > > + This is a multi-planar, two-plane version of the YUV 4:2:0 > format. > > > +The three components are separated into two sub-images or planes. > > > +V4L2_PIX_FMT_NV16M differs from > > > V4L2_PIX_FMT_NV16 + in that the two planes are > > > non-contiguous in memory, i.e. the chroma +plane do not necessarily > > > immediately follows the luma plane. > > > +The luminance data occupies the first plane. The Y plane has one byte per > > > pixel. +In the second plane there is a chrominance data with alternating > > > chroma samples. +The CbCr plane is the same width and height, in bytes, > > > as the Y plane. +Each CbCr pair belongs to four pixels. For example, > > > +Cb0/Cr0 belongs to > > > +Y'00, Y'01, > > > +Y'10, Y'11. > > > +V4L2_PIX_FMT_NV61M is the same as > > > V4L2_PIX_FMT_NV16M +except the Cb and Cr bytes are > > > swapped, the CrCb plane starts with a Cr byte. + > > > + V4L2_PIX_FMT_NV16M is intended to be > > > +used only in drivers and applications that support the multi-planar API, > > > +described in . > > > > I think you could refer to V4L2_PIX_FMT_NV61M or alternatively move the > > sentence explaining V4L2_PIX_FMT_NV61M after the above. Up to you. > > Something like > > V4L2_PIX_FMT_NV16M and > V4L2_PIX_FMT_NV61M are intended to be used only in > drivers and applications that support the multi-planar API, described in Fine for me. -- Cheers, Sakari Ailus e-mail: sakari.ailus@iki.fi XMPP: sailus@retiisi.org.uk