Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754363AbdCTKue (ORCPT ); Mon, 20 Mar 2017 06:50:34 -0400 Received: from lb2-smtp-cloud3.xs4all.net ([194.109.24.26]:60283 "EHLO lb2-smtp-cloud3.xs4all.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754134AbdCTKtD (ORCPT ); Mon, 20 Mar 2017 06:49:03 -0400 Subject: Re: DRM Atomic property for color-space conversion To: =?UTF-8?B?VmlsbGUgU3lyasOkbMOk?= , Brian Starkey References: <20170131155541.GF11506@e106950-lin.cambridge.arm.com> <20170316140725.GF31595@intel.com> <0cff6bab-7593-d3d2-f3b5-71dc21669dab@intel.com> <20170316143059.GG31595@intel.com> <20170316143721.GN6268@e110455-lin.cambridge.arm.com> <20170316155501.GA25006@e106950-lin.cambridge.arm.com> <20170316173656.GI31595@intel.com> <20170317103313.GA2090@e106950-lin.cambridge.arm.com> <20170317140951.GT31595@intel.com> Cc: "Sharma, Shashank" , Local user for Liviu Dudau , dri-devel@lists.freedesktop.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, mihail.atanassov@arm.com, "Cyr, Aric" , "Wentland, Harry" , Alex Deucher From: Hans Verkuil Message-ID: Date: Mon, 20 Mar 2017 11:48:49 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 In-Reply-To: <20170317140951.GT31595@intel.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1008 Lines: 25 On 03/17/2017 03:09 PM, Ville Syrj?l? wrote: > On Fri, Mar 17, 2017 at 10:33:15AM +0000, Brian Starkey wrote: >> For not-programmable hardware, would a second "DEGAMMA_FIXED" property >> make sense, which is an enum type exposing what curves are supported? >> (with analogous GAMMA_FIXED as well) > > Hmm. I suppose we could make it a bit more explicit like that. > Not sure how we'd specify those though. Just BT.709, BT.2020, etc. and > perhaps just something like 'Gamma 2.2' if it's a pure gamma curve? > Someone who is more familiar with the subject could probably propose > a better naming scheme. Just as a reference, this is how V4L2 describes colorspace information: https://www.linuxtv.org/downloads/v4l-dvb-apis-new/uapi/v4l/colorspaces.html Sections 2.4-2.6 are all about that. Note: pure gamma functions (i.e. Gamma 2.2) are not defined since we do not support hardware that needs that. Should that be needed in the future, then we would add that to the xfer_func defines. Regards, Hans