Home
last modified time | relevance | path

Searched full:colorspace (Results 1 – 25 of 243) sorted by relevance

12345678910

/linux/Documentation/userspace-api/media/v4l/
H A Dcolorspaces.rst13 you can accurately display that color. A colorspace defines what it
25 ABCDEFGHIJKL colorspace...
49 The Y value in the CIE XYZ colorspace corresponds to luminance. Often
50 the CIE XYZ colorspace is transformed to the normalized CIE xyY
51 colorspace:
61 colorspace is used. Upper case 'X' and 'Y' refer to the CIE XYZ
62 colorspace. Also, y has nothing to do with luminance. Together x and y
73 defines a colorspace.
78 different display technologies or uses. To define a colorspace you need
80 chromaticity coordinates from the CIE xyY colorspace) but also the white
[all …]
H A Dcolorspaces-details.rst5 Detailed Colorspace Descriptions
11 Colorspace SMPTE 170M (V4L2_COLORSPACE_SMPTE170M)
14 The :ref:`smpte170m` standard defines the colorspace used by NTSC and
44 SMPTE C set, so this colorspace is sometimes called SMPTE C as well.
80 the :ref:`itu601` standard and this colorspace is sometimes called
89 Colorspace Rec. 709 (V4L2_COLORSPACE_REC709)
92 The :ref:`itu709` standard defines the colorspace used by HDTV in
161 this colorspace, but it can be overridden with ``V4L2_YCBCR_ENC_601``,
165 this colorspace:
201 the Rec. 709 colorspace gamut.
[all …]
H A Dcolorspaces-defs.rst9 colorspace identifier (enum :c:type:`v4l2_colorspace`)
19 colorspace field of struct :c:type:`v4l2_pix_format`
23 .. _hsv-colorspace:
46 - The default colorspace. This can be used by applications to let
47 the driver fill in the colorspace.
69 - The raw colorspace. This is used for raw image capture where the
70 image is minimally processed and is using the internal colorspace
72 'colorspace' will have to know the internals of the capture
88 - Use the default transfer function as defined by the colorspace.
117 - Use the default Y'CbCr encoding as defined by the colorspace.
[all …]
H A Dpixfmt-v4l2.rst109 - ``colorspace``
110 - Image colorspace, from enum :c:type:`v4l2_colorspace`.
115 this field for a capture stream to request a specific colorspace
117 conversion, it will return another supported colorspace.
118 The driver indicates that colorspace conversion is supported by setting
155 This information supplements the ``colorspace`` and must be set by
169 This information supplements the ``colorspace`` and must be set by
185 This information supplements the ``colorspace`` and must be set by
198 This information supplements the ``colorspace`` and must be set by
231 colorspace conversion from the received colorspace to the requested
[all …]
/linux/Documentation/devicetree/bindings/display/
H A Dxylon,logicvc-display.yaml81 xylon,display-colorspace:
83 # RGB colorspace (C_DISPLAY_COLOR_SPACE == 0)
85 # YUV 4:2:2 colorspace (C_DISPLAY_COLOR_SPACE == 1)
87 # YUV 4:4:4 colorspace (C_DISPLAY_COLOR_SPACE == 2)
89 description: Display output colorspace (C_DISPLAY_COLOR_SPACE).
137 xylon,layer-colorspace:
139 # RGB colorspace (C_LAYER_X_TYPE == 0)
141 # YUV packed colorspace (C_LAYER_X_TYPE == 0)
143 description: Layer colorspace (C_LAYER_X_TYPE).
176 - xylon,layer-colorspace
[all …]
/linux/drivers/media/platform/allegro-dvt/
H A Dnal-h264.h291 * nal_h264_color_primaries() - Get color_primaries for v4l2 colorspace
292 * @colorspace: the color space as &enum v4l2_colorspace
297 * Return: the color_primaries value for the passed colorspace
299 static inline int nal_h264_color_primaries(enum v4l2_colorspace colorspace) in nal_h264_color_primaries() argument
301 switch (colorspace) { in nal_h264_color_primaries()
327 * @colorspace: the color space as &enum v4l2_colorspace
335 static inline int nal_h264_transfer_characteristics(enum v4l2_colorspace colorspace, in nal_h264_transfer_characteristics() argument
339 xfer_func = V4L2_MAP_XFER_FUNC_DEFAULT(colorspace); in nal_h264_transfer_characteristics()
358 * @colorspace: the color space as &enum v4l2_colorspace
366 static inline int nal_h264_matrix_coeffs(enum v4l2_colorspace colorspace, in nal_h264_matrix_coeffs() argument
[all …]
H A Dnal-hevc.h432 static inline int nal_hevc_color_primaries(enum v4l2_colorspace colorspace) in nal_hevc_color_primaries() argument
434 switch (colorspace) { in nal_hevc_color_primaries()
458 static inline int nal_hevc_transfer_characteristics(enum v4l2_colorspace colorspace, in nal_hevc_transfer_characteristics() argument
462 xfer_func = V4L2_MAP_XFER_FUNC_DEFAULT(colorspace); in nal_hevc_transfer_characteristics()
479 static inline int nal_hevc_matrix_coeffs(enum v4l2_colorspace colorspace, in nal_hevc_matrix_coeffs() argument
483 ycbcr_encoding = V4L2_MAP_YCBCR_ENC_DEFAULT(colorspace); in nal_hevc_matrix_coeffs()
/linux/drivers/media/test-drivers/visl/
H A Dvisl-trace-fwht.h20 __field(u32, colorspace)
31 __entry->colorspace = p->colorspace;
36 …TP_printk("backward_ref_ts %llu version %u width %u height %u flags %s colorspace %u xfer_func %u …
51 __entry->colorspace, __entry->xfer_func, __entry->ycbcr_enc,
/linux/drivers/staging/media/imx/
H A Dimx-media-utils.c412 mbus->colorspace = V4L2_COLORSPACE_SRGB; in imx_media_init_mbus_fmt()
413 mbus->xfer_func = V4L2_MAP_XFER_FUNC_DEFAULT(mbus->colorspace); in imx_media_init_mbus_fmt()
414 mbus->ycbcr_enc = V4L2_MAP_YCBCR_ENC_DEFAULT(mbus->colorspace); in imx_media_init_mbus_fmt()
417 mbus->colorspace, in imx_media_init_mbus_fmt()
457 * Default the colorspace in tryfmt to SRGB if set to an unsupported
458 * colorspace or not initialized. Then set the remaining colorimetry
459 * parameters based on the colorspace if they are uninitialized.
481 switch (tryfmt->colorspace) { in imx_media_try_colorimetry()
492 tryfmt->colorspace = V4L2_COLORSPACE_SRGB; in imx_media_try_colorimetry()
498 V4L2_MAP_XFER_FUNC_DEFAULT(tryfmt->colorspace); in imx_media_try_colorimetry()
[all …]
H A Dimx-media-csc-scaler.c229 f->fmt.pix.colorspace = q_data->cur_fmt.colorspace; in ipu_csc_scaler_try_fmt()
233 } else if (f->fmt.pix.colorspace == V4L2_COLORSPACE_DEFAULT) { in ipu_csc_scaler_try_fmt()
234 f->fmt.pix.colorspace = V4L2_COLORSPACE_SRGB; in ipu_csc_scaler_try_fmt()
279 q_data->cur_fmt.colorspace = f->fmt.pix.colorspace; in ipu_csc_scaler_s_fmt()
285 q_data->cur_fmt.colorspace = f->fmt.pix.colorspace; in ipu_csc_scaler_s_fmt()
498 im->pix.ycbcr_enc = V4L2_MAP_YCBCR_ENC_DEFAULT(fmt->colorspace); in ipu_image_from_q_data()
500 im->pix.ycbcr_enc = V4L2_MAP_YCBCR_ENC_DEFAULT(fmt->colorspace); in ipu_image_from_q_data()
742 .colorspace = V4L2_COLORSPACE_SRGB,
/linux/drivers/media/test-drivers/vimc/
H A Dvimc-common.c296 source_fmt.pixelformat, source_fmt.colorspace, in vimc_vdev_link_validate()
302 sink_fmt.pixelformat, sink_fmt.colorspace, in vimc_vdev_link_validate()
322 * If colorspace is DEFAULT, then assume all the colorimetry is also in vimc_vdev_link_validate()
325 if (source_fmt.colorspace == V4L2_COLORSPACE_DEFAULT || in vimc_vdev_link_validate()
326 sink_fmt.colorspace == V4L2_COLORSPACE_DEFAULT) in vimc_vdev_link_validate()
329 /* Colorspace must match. */ in vimc_vdev_link_validate()
330 if (source_fmt.colorspace != sink_fmt.colorspace) in vimc_vdev_link_validate()
H A Dvimc-scaler.c50 .colorspace = V4L2_COLORSPACE_SRGB,
156 * The media bus code and colorspace can only be changed on the sink in vimc_scaler_set_fmt()
169 /* Clamp the colorspace to valid values. */ in vimc_scaler_set_fmt()
170 fmt->colorspace = format->format.colorspace; in vimc_scaler_set_fmt()
H A Dvimc-capture.c41 .colorspace = V4L2_COLORSPACE_SRGB,
109 if (format->colorspace == V4L2_COLORSPACE_DEFAULT) in vimc_capture_try_fmt_vid_cap()
110 format->colorspace = fmt_default.colorspace; in vimc_capture_try_fmt_vid_cap()
134 vcapture->format.pixelformat, vcapture->format.colorspace, in vimc_capture_s_fmt_vid_cap()
139 f->fmt.pix.pixelformat, f->fmt.pix.colorspace, in vimc_capture_s_fmt_vid_cap()
/linux/drivers/media/usb/gspca/gl860/
H A Dgl860.c227 .colorspace = V4L2_COLORSPACE_SRGB,
233 .colorspace = V4L2_COLORSPACE_SRGB,
239 .colorspace = V4L2_COLORSPACE_SRGB,
245 .colorspace = V4L2_COLORSPACE_SRGB,
254 .colorspace = V4L2_COLORSPACE_SRGB,
260 .colorspace = V4L2_COLORSPACE_SRGB,
266 .colorspace = V4L2_COLORSPACE_SRGB,
272 .colorspace = V4L2_COLORSPACE_SRGB,
281 .colorspace = V4L2_COLORSPACE_SRGB,
287 .colorspace = V4L2_COLORSPACE_SRGB,
[all …]
/linux/Documentation/admin-guide/media/
H A Dimx7.rst117 … [fmt:SBGGR10_1X10/800x600 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:full-range]
120 … [fmt:SBGGR10_1X10/800x600 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:full-range]
155 [fmt:SBGGR10_1X10/800x600@1/30 field:none colorspace:srgb]
199 … [fmt:UYVY8_2X8/640x480 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:full-range]
202 … [fmt:UYVY8_2X8/640x480 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:full-range]
215 …[fmt:UYVY8_2X8/640x480@1/30 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:full-range]
H A Dvivid.rst27 - Full colorspace support, including limited/full RGB range
348 The initially selected colorspace when you switch to the webcam input will be
378 The initially selected colorspace when you switch to the TV or S-Video input
417 The initially selected colorspace when you switch to the HDMI input or
419 less than or equal to 720x576 the colorspace is set to SMPTE-170M, for
462 The initially selected colorspace when you switch to the TV or S-Video input
473 The initially selected colorspace when you switch to the HDMI output or
475 less than or equal to 720x576 the colorspace is set to SMPTE-170M, for
685 testing colorspace conversions: the colors used in that test pattern
686 map to valid colors in all colorspaces. The colorspace conversion
[all …]
/linux/drivers/media/test-drivers/
H A Dvim2m.c226 enum v4l2_colorspace colorspace; member
740 f->fmt.pix.colorspace = ctx->colorspace; in vidioc_g_fmt()
763 f->fmt.pix_mp.colorspace = ctx->colorspace; in vidioc_g_fmt_mplane()
862 f->fmt.pix.colorspace = ctx->colorspace; in vidioc_try_fmt_vid_cap()
891 f->fmt.pix_mp.colorspace = ctx->colorspace; in vidioc_try_fmt_vid_cap_mplane()
920 if (!f->fmt.pix.colorspace) in vidioc_try_fmt_vid_out()
921 f->fmt.pix.colorspace = V4L2_COLORSPACE_REC709; in vidioc_try_fmt_vid_out()
947 if (!f->fmt.pix_mp.colorspace) in vidioc_try_fmt_vid_out_mplane()
948 f->fmt.pix_mp.colorspace = V4L2_COLORSPACE_REC709; in vidioc_try_fmt_vid_out_mplane()
1046 ctx->colorspace = f->fmt.pix.colorspace; in vidioc_s_fmt_vid_out()
[all …]
/linux/drivers/media/platform/st/stm32/dma2d/
H A Ddma2d.c292 ctx->colorspace = V4L2_COLORSPACE_REC709; in dma2d_open()
367 f->fmt.pix.colorspace = ctx->colorspace; in vidioc_g_fmt()
404 if (f->type == V4L2_BUF_TYPE_VIDEO_OUTPUT && !f->fmt.pix.colorspace) { in vidioc_try_fmt()
405 f->fmt.pix.colorspace = V4L2_COLORSPACE_REC709; in vidioc_try_fmt()
407 f->fmt.pix.colorspace = ctx->colorspace; in vidioc_try_fmt()
442 ctx->colorspace = f->fmt.pix.colorspace; in vidioc_s_fmt()
/linux/include/media/tpg/
H A Dv4l2-tpg.h161 u32 colorspace; member
354 static inline void tpg_s_colorspace(struct tpg_data *tpg, u32 colorspace) in tpg_s_colorspace() argument
356 if (tpg->colorspace == colorspace) in tpg_s_colorspace()
358 tpg->colorspace = colorspace; in tpg_s_colorspace()
364 return tpg->colorspace; in tpg_g_colorspace()
/linux/drivers/media/platform/sunxi/sun4i-csi/
H A Dsun4i_v4l2.c103 pix->colorspace = V4L2_COLORSPACE_SRGB; in _sun4i_csi_try_fmt()
104 pix->xfer_func = V4L2_MAP_XFER_FUNC_DEFAULT(pix->colorspace); in _sun4i_csi_try_fmt()
105 pix->ycbcr_enc = V4L2_MAP_YCBCR_ENC_DEFAULT(pix->colorspace); in _sun4i_csi_try_fmt()
106 pix->quantization = V4L2_MAP_QUANTIZATION_DEFAULT(true, pix->colorspace, in _sun4i_csi_try_fmt()
263 .colorspace = V4L2_COLORSPACE_RAW,
/linux/include/uapi/linux/
H A Dv4l2-mediabus.h24 * @colorspace: colorspace of the data (from enum v4l2_colorspace), zero on
42 __u32 colorspace; member
/linux/drivers/media/platform/mediatek/mdp/
H A Dmtk_mdp_core.h188 * @colorspace: enum v4l2_colorspace; supplemental to pixelformat
190 * @xfer_func: enum v4l2_xfer_func, colorspace transfer function
191 * @quant: enum v4l2_quantization, colorspace quantization
212 enum v4l2_colorspace colorspace; member
/linux/drivers/media/test-drivers/vicodec/
H A Dvicodec-core.c249 ctx->state.colorspace = ntohl(p_hdr->colorspace); in update_state_from_header()
543 ctx->state.colorspace = ntohl(p_hdr->colorspace); in update_capture_data_from_header()
786 pix->colorspace = ctx->state.colorspace; in vidioc_g_fmt()
805 pix_mp->colorspace = ctx->state.colorspace; in vidioc_g_fmt()
903 pix->colorspace = ctx->state.colorspace; in vidioc_try_fmt_vid_cap()
914 pix_mp->colorspace = ctx->state.colorspace; in vidioc_try_fmt_vid_cap()
944 if (!pix->colorspace) in vidioc_try_fmt_vid_out()
945 pix->colorspace = V4L2_COLORSPACE_REC709; in vidioc_try_fmt_vid_out()
957 if (!pix_mp->colorspace) in vidioc_try_fmt_vid_out()
958 pix_mp->colorspace = V4L2_COLORSPACE_REC709; in vidioc_try_fmt_vid_out()
[all …]
/linux/drivers/media/v4l2-core/
H A Dv4l2-dv-timings.c908 switch (avi->colorspace) { in v4l2_hdmi_rx_colorimetry()
915 c.colorspace = V4L2_COLORSPACE_OPRGB; in v4l2_hdmi_rx_colorimetry()
919 c.colorspace = V4L2_COLORSPACE_BT2020; in v4l2_hdmi_rx_colorimetry()
950 c.colorspace = V4L2_COLORSPACE_SMPTE170M; in v4l2_hdmi_rx_colorimetry()
953 c.colorspace = V4L2_COLORSPACE_REC709; in v4l2_hdmi_rx_colorimetry()
959 c.colorspace = V4L2_COLORSPACE_SMPTE170M; in v4l2_hdmi_rx_colorimetry()
964 c.colorspace = V4L2_COLORSPACE_REC709; in v4l2_hdmi_rx_colorimetry()
971 c.colorspace = V4L2_COLORSPACE_REC709; in v4l2_hdmi_rx_colorimetry()
976 c.colorspace = V4L2_COLORSPACE_REC709; in v4l2_hdmi_rx_colorimetry()
981 c.colorspace = V4L2_COLORSPACE_SRGB; in v4l2_hdmi_rx_colorimetry()
[all …]
/linux/drivers/media/usb/gspca/
H A Dkinect.c69 .colorspace = V4L2_COLORSPACE_SRGB,
77 .colorspace = V4L2_COLORSPACE_SRGB,
82 .colorspace = V4L2_COLORSPACE_SRGB,
87 .colorspace = V4L2_COLORSPACE_SRGB,
92 .colorspace = V4L2_COLORSPACE_SRGB,
97 .colorspace = V4L2_COLORSPACE_SRGB,

12345678910