From: Dafna Hirschfeld Subject: Re: [PATCH] media: v4l2-common: change the pixel_enc of V4L2_PIX_FMT_GREY to YUV Date: Tue, 31 Mar 2020 09:20:49 +0200 Message-ID: References: <20200323173618.14058-1-dafna.hirschfeld@collabora.com> <9304066ca10c9ccdf8a5fd88866425a5f45a330a.camel@collabora.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <9304066ca10c9ccdf8a5fd88866425a5f45a330a.camel@collabora.com> Content-Language: en-US Sender: linux-media-owner@vger.kernel.org To: Ezequiel Garcia , linux-media@vger.kernel.org, helen.koike@collabora.com, hverkuil@xs4all.nl, kernel@collabora.com, dafna3@gmail.com, sakari.ailus@linux.intel.com, linux-rockchip@lists.infradead.org, mchehab@kernel.org, laurent.pinchart@ideasonboard.com List-Id: linux-rockchip.vger.kernel.org On 30.03.20 20:22, Ezequiel Garcia wrote: > Hi Dafna, > > Nice catch, thanks a lot. Hi, It was actually Helen's idea, > > On Mon, 2020-03-23 at 18:36 +0100, Dafna Hirschfeld wrote: >> V4L2_PIX_FMT_GREY format is Ycbcr format without > > A nitpick s/Ycbcr/YCbCr. Maybe Hans can amend > this when applying. > > It's no big deal anyway. > > Reviewed-by: Ezequiel Garcia > >> the color data, therefore its pixel_enc should >> set to V4L2_PIXEL_ENC_YUV. >> >> Signed-off-by: Dafna Hirschfeld Suggested-by: Helen Koike >> --- >> drivers/media/v4l2-core/v4l2-common.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/drivers/media/v4l2-core/v4l2-common.c b/drivers/media/v4l2-core/v4l2-common.c >> index d0e5ebc736f9..054f2e607dff 100644 >> --- a/drivers/media/v4l2-core/v4l2-common.c >> +++ b/drivers/media/v4l2-core/v4l2-common.c >> @@ -250,7 +250,6 @@ const struct v4l2_format_info *v4l2_format_info(u32 format) >> { .format = V4L2_PIX_FMT_RGBA32, .pixel_enc = V4L2_PIXEL_ENC_RGB, .mem_planes = 1, .comp_planes = 1, .bpp = { 4, 0, 0, 0 }, .hdiv = >> 1, .vdiv = 1 }, >> { .format = V4L2_PIX_FMT_ABGR32, .pixel_enc = V4L2_PIXEL_ENC_RGB, .mem_planes = 1, .comp_planes = 1, .bpp = { 4, 0, 0, 0 }, .hdiv = >> 1, .vdiv = 1 }, >> { .format = V4L2_PIX_FMT_BGRA32, .pixel_enc = V4L2_PIXEL_ENC_RGB, .mem_planes = 1, .comp_planes = 1, .bpp = { 4, 0, 0, 0 }, .hdiv = >> 1, .vdiv = 1 }, >> - { .format = V4L2_PIX_FMT_GREY, .pixel_enc = V4L2_PIXEL_ENC_RGB, .mem_planes = 1, .comp_planes = 1, .bpp = { 1, 0, 0, 0 }, .hdiv = >> 1, .vdiv = 1 }, >> { .format = V4L2_PIX_FMT_RGB565, .pixel_enc = V4L2_PIXEL_ENC_RGB, .mem_planes = 1, .comp_planes = 1, .bpp = { 2, 0, 0, 0 }, .hdiv = >> 1, .vdiv = 1 }, >> { .format = V4L2_PIX_FMT_RGB555, .pixel_enc = V4L2_PIXEL_ENC_RGB, .mem_planes = 1, .comp_planes = 1, .bpp = { 2, 0, 0, 0 }, .hdiv = >> 1, .vdiv = 1 }, >> >> @@ -274,6 +273,7 @@ const struct v4l2_format_info *v4l2_format_info(u32 format) >> { .format = V4L2_PIX_FMT_YUV420, .pixel_enc = V4L2_PIXEL_ENC_YUV, .mem_planes = 1, .comp_planes = 3, .bpp = { 1, 1, 1, 0 }, .hdiv = >> 2, .vdiv = 2 }, >> { .format = V4L2_PIX_FMT_YVU420, .pixel_enc = V4L2_PIXEL_ENC_YUV, .mem_planes = 1, .comp_planes = 3, .bpp = { 1, 1, 1, 0 }, .hdiv = >> 2, .vdiv = 2 }, >> { .format = V4L2_PIX_FMT_YUV422P, .pixel_enc = V4L2_PIXEL_ENC_YUV, .mem_planes = 1, .comp_planes = 3, .bpp = { 1, 1, 1, 0 }, .hdiv = >> 2, .vdiv = 1 }, >> + { .format = V4L2_PIX_FMT_GREY, .pixel_enc = V4L2_PIXEL_ENC_YUV, .mem_planes = 1, .comp_planes = 1, .bpp = { 1, 0, 0, 0 }, .hdiv = >> 1, .vdiv = 1 }, >> >> /* YUV planar formats, non contiguous variant */ >> { .format = V4L2_PIX_FMT_YUV420M, .pixel_enc = V4L2_PIXEL_ENC_YUV, .mem_planes = 3, .comp_planes = 3, .bpp = { 1, 1, 1, 0 }, .hdiv = >> 2, .vdiv = 2 }, >> -- >> 2.17.1 >> >> > >