Received: by 10.223.176.5 with SMTP id f5csp69746wra; Tue, 6 Feb 2018 17:23:52 -0800 (PST) X-Google-Smtp-Source: AH8x2257FbFK1i1EiZFvdn2nE2Vhk1XFe7HdP4b6p8OQCK901e574E19acjnRhA51hidXHTN+uEG X-Received: by 10.101.85.15 with SMTP id f15mr3439221pgr.153.1517966632043; Tue, 06 Feb 2018 17:23:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517966632; cv=none; d=google.com; s=arc-20160816; b=XtPuyzX5UhzQTP8cXzo9o8YxUgYIJB7mfp+3A2dnzwIcSU/YHStE+Ito71O8Poo8Vk /9nbh67VSG0Z31+X4JGts52/pDc7FjyuJLnMLFxYHxEVVFYjPKQKkt99OpuYucsIDqwd KlaUoAp6GAGxLl0aOiPWZsd7e3WySkJNI7tZ2OakZCD+WFJJgLxrzZ9Em3aTNbQYJUvr Z0plzeyHjq2JgzUjeLC1fT0mbCKHo+LOphqFIMgGZiqP+w54vZFoxAd/G01yLOFlC/gc 6f8PXwYNqlVzOYEAY6uWgsTbMboEviPx847bG5uAYh9dO96cjTIOqyxvv4DWgOWgDPSb dSjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=ewatr7IN8e4rvC2b+/IrC91jJFxnB8XgN3vlreGXd9g=; b=XSUKrmMqK4cZBr1Qx+GECqXcZmfeWfUrSxbB2jwsJdEZ+uIINAXpClwbjd/KnaMU9H Dp3DU9cksCxWyxRFte3oWNxFagJSo4lffAWYfxFv9dvUD6kwzAsmQO0NwdtTokimDH+y yEEACobTvvOOlSbsV3dyFn61eFzrLDxLi4T55vxZo4IxoSW+TF4eUSZ41Ou7YdYnMMEo fMJ4aCEGJLXz1JRj3NpfHK0leuiQvOHDaMKMj4UPoDJfjZ5FjsxRJNbHIzW/2Y3fGbpG ZAorBXTG+890BObfPlz5+eA6gwEX47wIh6L1qaeuTphUZ0tu0kVrfyQFJ5pviHQLWORV kbtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=a5tebCN2; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m189si248094pfc.410.2018.02.06.17.23.36; Tue, 06 Feb 2018 17:23:52 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=a5tebCN2; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754290AbeBGBWy (ORCPT + 99 others); Tue, 6 Feb 2018 20:22:54 -0500 Received: from bombadil.infradead.org ([65.50.211.133]:40171 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754189AbeBGBWw (ORCPT ); Tue, 6 Feb 2018 20:22:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To: Subject:Sender:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=ewatr7IN8e4rvC2b+/IrC91jJFxnB8XgN3vlreGXd9g=; b=a5tebCN2KbHvKezsJN7+b3eVU XRYKddtUz9FZjCwtCd/S/LDP8VnWhZS5c9wCXiqEJDw1rsgHjzEz8/15wcS57w5E+VkN9gzD+Mb2L TKgX4PNWzV1BRGPcE8Z498EOUoNqXvV1eR3TwbLhGnCYVeq7eIrjD2BZRzXx4GtWohNBhRi5J5Vf5 PG79ERaYL1qMrTQUAF4tHtz0au564Xx4OF9HzT6h0Jz3SFEP6n/4cknXHpahVs1romxoZ7zGbV6cT AQfQr3ASVooxFdA+joIZtLRRw+nBwfyV8GC8aukKGDnx8QQV4xd3dsQwGKIrcODClFtlZt/VrLrBr fhz+/LUCA==; Received: from static-50-53-52-16.bvtn.or.frontiernet.net ([50.53.52.16] helo=dragon.site) by bombadil.infradead.org with esmtpsa (Exim 4.89 #1 (Red Hat Linux)) id 1ejERe-0004cJ-JM; Wed, 07 Feb 2018 01:22:42 +0000 Subject: Re: [PATCH v8 1/7] v4l2-dv-timings: add v4l2_hdmi_colorimetry() To: Tim Harvey , linux-media@vger.kernel.org, alsa-devel@alsa-project.org Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, shawnguo@kernel.org, Steve Longerbeam , Philipp Zabel , Hans Verkuil , Mauro Carvalho Chehab , Hans Verkuil , Hans Verkuil References: <1517948874-21681-1-git-send-email-tharvey@gateworks.com> <1517948874-21681-2-git-send-email-tharvey@gateworks.com> From: Randy Dunlap Message-ID: Date: Tue, 6 Feb 2018 17:22:40 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <1517948874-21681-2-git-send-email-tharvey@gateworks.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/06/2018 12:27 PM, Tim Harvey wrote: > From: Hans Verkuil > > Add the v4l2_hdmi_colorimetry() function so we have a single function > that determines the colorspace, YCbCr encoding, quantization range and > transfer function from the InfoFrame data. > > Signed-off-by: Hans Verkuil > Signed-off-by: Tim Harvey > --- > drivers/media/v4l2-core/v4l2-dv-timings.c | 141 ++++++++++++++++++++++++++++++ > include/media/v4l2-dv-timings.h | 21 +++++ > 2 files changed, 162 insertions(+) > > diff --git a/drivers/media/v4l2-core/v4l2-dv-timings.c b/drivers/media/v4l2-core/v4l2-dv-timings.c > index 930f9c5..0182d3d 100644 > --- a/drivers/media/v4l2-core/v4l2-dv-timings.c > +++ b/drivers/media/v4l2-core/v4l2-dv-timings.c > @@ -27,6 +27,7 @@ > #include > #include > #include > +#include > > MODULE_AUTHOR("Hans Verkuil"); > MODULE_DESCRIPTION("V4L2 DV Timings Helper Functions"); > @@ -814,3 +815,143 @@ struct v4l2_fract v4l2_calc_aspect_ratio(u8 hor_landscape, u8 vert_portrait) > return aspect; > } > EXPORT_SYMBOL_GPL(v4l2_calc_aspect_ratio); > + > +/** v4l2_hdmi_rx_colorimetry - determine HDMI colorimetry information > + * based on various InfoFrames. > + * @avi - the AVI InfoFrame > + * @hdmi - the HDMI Vendor InfoFrame, may be NULL > + * @height - the frame height kernel-doc format for function parameters is like: * @avi: the AVI InfoFrame etc. > + * > + * Determines the HDMI colorimetry information, i.e. how the HDMI > + * pixel color data should be interpreted. > + * > + * Note that some of the newer features (DCI-P3, HDR) are not yet > + * implemented: the hdmi.h header needs to be updated to the HDMI 2.0 > + * and CTA-861-G standards. > + */ > +struct v4l2_hdmi_colorimetry > +v4l2_hdmi_rx_colorimetry(const struct hdmi_avi_infoframe *avi, > + const struct hdmi_vendor_infoframe *hdmi, > + unsigned int height) > +{ thanks, -- ~Randy