From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A3879C4321E for ; Mon, 5 Dec 2022 08:18:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231765AbiLEISU (ORCPT ); Mon, 5 Dec 2022 03:18:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42302 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231796AbiLEISK (ORCPT ); Mon, 5 Dec 2022 03:18:10 -0500 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DB427A1B3 for ; Mon, 5 Dec 2022 00:18:09 -0800 (PST) Received: from pendragon.ideasonboard.com (213-243-189-158.bb.dnainternet.fi [213.243.189.158]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 6EFA025B; Mon, 5 Dec 2022 09:18:08 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1670228288; bh=4WDeu4NHY+PkIksNumuvL9ouo61DNn2xeb+bu1B8R2I=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=bDkV1w7xzgE36d3Nuv9n+UD+1m6VJsFqhn0lwwvL7diQacmaomb7QzT28AXWjPt7T tf7NYj+6cOtP26rv+mwgQHEIAgbchnMkJKvGQ67m1/W7Q78Z3YExVqP2Das5hdRW92 JD0dqRLN3lNwUryvtQEWetFVDp/V+iEZwIlagtSc= Date: Mon, 5 Dec 2022 10:18:06 +0200 From: Laurent Pinchart To: Tomi Valkeinen Cc: linux-renesas-soc@vger.kernel.org, Kieran Bingham Subject: Re: [PATCH kms++ v2 2/4] kms++: PixelFormats: Add Y21x formats Message-ID: References: <20221205080339.12801-1-tomi.valkeinen+renesas@ideasonboard.com> <20221205080339.12801-3-tomi.valkeinen+renesas@ideasonboard.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20221205080339.12801-3-tomi.valkeinen+renesas@ideasonboard.com> Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org Hi Tomi, Thank you for the patch. On Mon, Dec 05, 2022 at 10:03:37AM +0200, Tomi Valkeinen wrote: > Add Y210, Y212, Y216 pixel formats. > > Signed-off-by: Tomi Valkeinen Reviewed-by: Laurent Pinchart > --- > kms++/inc/kms++/pixelformats.h | 4 ++++ > kms++/src/pixelformats.cpp | 16 ++++++++++++++++ > 2 files changed, 20 insertions(+) > > diff --git a/kms++/inc/kms++/pixelformats.h b/kms++/inc/kms++/pixelformats.h > index 8ebb76b..e334ee6 100644 > --- a/kms++/inc/kms++/pixelformats.h > +++ b/kms++/inc/kms++/pixelformats.h > @@ -31,6 +31,10 @@ enum class PixelFormat : uint32_t { > YVYU = MakeFourCC("YVYU"), > VYUY = MakeFourCC("VYUY"), > > + Y210 = MakeFourCC("Y210"), > + Y212 = MakeFourCC("Y212"), > + Y216 = MakeFourCC("Y216"), > + > XRGB8888 = MakeFourCC("XR24"), > XBGR8888 = MakeFourCC("XB24"), > RGBX8888 = MakeFourCC("RX24"), > diff --git a/kms++/src/pixelformats.cpp b/kms++/src/pixelformats.cpp > index 1f10f3a..5f13ef4 100644 > --- a/kms++/src/pixelformats.cpp > +++ b/kms++/src/pixelformats.cpp > @@ -28,6 +28,22 @@ static const map format_info_array = { > 1, > { { 16, 2, 1 } }, > } }, > + { PixelFormat::Y210, { > + PixelColorType::YUV, > + 1, > + { { 32, 2, 1 } }, > + } }, > + { PixelFormat::Y212, { > + PixelColorType::YUV, > + 1, > + { { 32, 2, 1 } }, > + } }, > + { PixelFormat::Y216, { > + PixelColorType::YUV, > + 1, > + { { 32, 2, 1 } }, > + } }, > + > /* YUV semi-planar */ > { PixelFormat::NV12, { > PixelColorType::YUV, -- Regards, Laurent Pinchart