xref: /OK3568_Linux_fs/kernel/Documentation/userspace-api/media/v4l/pixfmt-meta-vivid.rst (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun.. SPDX-License-Identifier: GPL-2.0 OR GFDL-1.1-no-invariants-or-later
2*4882a593Smuzhiyun
3*4882a593Smuzhiyun.. _v4l2-meta-fmt-vivid:
4*4882a593Smuzhiyun
5*4882a593Smuzhiyun*******************************
6*4882a593SmuzhiyunV4L2_META_FMT_VIVID ('VIVD')
7*4882a593Smuzhiyun*******************************
8*4882a593Smuzhiyun
9*4882a593SmuzhiyunVIVID Metadata Format
10*4882a593Smuzhiyun
11*4882a593Smuzhiyun
12*4882a593SmuzhiyunDescription
13*4882a593Smuzhiyun===========
14*4882a593Smuzhiyun
15*4882a593SmuzhiyunThis describes metadata format used by the vivid driver.
16*4882a593Smuzhiyun
17*4882a593SmuzhiyunIt sets Brightness, Saturation, Contrast and Hue, each of which maps to
18*4882a593Smuzhiyuncorresponding controls of the vivid driver with respect to the range and default values.
19*4882a593Smuzhiyun
20*4882a593SmuzhiyunIt contains the following fields:
21*4882a593Smuzhiyun
22*4882a593Smuzhiyun.. flat-table:: VIVID Metadata
23*4882a593Smuzhiyun    :widths: 1 4
24*4882a593Smuzhiyun    :header-rows:  1
25*4882a593Smuzhiyun    :stub-columns: 0
26*4882a593Smuzhiyun
27*4882a593Smuzhiyun    * - Field
28*4882a593Smuzhiyun      - Description
29*4882a593Smuzhiyun    * - u16 brightness;
30*4882a593Smuzhiyun      - Image brightness, the value is in the range 0 to 255, with the default value as 128.
31*4882a593Smuzhiyun    * - u16 contrast;
32*4882a593Smuzhiyun      - Image contrast, the value is in the range 0 to 255, with the default value as 128.
33*4882a593Smuzhiyun    * - u16 saturation;
34*4882a593Smuzhiyun      - Image color saturation, the value is in the range 0 to 255, with the default value as 128.
35*4882a593Smuzhiyun    * - s16 hue;
36*4882a593Smuzhiyun      - Image color balance, the value is in the range -128 to 128, with the default value as 0.
37