From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ville =?iso-8859-1?Q?Syrj=E4l=E4?= Subject: Re: [PATCH libdrm] libdrm: update drm/drm_fourcc.h from kernel to add multi plane formats Date: Fri, 30 Mar 2012 13:12:58 +0300 Message-ID: <20120330101258.GV4917@intel.com> References: <1333076090-28881-1-git-send-email-sw0312.kim@samsung.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by gabe.freedesktop.org (Postfix) with ESMTP id BCFB0A0D17 for ; Fri, 30 Mar 2012 03:13:02 -0700 (PDT) Content-Disposition: inline In-Reply-To: <1333076090-28881-1-git-send-email-sw0312.kim@samsung.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org To: Seung-Woo Kim Cc: inki.dae@samsung.com, kyungmin.park@samsung.com, dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org On Fri, Mar 30, 2012 at 11:54:50AM +0900, Seung-Woo Kim wrote: > Multi buffer plane pixel formats are added as like kernel header. > = > Signed-off-by: Seung-Woo Kim > --- > include/drm/drm_fourcc.h | 7 +++++++ > 1 files changed, 7 insertions(+), 0 deletions(-) > = > diff --git a/include/drm/drm_fourcc.h b/include/drm/drm_fourcc.h > index 85facb0..7cfd95a 100644 > --- a/include/drm/drm_fourcc.h > +++ b/include/drm/drm_fourcc.h > @@ -107,6 +107,10 @@ > #define DRM_FORMAT_NV16 fourcc_code('N', 'V', '1', '6') /* 2x1 subsampl= ed Cr:Cb plane */ > #define DRM_FORMAT_NV61 fourcc_code('N', 'V', '6', '1') /* 2x1 subsampl= ed Cb:Cr plane */ > = > +/* 2 non contiguous plane YCbCr */ > +#define DRM_FORMAT_NV12M fourcc_code('N', 'M', '1', '2') /* 2x2 subsampl= ed Cr:Cb plane */ NAK. DRM_FORMAT_NV12 handles this just fine. > +#define DRM_FORMAT_NV12MT fourcc_code('T', 'M', '1', '2') /* 2x2 subsamp= led Cr:Cb plane 64x32 macroblocks */ This one is more difficult. Until now tiling was always handled in driver specific manner. OTOH if this format is really supported by different devices from multiple vendors, then it would probably make sense to add it as a standard format. > + > /* > * 3 plane YCbCr > * index 0: Y plane, [7:0] Y > @@ -127,4 +131,7 @@ > #define DRM_FORMAT_YUV444 fourcc_code('Y', 'U', '2', '4') /* non-subsamp= led Cb (1) and Cr (2) planes */ > #define DRM_FORMAT_YVU444 fourcc_code('Y', 'V', '2', '4') /* non-subsamp= led Cr (1) and Cb (2) planes */ > = > +/* 3 non contiguous plane YCbCr */ > +#define DRM_FORMAT_YUV420M fourcc_code('Y', 'M', '1', '2') /* 2x2 subsam= pled Cb (1) and Cr (2) planes */a NAK. DRM_FORMAT_YUV420 handles this. -- = Ville Syrj=E4l=E4 Intel OTC