/Linux-v6.6/include/media/ |
D | v4l2-mediabus.h | 188 pix_fmt->quantization = mbus_fmt->quantization; in v4l2_fill_pix_format() 210 mbus_fmt->quantization = pix_fmt->quantization; in v4l2_fill_mbus_format() 231 pix_mp_fmt->quantization = mbus_fmt->quantization; in v4l2_fill_pix_format_mplane() 251 mbus_fmt->quantization = pix_mp_fmt->quantization; in v4l2_fill_mbus_format_mplane()
|
D | v4l2-common.h | 593 static inline bool v4l2_is_quant_valid(__u8 quantization) in v4l2_is_quant_valid() argument 595 return quantization == V4L2_QUANTIZATION_FULL_RANGE || in v4l2_is_quant_valid() 596 quantization == V4L2_QUANTIZATION_LIM_RANGE; in v4l2_is_quant_valid()
|
/Linux-v6.6/drivers/media/platform/ti/vpe/ |
D | csc.c | 26 struct quantization { struct 31 struct quantization limited; argument 32 struct quantization full; 156 src_quantization = mp->quantization; in csc_set_coeff() 161 src_quantization = pix->quantization; in csc_set_coeff() 168 dst_quantization = mp->quantization; in csc_set_coeff() 173 dst_quantization = pix->quantization; in csc_set_coeff()
|
/Linux-v6.6/drivers/media/test-drivers/visl/ |
D | visl-trace-fwht.h | 23 __field(u32, quantization) 34 __entry->quantization = p->quantization; 52 __entry->quantization)
|
/Linux-v6.6/Documentation/userspace-api/media/v4l/ |
D | colorspaces-details.rst | 16 ``V4L2_YCBCR_ENC_601``. The default Y'CbCr quantization is limited 82 The default quantization is limited range, but full range is possible 94 quantization is limited range. The chromaticities of the primary colors 156 The default quantization is limited range, but full range is possible 196 As seen by the xvYCC formulas these encodings always use limited range quantization, 211 ``V4L2_YCBCR_ENC_601``. The default Y'CbCr quantization is limited range. 213 Note that the :ref:`sycc` standard specifies full range quantization, 216 would break how applications interpret the quantization range. 278 170M/BT.601. The Y'CbCr quantization is limited range. 289 ``V4L2_YCBCR_ENC_601``. The default Y'CbCr quantization is limited [all …]
|
D | colorspaces-defs.rst | 10 default Y'CbCr encoding and the default quantization method. The second 15 non-standard Y'CbCr encodings and the fourth is the quantization 17 specify non-standard quantization methods. Most of the time only the 31 .. note:: The default R'G'B' quantization is full range for all 163 - Use the default quantization encoding as defined by the 167 - Use the full range quantization encoding. I.e. the range [0…1] is 173 - Use the limited range quantization encoding. I.e. the range [0…1]
|
D | ext-ctrls-codec.rst | 595 Encoder will decide the appropriate quantization parameter and 1169 Specify the offset that should be added to the luma quantization 1170 parameter to determine the chroma quantization parameter. Applicable 1220 the quantization parameter for each frame type is constant and set 1223 enabled then quantization parameter is adjusted to meet the chosen 1224 bitrate. Minimum and maximum value for the quantization parameter 1241 Minimum quantization parameter for H263. Valid range: from 1 to 31. 1244 Maximum quantization parameter for H263. Valid range: from 1 to 31. 1259 Minimum quantization parameter for H264. Valid range: from 0 to 51. 1262 Maximum quantization parameter for H264. Valid range: from 0 to 51. [all …]
|
D | pixfmt-v4l2.rst | 182 - ``quantization`` 188 this field for a capture stream to request a specific quantization 190 conversion, it will return another supported quantization. 191 The driver indicates that quantization conversion is supported by setting 232 ``ycbcr_enc``, ``hsv_enc`` or ``quantization``) is set to ``*_DEFAULT``, 234 So in order to change the quantization, only the ``quantization`` field shall
|
/Linux-v6.6/drivers/media/test-drivers/vimc/ |
D | vimc-common.c | 295 source_fmt.quantization, source_fmt.xfer_func, in vimc_vdev_link_validate() 301 sink_fmt.quantization, sink_fmt.xfer_func, in vimc_vdev_link_validate() 337 if (source_fmt.quantization != V4L2_QUANTIZATION_DEFAULT && in vimc_vdev_link_validate() 338 sink_fmt.quantization != V4L2_QUANTIZATION_DEFAULT && in vimc_vdev_link_validate() 339 source_fmt.quantization != sink_fmt.quantization) in vimc_vdev_link_validate()
|
D | vimc-common.h | 60 (fmt)->quantization = V4L2_QUANTIZATION_DEFAULT; \ 65 if ((fmt)->quantization > V4L2_QUANTIZATION_LIM_RANGE) \ 66 (fmt)->quantization = V4L2_QUANTIZATION_DEFAULT; \
|
/Linux-v6.6/include/media/tpg/ |
D | v4l2-tpg.h | 176 u32 quantization; member 406 static inline void tpg_s_quantization(struct tpg_data *tpg, u32 quantization) in tpg_s_quantization() argument 408 if (tpg->quantization == quantization) in tpg_s_quantization() 410 tpg->quantization = quantization; in tpg_s_quantization() 416 return tpg->quantization; in tpg_g_quantization()
|
/Linux-v6.6/drivers/media/platform/rockchip/rkisp1/ |
D | rkisp1-isp.c | 237 src_frm->quantization, in rkisp1_config_isp() 448 sink_fmt->quantization = V4L2_QUANTIZATION_FULL_RANGE; in rkisp1_isp_init_config() 464 src_fmt->quantization = V4L2_QUANTIZATION_LIM_RANGE; in rkisp1_isp_init_config() 540 src_fmt->quantization = V4L2_QUANTIZATION_LIM_RANGE; in rkisp1_isp_set_src_fmt() 542 src_fmt->quantization = sink_fmt->quantization; in rkisp1_isp_set_src_fmt() 572 if (format->quantization != V4L2_QUANTIZATION_DEFAULT) in rkisp1_isp_set_src_fmt() 573 src_fmt->quantization = format->quantization; in rkisp1_isp_set_src_fmt() 693 sink_fmt->quantization = format->quantization ? : in rkisp1_isp_set_sink_fmt() 703 sink_fmt->quantization = V4L2_QUANTIZATION_FULL_RANGE; in rkisp1_isp_set_sink_fmt()
|
D | rkisp1-resizer.c | 417 sink_fmt->quantization = V4L2_QUANTIZATION_LIM_RANGE; in rkisp1_rsz_init_config() 556 sink_fmt->quantization = format->quantization ? : in rkisp1_rsz_set_sink_fmt() 566 sink_fmt->quantization = V4L2_QUANTIZATION_FULL_RANGE; in rkisp1_rsz_set_sink_fmt() 576 src_fmt->quantization = sink_fmt->quantization; in rkisp1_rsz_set_sink_fmt()
|
/Linux-v6.6/drivers/media/platform/nxp/ |
D | imx-pxp.c | 354 enum v4l2_quantization quantization; in pxp_setup_csc() local 505 quantization = ctx->q_data[V4L2_M2M_SRC].quant; in pxp_setup_csc() 508 if (quantization == V4L2_QUANTIZATION_FULL_RANGE) in pxp_setup_csc() 513 if (quantization == V4L2_QUANTIZATION_FULL_RANGE) in pxp_setup_csc() 518 if (quantization == V4L2_QUANTIZATION_FULL_RANGE) in pxp_setup_csc() 523 if (quantization == V4L2_QUANTIZATION_FULL_RANGE) in pxp_setup_csc() 718 quantization = ctx->q_data[V4L2_M2M_DST].quant; in pxp_setup_csc() 721 if (quantization == V4L2_QUANTIZATION_FULL_RANGE) in pxp_setup_csc() 726 if (quantization == V4L2_QUANTIZATION_FULL_RANGE) in pxp_setup_csc() 731 if (quantization == V4L2_QUANTIZATION_FULL_RANGE) in pxp_setup_csc() [all …]
|
/Linux-v6.6/drivers/media/platform/renesas/rzg2l-cru/ |
D | rzg2l-ip.c | 128 sink_format->quantization = fmt->format.quantization; in rzg2l_cru_ip_set_format() 182 fmt.format.quantization = V4L2_QUANTIZATION_DEFAULT; in rzg2l_cru_ip_init_config()
|
/Linux-v6.6/Documentation/admin-guide/media/ |
D | imx7.rst | 117 … [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] 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]
|
D | rkisp1.rst | 186 The driver supports limited and full range quantization on YUV formats, 190 isp (`rkisp1_isp:2`). The quantization configured on this pad is the 191 quantization of the captured video frames on the mainpath and selfpath 194 ``V4L2_QUANTIZATION_DEFAULT`` even if the quantization is configured to full 195 range on `rkisp1_isp:2`. So in order to get the configured quantization,
|
/Linux-v6.6/drivers/media/platform/verisilicon/ |
D | rockchip_vpu981_hw_av1_dec.c | 1044 const struct v4l2_av1_quantization *quantization = &frame->quantization; in rockchip_vpu981_av1_dec_is_lossless() local 1048 int qindex = quantization->base_q_idx; in rockchip_vpu981_av1_dec_is_lossless() 1057 quantization->delta_q_y_dc || in rockchip_vpu981_av1_dec_is_lossless() 1058 quantization->delta_q_u_dc || in rockchip_vpu981_av1_dec_is_lossless() 1059 quantization->delta_q_u_ac || in rockchip_vpu981_av1_dec_is_lossless() 1060 quantization->delta_q_v_dc || in rockchip_vpu981_av1_dec_is_lossless() 1061 quantization->delta_q_v_ac) in rockchip_vpu981_av1_dec_is_lossless() 1165 const struct v4l2_av1_quantization *quantization = &frame->quantization; in rockchip_vpu981_av1_dec_set_prob() local 1175 rockchip_av1_default_coeff_probs(quantization->base_q_idx, in rockchip_vpu981_av1_dec_set_prob() 1989 hantro_reg_write(vpu, &av1_delta_q_res_log, ctrls->frame->quantization.delta_q_res); in rockchip_vpu981_av1_dec_set_parameters() [all …]
|
/Linux-v6.6/drivers/media/platform/st/sti/delta/ |
D | delta-v4l2.c | 262 frameinfo->quantization = V4L2_QUANTIZATION_DEFAULT; in set_default_params() 272 streaminfo->quantization = V4L2_QUANTIZATION_DEFAULT; in set_default_params() 448 pix->quantization = streaminfo->quantization; in delta_g_fmt_stream() 481 frameinfo->quantization = streaminfo->quantization; in delta_g_fmt_frame() 486 pix->quantization = frameinfo->quantization; in delta_g_fmt_frame() 591 pix->quantization = V4L2_QUANTIZATION_DEFAULT; in delta_try_fmt_frame() 636 ctx->streaminfo.quantization = pix->quantization; in delta_s_fmt_stream() 690 frameinfo.quantization = pix->quantization; in delta_s_fmt_frame() 716 pix->quantization = frameinfo.quantization; in delta_s_fmt_frame()
|
/Linux-v6.6/drivers/media/test-drivers/vicodec/ |
D | codec-v4l2-fwht.c | 277 p_hdr->quantization = htonl(state->quantization); in v4l2_fwht_encode() 332 state->quantization = ntohl(state->header.quantization); in v4l2_fwht_decode()
|
D | vicodec-core.c | 250 ctx->state.quantization = ntohl(p_hdr->quantization); in update_state_from_header() 543 ctx->state.quantization = ntohl(p_hdr->quantization); in update_capture_data_from_header() 790 pix->quantization = ctx->state.quantization; in vidioc_g_fmt() 809 pix_mp->quantization = ctx->state.quantization; in vidioc_g_fmt() 907 pix->quantization = ctx->state.quantization; in vidioc_try_fmt_vid_cap() 918 pix_mp->quantization = ctx->state.quantization; in vidioc_try_fmt_vid_cap() 1116 ctx->state.quantization = pix->quantization; in vidioc_s_fmt_vid_out() 1123 ctx->state.quantization = pix_mp->quantization; in vidioc_s_fmt_vid_out() 1774 p_hdr->quantization = htonl(params->quantization); in update_header_from_stateless_params()
|
/Linux-v6.6/drivers/staging/media/imx/ |
D | imx-media-csc-scaler.c | 229 f->fmt.pix.quantization = q_data->cur_fmt.quantization; in ipu_csc_scaler_try_fmt() 234 f->fmt.pix.quantization = V4L2_QUANTIZATION_DEFAULT; in ipu_csc_scaler_try_fmt() 279 q_data->cur_fmt.quantization = f->fmt.pix.quantization; in ipu_csc_scaler_s_fmt() 285 q_data->cur_fmt.quantization = f->fmt.pix.quantization; in ipu_csc_scaler_s_fmt() 496 if (fmt->quantization == V4L2_QUANTIZATION_DEFAULT) in ipu_image_from_q_data()
|
D | imx-media-utils.c | 415 mbus->quantization = in imx_media_init_mbus_fmt() 511 if (tryfmt->quantization == V4L2_QUANTIZATION_DEFAULT) in imx_media_try_colorimetry() 512 tryfmt->quantization = in imx_media_try_colorimetry() 562 pix->quantization = mbus->quantization; in imx_media_mbus_fmt_to_pix_fmt()
|
/Linux-v6.6/drivers/media/platform/allegro-dvt/ |
D | nal-h264.h | 276 static inline int nal_h264_full_range(enum v4l2_quantization quantization) in nal_h264_full_range() argument 278 switch (quantization) { in nal_h264_full_range()
|
/Linux-v6.6/drivers/media/platform/st/sti/hva/ |
D | hva-v4l2.c | 114 ctx->quantization = V4L2_QUANTIZATION_DEFAULT; in set_default_params() 307 f->fmt.pix.quantization = ctx->quantization; in hva_g_fmt_stream() 326 f->fmt.pix.quantization = ctx->quantization; in hva_g_fmt_frame() 393 pix->quantization = ctx->quantization; in hva_try_fmt_stream() 440 pix->quantization = V4L2_QUANTIZATION_DEFAULT; in hva_try_fmt_frame() 504 ctx->quantization = pix->quantization; in hva_s_fmt_frame()
|