From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
Cc: dri-devel@lists.freedesktop.org
Subject: Re: [PATCH 3/4] drm: Add NV24 and NV42 pixel formats
Date: Wed, 30 May 2012 15:20:09 +0200 [thread overview]
Message-ID: <10458627.VBMA7d1R5q@avalon> (raw)
In-Reply-To: <20120530130925.GR13065@intel.com>
Hi Ville,
Thank you for the review.
On Wednesday 30 May 2012 16:09:25 Ville Syrjälä wrote:
> On Wed, May 30, 2012 at 02:32:58PM +0200, Laurent Pinchart wrote:
> > Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> > ---
> >
> > include/drm/drm_fourcc.h | 2 ++
> > 1 files changed, 2 insertions(+), 0 deletions(-)
> >
> > diff --git a/include/drm/drm_fourcc.h b/include/drm/drm_fourcc.h
> > index bdf0152..fac7235 100644
> > --- a/include/drm/drm_fourcc.h
> > +++ b/include/drm/drm_fourcc.h
> > @@ -106,6 +106,8 @@
> >
> > #define DRM_FORMAT_NV21 fourcc_code('N', 'V', '2', '1') /* 2x2
> > subsampled Cb:Cr plane */ #define DRM_FORMAT_NV16 fourcc_code('N',
'V',
> > '1', '6') /* 2x1 subsampled Cr:Cb plane */ #define
> > DRM_FORMAT_NV61 fourcc_code('N', 'V', '6', '1') /* 2x1 subsampled
Cb:Cr
> > plane */>
> > +#define DRM_FORMAT_NV24 fourcc_code('N', 'V', '2', '4') /*
> > non-subsampled Cr:Cb plane */ +#define DRM_FORMAT_NV42
fourcc_code('N',
> > 'V', '4', '2') /* non-subsampled Cb:Cr plane */
> If you want these to reach the driver you need to add them to
> format_check().
Oops, my bad, indeed.
> Also you should update drm_format_num_planes() and drm_format_plane_cpp()
> appropriately.
Will do.
I'm a bit puzzled by drm_format_plane_cpp(). I would have expected the return
value to be 1 for NV12/21 and NV16/61 formats (2 U/V components, but 1/2
horizontal subsampling). Is that a bug, or am I missing something ?
--
Regards,
Laurent Pinchart
next prev parent reply other threads:[~2012-05-30 13:19 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-30 12:32 [PATCH 0/4] Renesas SH Mobile DRM driver Laurent Pinchart
2012-05-30 12:32 ` [PATCH 1/4] fbdev: sh_mobile_meram: Add MERAM operations wrappers Laurent Pinchart
2012-05-30 12:32 ` [PATCH 2/4] fbdev: sh_mobile_lcdc: Use " Laurent Pinchart
2012-05-30 12:32 ` [PATCH 3/4] drm: Add NV24 and NV42 pixel formats Laurent Pinchart
2012-05-30 13:09 ` Ville Syrjälä
2012-05-30 13:20 ` Laurent Pinchart [this message]
2012-05-30 14:05 ` Ville Syrjälä
2012-05-30 14:09 ` Laurent Pinchart
2012-05-30 12:32 ` [PATCH 4/4] drm: Renesas SH Mobile DRM driver Laurent Pinchart
2012-05-30 13:43 ` Sascha Hauer
2012-05-30 13:48 ` Lars-Peter Clausen
2012-05-30 14:12 ` Laurent Pinchart
2012-05-30 14:16 ` Ville Syrjälä
2012-06-27 12:40 ` Laurent Pinchart
2012-05-30 14:45 ` Lars-Peter Clausen
2012-05-30 15:10 ` Lars-Peter Clausen
2012-06-27 12:40 ` Laurent Pinchart
2012-06-27 20:06 ` Lars-Peter Clausen
2012-06-27 20:27 ` Laurent Pinchart
2012-06-27 20:56 ` Lars-Peter Clausen
2012-05-30 16:40 ` Sascha Hauer
2012-05-31 9:42 ` 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=10458627.VBMA7d1R5q@avalon \
--to=laurent.pinchart@ideasonboard.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=ville.syrjala@linux.intel.com \
/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.