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 ADC8FC433F5 for ; Fri, 7 Oct 2022 12:12:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229605AbiJGMMG (ORCPT ); Fri, 7 Oct 2022 08:12:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39556 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229603AbiJGMMF (ORCPT ); Fri, 7 Oct 2022 08:12:05 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 57B00D0CF2 for ; Fri, 7 Oct 2022 05:12:05 -0700 (PDT) Received: from pendragon.ideasonboard.com (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id A6584BBE; Fri, 7 Oct 2022 14:12:03 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1665144723; bh=gf2N/1YxoJUwCXjvbJtpB0+pbult3RA3p9c8TYjhPhY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=fiSxsUDVFN6MGRhGOWX9Bwh1aA+QCDu59osfW7XKn4u5Axq/xntuuh5fvkGWA8Dcp cjjNRlSv83TDPi0uWXqP/PXYr/5lBIsy8Hbm46xgZEeM6jmY3TMF5jYRH+06KJx9+C oV4m+6vztm43eTHhwPkGQ2vXtIs3Nhiqhr1OVHog= Date: Fri, 7 Oct 2022 15:11:59 +0300 From: Laurent Pinchart To: Krzysztof =?utf-8?Q?Ha=C5=82asa?= Cc: Jacopo Mondi , Mauro Carvalho Chehab , Sakari Ailus , linux-media@vger.kernel.org Subject: Re: [PATCH 02/10] media: ar0521: Add V4L2_CID_ANALOG_GAIN Message-ID: References: <20221005190613.394277-1-jacopo@jmondi.org> <20221005190613.394277-3-jacopo@jmondi.org> <20221007071725.zxcbx4kwwh2pt7ax@uno.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org On Fri, Oct 07, 2022 at 01:56:11PM +0200, Krzysztof HaƂasa wrote: > Jacopo Mondi writes: > > >> BTW ISP can't really do that color balancing for you, since the sensor > >> operates at its native bit resolution and ISP is limited to the output > >> format, which is currently only 8-bit. > > > > I'm not sure what do you mean here either :) > > Well, the sensor does DSP on 12 bits internally, or something alike. > Then it outputs (currently) 8 bits of data, the rest being lost. If you > do color balancing etc. on this, you may get worse results (like color > banding). But if you apply colour gains in the sensor, they will apply before black level correction or lens shading compensation in the ISP, which I think will cause other issues, possibly worse. Out of curiosity, if you can tell, what do you use this sensor with ? -- Regards, Laurent Pinchart