From patchwork Wed Jan 20 09:26:05 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanimir Varbanov X-Patchwork-Id: 366972 Delivered-To: patch@linaro.org Received: by 2002:a02:a60d:0:0:0:0:0 with SMTP id c13csp368066jam; Wed, 20 Jan 2021 03:21:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJyzzSs6iwQwyqQuyKGpBMCneAL6H5ETB3Obs8JYwDEsE9xioAQxtE5TWJzHSnKtd+9JxlcK X-Received: by 2002:a50:fe0e:: with SMTP id f14mr7107539edt.159.1611141694543; Wed, 20 Jan 2021 03:21:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611141694; cv=none; d=google.com; s=arc-20160816; b=Xik9LgFu3XeDApOD1k4KP7N8F5cQ8fiz0LhmFGBfRywtZXWvOj4+jMzPGu/stxvKHO Sbz9bfFwtUGrHbhRezCmbAm3Qq+yu8yCZN08kB06N5q9icyYRfa5qh7OUEkKvloCcReH HIHEnx7rIn5elffZbuC7Gnk1EHNyKqGVBqCqVAzJqZp01SHV469fdZbqgQiyo2rtKTGk N2mIlMmIX5vJ9oTMiEXpP6VPNOCxDwIICd4gBAW6AY6zmDObC2CLzBG5bhJLjO3V9lS6 UnlazM1o1E/VvDSIysCzxGTwsX6Ob9QOP6dxC41YRZCjjrLBmMjqu3Qt3/IwFeVrtOPJ H3Jg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=iOLteU0y/E6exJE5YL/l2x0USlJDB217kK70I6Kv1VE=; b=kG31+gzzSz7DfN131199X2mpFMSOYuCbhVC+JRz27rDmiT29/V7cBTd+lQL1CQhdJn qse4Rr6Uqifr+43Myr+e0bZ1OzCervEo2+OZpygMAWJWlgJDiRjV9mytHbIsj6Rbvjmd j6VIfd/lY2hY7HvEHWgVcmCho1pHgublB89Iw4DOfEXVyFBSqr7t2byfwRo9FJIgKF8k 8JOtHLHqRLpK/aTdEC5LwwuBP9LtLU2D0v083UbBK33fNjVBwfwhaPJtIiQ1S+srQ5R+ erH+os2FNc9KfHT1bfG6sfNLeHf+F6wDbNqB8RevC1JjdlFbfHnXiVWw8PuGn+TlOZdA IFgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MddKoXzs; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lt6si541295ejb.133.2021.01.20.03.21.34; Wed, 20 Jan 2021 03:21:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MddKoXzs; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731689AbhATKcg (ORCPT + 15 others); Wed, 20 Jan 2021 05:32:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44518 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731311AbhATJ2Q (ORCPT ); Wed, 20 Jan 2021 04:28:16 -0500 Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F2655C061799 for ; Wed, 20 Jan 2021 01:26:36 -0800 (PST) Received: by mail-ej1-x62c.google.com with SMTP id ke15so24856157ejc.12 for ; Wed, 20 Jan 2021 01:26:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=iOLteU0y/E6exJE5YL/l2x0USlJDB217kK70I6Kv1VE=; b=MddKoXzskkXvWo93r04q+Opa483XZHht2VNNMubr45P9407hBYjlYEw0jNazZadnKt o5Qj75aL1fnNK4ZJhbnR9lJK239X6zzR/m3Jf94hmekS/ZHzYq3TopWIFQ1wME8hccNi 86VAFjFhaPlqHDch0Qu03nt96We4EyMarAtoTpKDWfMNPKGtIJD9WBut4F4VlYXQ0jmF vvFoCzBwlmpqvVgwR3kiVK5LRzCGskiac/zgX02izhZ6C1+OTerqyBDwLfqXtOfJCKik UdEDnGpz842JWWkS/NDK+fSr6UenIZAeT+JPfGq55msUDNZrnCB6cYd4ezU9oc53Ty2q nOUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=iOLteU0y/E6exJE5YL/l2x0USlJDB217kK70I6Kv1VE=; b=DfYIm60pbJ8XzJaLCL25axMjnuG1ynPdUtXZ/AY1sCgkvVY+TZ9FulCqiHvpK23vWy G7mv2oX0EBoRO5D3BZyefC2miKEAd0JsYWrn+u0n6iA2TVPWMYHWcpVLh47YLjBXubiQ Qe09WIA4198hqjZxz2mhcBfdqkFnfMNnvALmEnw11M+pg5s74SrFIPJALyx28qDICi5g oYfN4iBuwyRo2tAuKnSqRxvtBsawfhgU2ty19bG/VaSw+y9lMuu25h5PoYEEa0WOJnp6 e7TX8wPpqXaCJPAW3nO6wl9F0fuvXOd8XZ5Qps4dAt8XJRsJ59y4FzqaE+iMSazm9+UL qyHA== X-Gm-Message-State: AOAM532oJqDNWvOBC2TJop6/h/rBofqBlsl2vQpw1GkeHODBb6ihgCIO gE8MkL/T6ivu2U0YgFynokSf2A== X-Received: by 2002:a17:906:d98:: with SMTP id m24mr5388335eji.428.1611134795728; Wed, 20 Jan 2021 01:26:35 -0800 (PST) Received: from localhost.localdomain (hst-221-66.medicom.bg. [84.238.221.66]) by smtp.gmail.com with ESMTPSA id k16sm619392ejd.78.2021.01.20.01.26.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Jan 2021 01:26:35 -0800 (PST) From: Stanimir Varbanov To: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org Cc: Hans Verkuil , Ezequiel Garcia , Nicolas Dufresne , Stanimir Varbanov Subject: [PATCH v4 4/5] docs: Document CLL and Mastering display colorimetry controls Date: Wed, 20 Jan 2021 11:26:05 +0200 Message-Id: <20210120092606.3987207-5-stanimir.varbanov@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210120092606.3987207-1-stanimir.varbanov@linaro.org> References: <20210120092606.3987207-1-stanimir.varbanov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Document Content Light Level and Mastering Display v4l2 colorimetry controls. Signed-off-by: Stanimir Varbanov --- .../media/v4l/ext-ctrls-colorimetry.rst | 71 +++++++++++++++++++ .../media/videodev2.h.rst.exceptions | 2 + 2 files changed, 73 insertions(+) -- 2.25.1 diff --git a/Documentation/userspace-api/media/v4l/ext-ctrls-colorimetry.rst b/Documentation/userspace-api/media/v4l/ext-ctrls-colorimetry.rst index 6b0cd2054e84..e7e55323651f 100644 --- a/Documentation/userspace-api/media/v4l/ext-ctrls-colorimetry.rst +++ b/Documentation/userspace-api/media/v4l/ext-ctrls-colorimetry.rst @@ -17,3 +17,74 @@ Colorimetry Control IDs The Colorimetry class descriptor. Calling :ref:`VIDIOC_QUERYCTRL` for this control will return a description of this control class. + +``V4L2_CID_COLORIMETRY_HDR10_CLL_INFO (struct)`` + The Content Light Level defines upper bounds for the nominal target + brightness light level of the pictures. + +.. c:type:: v4l2_ctrl_hdr10_cll_info + +.. cssclass:: longtable + +.. flat-table:: struct v4l2_ctrl_hdr10_cll_info + :header-rows: 0 + :stub-columns: 0 + :widths: 1 1 2 + + * - __u16 + - ``max_content_light_level`` + - The upper bound for the maximum light level among all individual + samples for the pictures of a coded video sequence, cd/m2. When + equal to 0 no such upper bound is present. + * - __u16 + - ``max_pic_average_light_level`` + - The upper bound for the maximum average light level among the + samples for any individual picture of a coded video sequence, cd/m2. + When equal to 0 no such upper bound is present. + +``V4L2_CID_COLORIMETRY_HDR10_MASTERING_DISPLAY (struct)`` + The mastering display defines the colour volume (the colour primaries, + white point and luminance range) of a display considered to be the + mastering display for the current video content. + +.. c:type:: v4l2_ctrl_hdr10_mastering_display + +.. cssclass:: longtable + +.. flat-table:: struct v4l2_ctrl_hdr10_mastering_display + :header-rows: 0 + :stub-columns: 0 + :widths: 1 1 2 + + * - __u16 + - ``display_primaries_x[3]`` + - Specifies the normalized x chromaticity coordinate of the colour + primary component c of the mastering display in increments of 0.00002. + For describing the mastering display that uses Red, Green and Blue + colour primaries, index value c equal to 0 corresponds to the Green + primary, c equal to 1 corresponds to Blue primary and c equal to 2 + corresponds to the Red colour primary. + * - __u16 + - ``display_primaries_y[3]`` + - Specifies the normalized y chromaticity coordinate of the colour + primary component c of the mastering display in increments of 0.00002. + For describing the mastering display that uses Red, Green and Blue + colour primaries, index value c equal to 0 corresponds to the Green + primary, c equal to 1 corresponds to Blue primary and c equal to 2 + corresponds to Red colour primary. + * - __u16 + - ``white_point_x`` + - Specifies the normalized x chromaticity coordinate of the white + point of the mastering display in increments of 0.00002. + * - __u16 + - ``white_point_y`` + - Specifies the normalized y chromaticity coordinate of the white + point of the mastering display in increments of 0.00002. + * - __u32 + - ``max_luminance`` + - Specifies the nominal maximum display luminance of the mastering + display in units of 0.0001 cd/m2. + * - __u32 + - ``min_luminance`` + - specifies the nominal minimum display luminance of the mastering + display in units of 0.0001 cd/m2. diff --git a/Documentation/userspace-api/media/videodev2.h.rst.exceptions b/Documentation/userspace-api/media/videodev2.h.rst.exceptions index 0ed170c6e720..af4b8b87c5d7 100644 --- a/Documentation/userspace-api/media/videodev2.h.rst.exceptions +++ b/Documentation/userspace-api/media/videodev2.h.rst.exceptions @@ -147,6 +147,8 @@ replace symbol V4L2_CTRL_TYPE_HEVC_PPS :c:type:`v4l2_ctrl_type` replace symbol V4L2_CTRL_TYPE_HEVC_SLICE_PARAMS :c:type:`v4l2_ctrl_type` replace symbol V4L2_CTRL_TYPE_AREA :c:type:`v4l2_ctrl_type` replace symbol V4L2_CTRL_TYPE_FWHT_PARAMS :c:type:`v4l2_ctrl_type` +replace symbol V4L2_CTRL_TYPE_HDR10_CLL_INFO :c:type:`v4l2_ctrl_hdr10_cll_info` +replace symbol V4L2_CTRL_TYPE_HDR10_MASTERING_DISPLAY :c:type:`v4l2_ctrl_hdr10_mastering_display` # V4L2 capability defines replace define V4L2_CAP_VIDEO_CAPTURE device-capabilities