Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp113783pxb; Wed, 20 Jan 2021 02:35:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJyODnb+sSVRbPZAts4twSLxvJb0n/mYUWW3/p5TaeNymgxwC+XQ4VZ0VnxDNp7KZwFz8u6R X-Received: by 2002:aa7:d1c7:: with SMTP id g7mr387880edp.128.1611138848694; Wed, 20 Jan 2021 02:34:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611138848; cv=none; d=google.com; s=arc-20160816; b=n2M3ExUQuvMUcyCS0saXcuXbb+OyYiL5oG21BpUFavFMlMofyT9DU+ZJe3DxcXF2nc pIgmCU3Vp0JPQ7i+1gZYQ+KQoQa+gRQe9OYXoUEsGKgxGbSqDrrYADZgO+s2igExcIrN zSWg4oWvZCKH7CGy34/4B7h0mhfMHdmSM1dGzmgbMg18Cx2K8W8TnjRev/6exFBEv3yB N++wRQVIUYzHx1eSF05yoWyrJjYP3s/IVxKEJqgaHWRkwLgOWIHCTsIgLtXUA/B8j3ej GUvVp5fjDjSzGIGHIHjkWURu2kz7QsoLHGs6fxBD8tsBSJH5PQUIzKHLFSjjol+O/fD8 EJVQ== 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=JayfXD3v8HWv8i36n8f3JwhjtoJVJT9J8alEOzKBwkzeVMiztmCazr7QY0LwcPMYZo jF7qKWBG8HoTlD8VNZzZc/yWGQMLrJsU8ro+4ZCdEHu+gB9lheJlETm/vG6/Fescuw9Q 6Q2hADWx9M7jUyx23NE5/vvef6D9Wxf/XCbV5/MWuUknobDCNCX8Fb01Gz5T2sHBmVlw F/ZCuALa5xY0YrNXcV3ISkgj1OaV1znriY1muc2keR7L/R9TngrJ++pFJH01ROVxBKw4 Ls8bPh9rtAcs5F/EPOp1zbcgHl0Ik2D60bB7ZgmbBsJT4VbQ0Pb0A4JIJy0sQG8fCXIf aBlg== 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-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 z15si577269ejr.156.2021.01.20.02.33.45; Wed, 20 Jan 2021 02:34:08 -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; dkim=pass header.i=@linaro.org header.s=google header.b=MddKoXzs; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730356AbhATKPi (ORCPT + 99 others); Wed, 20 Jan 2021 05:15:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44856 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731325AbhATJ2l (ORCPT ); Wed, 20 Jan 2021 04:28:41 -0500 Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0AD00C06179A for ; Wed, 20 Jan 2021 01:26:37 -0800 (PST) Received: by mail-ej1-x62a.google.com with SMTP id g12so32558154ejf.8 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=PT00gePQDLnS2OzNCx1YIZaa0xwcZKXoEQXgUulrsrxI86rlGunFQvDTMPie6ugRHi 2bgBjg3h8aLQLUHoBYgkdEjc1uBmMrmo+yQV8Ctdbj2NdoTyfok3Mqa529SyhCxOYUHz J8lVhw1aHUq+TTf7oHiIFjMFdNl+8ePUi/zlSOgW/mti3ibtly+DQiOyNcNXVllqxucn CwJf+NgHO02nGqFCUGXtE7DTbB7B2pHlxwptmyugh4HtgzRhq9LgSY7IhZxJifZZmumn g22YgoJR9EPg2BGcHXFe1z5m0Gt1kxv6Ilc6VpIGbBcadbpSV62vSB/v8sYUH2rZde61 JTxw== X-Gm-Message-State: AOAM532XPFcyxL3Bw+TXK/ZqkQgq+qxpWK9zTdlfHSL2/2m8wgmCue9z 37lQEITlVHN0kgVEtIjQhln6Sw== 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 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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(+) 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 -- 2.25.1