| /drivers/media/platform/allegro-dvt/ |
| A D | nal-h264.h | 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() 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() 366 static inline int nal_h264_matrix_coeffs(enum v4l2_colorspace colorspace, in nal_h264_matrix_coeffs() argument 370 ycbcr_encoding = V4L2_MAP_YCBCR_ENC_DEFAULT(colorspace); in nal_h264_matrix_coeffs()
|
| A D | nal-hevc.h | 432 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()
|
| /drivers/media/usb/gspca/gl860/ |
| A D | gl860.c | 227 .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 …]
|
| /drivers/media/test-drivers/visl/ |
| A D | visl-trace-fwht.h | 20 __field(u32, colorspace) 31 __entry->colorspace = p->colorspace; 51 __entry->colorspace, __entry->xfer_func, __entry->ycbcr_enc,
|
| /drivers/media/pci/zoran/ |
| A D | zoran_driver.c | 64 .colorspace = V4L2_COLORSPACE_SRGB, 72 .colorspace = V4L2_COLORSPACE_SRGB, 79 .colorspace = V4L2_COLORSPACE_SRGB, 87 .colorspace = V4L2_COLORSPACE_SRGB, 94 .colorspace = V4L2_COLORSPACE_SRGB, 101 .colorspace = V4L2_COLORSPACE_SRGB, 108 .colorspace = V4L2_COLORSPACE_SRGB, 115 .colorspace = V4L2_COLORSPACE_SMPTE170M, 322 fmt->fmt.pix.colorspace = zr->v4l_settings.format->colorspace; in zoran_g_fmt_vid_cap() 414 fmt->fmt.pix.colorspace = zoran_formats[i].colorspace; in zoran_try_fmt_vid_cap() [all …]
|
| /drivers/staging/media/imx/ |
| A D | imx-media-utils.c | 412 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() 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() 507 V4L2_MAP_YCBCR_ENC_DEFAULT(tryfmt->colorspace); in imx_media_try_colorimetry() 514 tryfmt->colorspace, in imx_media_try_colorimetry() 559 pix->colorspace = mbus->colorspace; in imx_media_mbus_fmt_to_pix_fmt()
|
| A D | imx-media-csc-scaler.c | 226 f->fmt.pix.colorspace = q_data->cur_fmt.colorspace; in ipu_csc_scaler_try_fmt() 230 } else if (f->fmt.pix.colorspace == V4L2_COLORSPACE_DEFAULT) { in ipu_csc_scaler_try_fmt() 231 f->fmt.pix.colorspace = V4L2_COLORSPACE_SRGB; in ipu_csc_scaler_try_fmt() 276 q_data->cur_fmt.colorspace = f->fmt.pix.colorspace; in ipu_csc_scaler_s_fmt() 282 q_data->cur_fmt.colorspace = f->fmt.pix.colorspace; in ipu_csc_scaler_s_fmt() 495 im->pix.ycbcr_enc = V4L2_MAP_YCBCR_ENC_DEFAULT(fmt->colorspace); in ipu_image_from_q_data() 497 im->pix.ycbcr_enc = V4L2_MAP_YCBCR_ENC_DEFAULT(fmt->colorspace); in ipu_image_from_q_data() 739 .colorspace = V4L2_COLORSPACE_SRGB,
|
| /drivers/media/usb/gspca/ |
| A D | ov534_9.c | 58 .colorspace = V4L2_COLORSPACE_JPEG}, 63 .colorspace = V4L2_COLORSPACE_JPEG}, 68 .colorspace = V4L2_COLORSPACE_JPEG}, 73 .colorspace = V4L2_COLORSPACE_JPEG}, 78 .colorspace = V4L2_COLORSPACE_JPEG}, 85 .colorspace = V4L2_COLORSPACE_SRGB 93 .colorspace = V4L2_COLORSPACE_SRGB 111 .colorspace = V4L2_COLORSPACE_SRGB}, 115 .colorspace = V4L2_COLORSPACE_SRGB}, 119 .colorspace = V4L2_COLORSPACE_SRGB}, [all …]
|
| A D | sn9c20x.c | 171 .colorspace = V4L2_COLORSPACE_JPEG, 176 .colorspace = V4L2_COLORSPACE_SRGB, 181 .colorspace = V4L2_COLORSPACE_SRGB, 186 .colorspace = V4L2_COLORSPACE_JPEG, 191 .colorspace = V4L2_COLORSPACE_SRGB, 196 .colorspace = V4L2_COLORSPACE_SRGB, 201 .colorspace = V4L2_COLORSPACE_JPEG, 206 .colorspace = V4L2_COLORSPACE_SRGB, 211 .colorspace = V4L2_COLORSPACE_SRGB, 219 .colorspace = V4L2_COLORSPACE_JPEG, [all …]
|
| A D | spca505.c | 31 .colorspace = V4L2_COLORSPACE_SRGB, 36 .colorspace = V4L2_COLORSPACE_SRGB, 41 .colorspace = V4L2_COLORSPACE_SRGB, 46 .colorspace = V4L2_COLORSPACE_SRGB, 51 .colorspace = V4L2_COLORSPACE_SRGB,
|
| A D | vicam.c | 46 .colorspace = V4L2_COLORSPACE_SRGB,}, 51 .colorspace = V4L2_COLORSPACE_SRGB,}, 55 .colorspace = V4L2_COLORSPACE_SRGB,}, 60 .colorspace = V4L2_COLORSPACE_SRGB,}, 65 .colorspace = V4L2_COLORSPACE_SRGB,},
|
| A D | kinect.c | 69 .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,
|
| A D | ov519.c | 242 .colorspace = V4L2_COLORSPACE_JPEG, 247 .colorspace = V4L2_COLORSPACE_JPEG, 254 .colorspace = V4L2_COLORSPACE_JPEG, 259 .colorspace = V4L2_COLORSPACE_JPEG, 264 .colorspace = V4L2_COLORSPACE_JPEG, 269 .colorspace = V4L2_COLORSPACE_JPEG, 283 .colorspace = V4L2_COLORSPACE_JPEG, 288 .colorspace = V4L2_COLORSPACE_JPEG, 295 .colorspace = V4L2_COLORSPACE_JPEG, 300 .colorspace = V4L2_COLORSPACE_JPEG, [all …]
|
| A D | spca561.c | 48 .colorspace = V4L2_COLORSPACE_SRGB, 53 .colorspace = V4L2_COLORSPACE_SRGB, 58 .colorspace = V4L2_COLORSPACE_SRGB, 63 .colorspace = V4L2_COLORSPACE_SRGB, 71 .colorspace = V4L2_COLORSPACE_SRGB, 76 .colorspace = V4L2_COLORSPACE_SRGB, 81 .colorspace = V4L2_COLORSPACE_SRGB, 86 .colorspace = V4L2_COLORSPACE_SRGB,
|
| /drivers/media/test-drivers/vimc/ |
| A D | vimc-common.c | 296 source_fmt.pixelformat, source_fmt.colorspace, in vimc_vdev_link_validate() 302 sink_fmt.pixelformat, sink_fmt.colorspace, 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() 330 if (source_fmt.colorspace != sink_fmt.colorspace) in vimc_vdev_link_validate()
|
| A D | vimc-common.h | 56 if ((fmt)->colorspace == V4L2_COLORSPACE_DEFAULT \ 57 || (fmt)->colorspace > V4L2_COLORSPACE_DCI_P3) { \ 58 (fmt)->colorspace = V4L2_COLORSPACE_DEFAULT; \
|
| /drivers/media/i2c/ |
| A D | mt9t112.c | 85 enum v4l2_colorspace colorspace; member 109 .colorspace = V4L2_COLORSPACE_SRGB, 114 .colorspace = V4L2_COLORSPACE_SRGB, 119 .colorspace = V4L2_COLORSPACE_SRGB, 124 .colorspace = V4L2_COLORSPACE_SRGB, 129 .colorspace = V4L2_COLORSPACE_SRGB, 134 .colorspace = V4L2_COLORSPACE_SRGB, 927 mf->colorspace = priv->format->colorspace; in mt9t112_get_fmt() 950 mf->colorspace = priv->format->colorspace; in mt9t112_s_fmt() 973 mf->colorspace = V4L2_COLORSPACE_JPEG; in mt9t112_set_fmt() [all …]
|
| A D | alvium-csi2.c | 28 .colorspace = V4L2_COLORSPACE_SRGB, 40 .colorspace = V4L2_COLORSPACE_SRGB, 50 .colorspace = V4L2_COLORSPACE_SRGB, 60 .colorspace = V4L2_COLORSPACE_SRGB, 70 .colorspace = V4L2_COLORSPACE_SRGB, 80 .colorspace = V4L2_COLORSPACE_SRGB, 90 .colorspace = V4L2_COLORSPACE_SRGB, 130 .colorspace = V4L2_COLORSPACE_RAW, 140 .colorspace = V4L2_COLORSPACE_RAW, 150 .colorspace = V4L2_COLORSPACE_RAW, [all …]
|
| A D | gc2145.c | 550 unsigned int colorspace; member 561 .colorspace = V4L2_COLORSPACE_SRGB, 567 .colorspace = V4L2_COLORSPACE_SRGB, 573 .colorspace = V4L2_COLORSPACE_SRGB, 579 .colorspace = V4L2_COLORSPACE_SRGB, 585 .colorspace = V4L2_COLORSPACE_SRGB, 592 .colorspace = V4L2_COLORSPACE_RAW, 599 .colorspace = V4L2_COLORSPACE_RAW, 606 .colorspace = V4L2_COLORSPACE_RAW, 679 u32 colorspace) in gc2145_update_pad_format() argument [all …]
|
| /drivers/media/v4l2-core/ |
| A D | v4l2-dv-timings.c | 908 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() 953 c.colorspace = V4L2_COLORSPACE_REC709; 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() 986 c.colorspace = V4L2_COLORSPACE_OPRGB; in v4l2_hdmi_rx_colorimetry() 991 c.colorspace = V4L2_COLORSPACE_BT2020; in v4l2_hdmi_rx_colorimetry() [all …]
|
| /drivers/media/platform/samsung/exynos4-is/ |
| A D | fimc-lite.c | 44 .colorspace = V4L2_COLORSPACE_JPEG, 52 .colorspace = V4L2_COLORSPACE_JPEG, 60 .colorspace = V4L2_COLORSPACE_JPEG, 68 .colorspace = V4L2_COLORSPACE_JPEG, 76 .colorspace = V4L2_COLORSPACE_SRGB, 567 mf->colorspace = fmt->colorspace; in fimc_lite_subdev_try_fmt() 579 mf->colorspace = sink_fmt->colorspace; in fimc_lite_subdev_try_fmt() 585 mf->colorspace = sink->fmt->colorspace; in fimc_lite_subdev_try_fmt() 681 pixm->colorspace = fmt->colorspace; in fimc_lite_g_fmt_mplane() 724 pixm->colorspace = fmt->colorspace; in fimc_lite_try_fmt() [all …]
|
| /drivers/media/platform/rockchip/rkisp1/ |
| A D | rkisp1-isp.c | 563 sink_fmt->colorspace = V4L2_COLORSPACE_RAW; in rkisp1_isp_init_state() 579 src_fmt->colorspace = V4L2_COLORSPACE_SRGB; in rkisp1_isp_init_state() 651 src_fmt->colorspace = sink_fmt->colorspace; in rkisp1_isp_set_src_fmt() 681 if (format->colorspace != V4L2_COLORSPACE_DEFAULT) in rkisp1_isp_set_src_fmt() 682 src_fmt->colorspace = format->colorspace; in rkisp1_isp_set_src_fmt() 790 sink_fmt->colorspace = format->colorspace ? : in rkisp1_isp_set_sink_fmt() 794 V4L2_MAP_XFER_FUNC_DEFAULT(sink_fmt->colorspace); in rkisp1_isp_set_sink_fmt() 797 V4L2_MAP_YCBCR_ENC_DEFAULT(sink_fmt->colorspace); in rkisp1_isp_set_sink_fmt() 799 V4L2_MAP_QUANTIZATION_DEFAULT(false, sink_fmt->colorspace, in rkisp1_isp_set_sink_fmt()
|
| /drivers/media/test-drivers/ |
| A D | vim2m.c | 228 enum v4l2_colorspace colorspace; member 750 f->fmt.pix.colorspace = ctx->colorspace; in vidioc_g_fmt() 778 f->fmt.pix_mp.colorspace = ctx->colorspace; in vidioc_g_fmt_mplane() 877 f->fmt.pix.colorspace = ctx->colorspace; in vidioc_try_fmt_vid_cap() 906 f->fmt.pix_mp.colorspace = ctx->colorspace; in vidioc_try_fmt_vid_cap_mplane() 935 if (!f->fmt.pix.colorspace) in vidioc_try_fmt_vid_out() 936 f->fmt.pix.colorspace = V4L2_COLORSPACE_REC709; in vidioc_try_fmt_vid_out() 962 if (!f->fmt.pix_mp.colorspace) in vidioc_try_fmt_vid_out_mplane() 1063 ctx->colorspace = f->fmt.pix.colorspace; in vidioc_s_fmt_vid_out() 1087 ctx->colorspace = f->fmt.pix_mp.colorspace; in vidioc_s_fmt_vid_out_mplane() [all …]
|
| /drivers/gpu/drm/logicvc/ |
| A D | logicvc_layer.c | 52 .colorspace = LOGICVC_LAYER_COLORSPACE_RGB, 57 .colorspace = LOGICVC_LAYER_COLORSPACE_RGB, 62 .colorspace = LOGICVC_LAYER_COLORSPACE_RGB, 201 if (layer->config.colorspace == in logicvc_plane_atomic_update() 361 if (logicvc_layer_formats[i].colorspace == layer->config.colorspace && in logicvc_layer_formats_lookup() 395 &config->colorspace); in logicvc_layer_config_parse()
|
| /drivers/media/platform/st/stm32/dma2d/ |
| A D | dma2d.c | 289 ctx->colorspace = V4L2_COLORSPACE_REC709; in dma2d_open() 370 f->fmt.pix.colorspace = ctx->colorspace; in vidioc_g_fmt() 407 if (f->type == V4L2_BUF_TYPE_VIDEO_OUTPUT && !f->fmt.pix.colorspace) { in vidioc_try_fmt() 408 f->fmt.pix.colorspace = V4L2_COLORSPACE_REC709; in vidioc_try_fmt() 410 f->fmt.pix.colorspace = ctx->colorspace; in vidioc_try_fmt() 445 ctx->colorspace = f->fmt.pix.colorspace; in vidioc_s_fmt()
|