Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp422964pxu; Fri, 4 Dec 2020 06:37:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJwW66LaO6U7Ggnn3nZAEsBaNR7DUU3LK094QUiinkepeAlzOn+kTZg0/Ah5dMIWbuBct1cV X-Received: by 2002:aa7:c753:: with SMTP id c19mr7872270eds.358.1607092674365; Fri, 04 Dec 2020 06:37:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607092674; cv=none; d=google.com; s=arc-20160816; b=wA+GJEJ89nis8/XYv03FmGvo34UEfy2POjCJ9/UCRgHEjMNIAc3fp+03DbrI3BeMtR GGw/+qickbdxXDyZbzPLgKqaq/cOzbKtmo12ejLt4lWuA9x61XWYRMqkHT49NUq5f+Xj Hu1Uh4sZQC1kLgmPWoYUhWc460d4kFqmenSrk/iXajb0u37Yiaf2jAUgjvmHQgtxlZzi lAfDawO6UjW6GJcoSyv5WTmkk88KRewyBx8tt9wJ/3hnTJGqwcqStUu6GlNPfX9/K7tC ogoXeHzIpv1YfsxbPjtVDTEidaVCwXgxmP0Plr/q6cRDsBShymuTWr0GbIdeuNq8aAKu 2Q8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id; bh=WAKweCQfHaJdh0CRJIQm5houL9WdGxtO+b2VqEnYY+E=; b=vH68tSeEgHwA5clkzEEsyCGGzM9ThDbcnvESTkMgnPSk+Gi9GAz3vl9kbMOSdFiP9f g7LyCRF7EyitXTdi46N+zvAg/OracxkBcclz3vzDVLxbpfYHNA7AUZnTarziKxCd8X3P pkyAhXVtVY1qohEIWGE+9wE7nAn/2cuCn9diRzJvjTbr4OqYm84hZz0KxBof3xrsiVZW M5d4GDjSxaJFUyEUTT4FNIqbmNMfZryDObmtcvJbpIzgSSjNgvZEH4ffzahsB1HJQZu4 6WU+vQNKnCzzSK7eA09jcGUIfX8xD0DmsXi/h/n1Y/4TLSFFlrXlgOSbYBcWQu4Yrtxk 8oSQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r12si1402590ejs.382.2020.12.04.06.37.28; Fri, 04 Dec 2020 06:37:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728626AbgLDOdX convert rfc822-to-8bit (ORCPT + 99 others); Fri, 4 Dec 2020 09:33:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37918 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726312AbgLDOdW (ORCPT ); Fri, 4 Dec 2020 09:33:22 -0500 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 79A11C0613D1 for ; Fri, 4 Dec 2020 06:32:42 -0800 (PST) Received: from lupine.hi.pengutronix.de ([2001:67c:670:100:3ad5:47ff:feaf:1a17] helo=lupine) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1klC8R-0002pr-W0; Fri, 04 Dec 2020 15:32:35 +0100 Received: from pza by lupine with local (Exim 4.92) (envelope-from ) id 1klC8Q-0003Ke-69; Fri, 04 Dec 2020 15:32:34 +0100 Message-ID: Subject: Re: [EXT] Re: [PATCH v5 07/10] media: Add parsing for APP14 data segment in jpeg helpers From: Philipp Zabel To: "Mirela Rabulea (OSS)" , "mchehab@kernel.org" , "shawnguo@kernel.org" , "robh+dt@kernel.org" , "hverkuil-cisco@xs4all.nl" Cc: dl-linux-imx , "linux-kernel@vger.kernel.org" , "laurent.pinchart+renesas@ideasonboard.com" , Aisheng Dong , Laurentiu Palcu , "linux-media@vger.kernel.org" , Robert Chiras , "devicetree@vger.kernel.org" , "paul.kocialkowski@bootlin.com" , "mark.rutland@arm.com" , "niklas.soderlund+renesas@ragnatech.se" , Daniel Baluta , "dafna.hirschfeld@collabora.com" , "ezequiel@collabora.com" , "s.hauer@pengutronix.de" Date: Fri, 04 Dec 2020 15:32:34 +0100 In-Reply-To: <2bffcb5a2454dfc2188cc11b0f796f965cc7291e.camel@oss.nxp.com> References: <20201112030557.8540-1-mirela.rabulea@oss.nxp.com> <20201112030557.8540-8-mirela.rabulea@oss.nxp.com> <6acf2724130aa2e927cd116ecd216bec3e0321a5.camel@pengutronix.de> <2bffcb5a2454dfc2188cc11b0f796f965cc7291e.camel@oss.nxp.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT User-Agent: Evolution 3.30.5-1.1 MIME-Version: 1.0 X-SA-Exim-Connect-IP: 2001:67c:670:100:3ad5:47ff:feaf:1a17 X-SA-Exim-Mail-From: p.zabel@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2020-12-04 at 14:13 +0000, Mirela Rabulea (OSS) wrote: > Hi Phipipp, > > On Wed, 2020-12-02 at 16:18 +0100, Philipp Zabel wrote: > > Hi Mirela, > > > > On Thu, 2020-11-12 at 05:05 +0200, Mirela Rabulea (OSS) wrote: > > > From: Mirela Rabulea > > > > > > According to Rec. ITU-T T.872 (06/2012) 6.5.3 > > > APP14 segment is for color encoding, it contains a transform flag, > > > which > > > may have values of 0, 1 and 2 and are interpreted as follows: > > > 0 - CMYK for images that are encoded with four components > > > - RGB for images that are encoded with three components > > > 1 - An image encoded with three components using YCbCr colour > > > encoding. > > > 2 - An image encoded with four components using YCCK colour > > > encoding. > > > > > > This is used in imx-jpeg decoder, to distinguish between > > > YUV444 and RGB24. > > > > > > Signed-off-by: Mirela Rabulea > > > --- > > > Changes in v5: > > > This was patch 8 in previous version > > > Replaced a struct for app14 data with just an int, since the > > > transform flag is the only meaningfull information from this > > > segment > > > > Could we turn this into an enum for the transform flag, and include > > the > > above spec reference in its kerneldoc comment? I think this would be > > better than checking for (app14_tf == ) in the drivers. > > Appreciate your feedback, for all patches, I'll address it in v6. > Where would be a better place for this enum, v4l2-jpeg.h, or maybe > include/uapi/linux/v4l2-controls.h? v4l2-jpeg.h seems like the right place to me. regards Philipp