| /linux/drivers/media/platform/raspberrypi/pisp_be/ |
| A D | pisp_be_formats.h | 20 unsigned int bit_depth; member 62 .bit_depth = 8, 72 .bit_depth = 8, 81 .bit_depth = 8, 90 .bit_depth = 8, 136 .bit_depth = 8, 145 .bit_depth = 8, 154 .bit_depth = 8, 486 .bit_depth = 8, 494 .bit_depth = 16, [all …]
|
| /linux/drivers/media/test-drivers/vivid/ |
| A D | vivid-vid-common.c | 38 .bit_depth = { 16 }, 47 .bit_depth = { 16 }, 55 .bit_depth = { 16 }, 63 .bit_depth = { 16 }, 143 .bit_depth = { 16 }, 151 .bit_depth = { 16 }, 158 .bit_depth = { 16 }, 166 .bit_depth = { 32 }, 174 .bit_depth = { 32 }, 219 .bit_depth = { 8 }, [all …]
|
| A D | vivid-vid-out.c | 273 (dev->sink_rect.width * dev->fmt_out->bit_depth[p]) / 8; in vivid_update_format_out() 401 bytesperline = (mp->width * fmt->bit_depth[p]) >> 3; in vivid_try_fmt_vid_out() 403 max_bpl = (MAX_ZOOM * MAX_WIDTH * fmt->bit_depth[p]) >> 3; in vivid_try_fmt_vid_out() 417 (fmt->bit_depth[p] / fmt->vdownsampling[p])) / in vivid_try_fmt_vid_out() 418 (fmt->bit_depth[0] / fmt->vdownsampling[0]); in vivid_try_fmt_vid_out() 552 (dev->bytesperline_out[0] * dev->fmt_out->bit_depth[p]) / in vivid_s_fmt_vid_out() 553 dev->fmt_out->bit_depth[0]; in vivid_s_fmt_vid_out()
|
| /linux/drivers/gpu/drm/amd/display/dc/opp/dcn20/ |
| A D | dcn20_opp.c | 53 enum test_pattern_color_format bit_depth; in opp2_set_disp_pattern_generator() local 76 bit_depth = TEST_PATTERN_COLOR_FORMAT_BPC_6; in opp2_set_disp_pattern_generator() 79 bit_depth = TEST_PATTERN_COLOR_FORMAT_BPC_8; in opp2_set_disp_pattern_generator() 88 bit_depth = TEST_PATTERN_COLOR_FORMAT_BPC_8; in opp2_set_disp_pattern_generator() 128 DPG_BIT_DEPTH, bit_depth, in opp2_set_disp_pattern_generator() 142 switch (bit_depth) { in opp2_set_disp_pattern_generator() 187 DPG_BIT_DEPTH, bit_depth, in opp2_set_disp_pattern_generator() 195 mode = (bit_depth == in opp2_set_disp_pattern_generator() 200 switch (bit_depth) { in opp2_set_disp_pattern_generator() 221 switch (bit_depth) { in opp2_set_disp_pattern_generator() [all …]
|
| /linux/sound/soc/xilinx/ |
| A D | xlnx_formatter_pcm.c | 70 enum bit_depth { enum 165 bit_depth = XLNX_PARAM_UNKNOWN; in xlnx_parse_aes_params() 171 bit_depth = 16 + padded; in xlnx_parse_aes_params() 174 bit_depth = 18 + padded; in xlnx_parse_aes_params() 177 bit_depth = 19 + padded; in xlnx_parse_aes_params() 180 bit_depth = 20 + padded; in xlnx_parse_aes_params() 214 bit_depth = 16 + padded; in xlnx_parse_aes_params() 217 bit_depth = 18 + padded; in xlnx_parse_aes_params() 220 bit_depth = 19 + padded; in xlnx_parse_aes_params() 223 bit_depth = 20 + padded; in xlnx_parse_aes_params() [all …]
|
| /linux/drivers/media/platform/verisilicon/ |
| A D | hantro_v4l2.h | 27 int hantro_reset_raw_fmt(struct hantro_ctx *ctx, int bit_depth, bool need_postproc); 32 int bit_depth, bool need_postproc);
|
| A D | hantro_v4l2.c | 88 hantro_check_depth_match(const struct hantro_fmt *fmt, int bit_depth) in hantro_check_depth_match() argument 96 if (!bit_depth) in hantro_check_depth_match() 97 bit_depth = HANTRO_DEFAULT_BIT_DEPTH; in hantro_check_depth_match() 106 return fmt_depth <= bit_depth; in hantro_check_depth_match() 108 return fmt_depth == bit_depth; in hantro_check_depth_match() 131 int bit_depth, bool need_postproc) in hantro_get_default_fmt() argument 140 hantro_check_depth_match(&formats[i], bit_depth)) in hantro_get_default_fmt() 148 hantro_check_depth_match(&formats[i], bit_depth)) in hantro_get_default_fmt() 225 if (!hantro_check_depth_match(fmt, ctx->bit_depth)) in vidioc_enum_fmt() 245 if (!hantro_check_depth_match(fmt, ctx->bit_depth)) in vidioc_enum_fmt() [all …]
|
| A D | hantro_drv.c | 284 if (sequence->bit_depth != 8 && sequence->bit_depth != 10) in hantro_try_ctrl() 320 int bit_depth = ctrl->p_new.p_vp9_frame->bit_depth; in hantro_vp9_s_ctrl() local 322 if (ctx->bit_depth == bit_depth) in hantro_vp9_s_ctrl() 325 return hantro_reset_raw_fmt(ctx, bit_depth, HANTRO_AUTO_POSTPROC); in hantro_vp9_s_ctrl() 344 int bit_depth = sps->bit_depth_luma_minus8 + 8; in hantro_hevc_s_ctrl() local 346 if (ctx->bit_depth == bit_depth) in hantro_hevc_s_ctrl() 349 return hantro_reset_raw_fmt(ctx, bit_depth, HANTRO_AUTO_POSTPROC); in hantro_hevc_s_ctrl() 368 int bit_depth = ctrl->p_new.p_av1_sequence->bit_depth; in hantro_av1_s_ctrl() local 375 if (ctx->bit_depth == bit_depth && in hantro_av1_s_ctrl() 379 return hantro_reset_raw_fmt(ctx, bit_depth, need_postproc); in hantro_av1_s_ctrl()
|
| A D | hantro_g2.c | 50 return ctx->dst_fmt.width * ctx->dst_fmt.height * ctx->bit_depth / 8; in hantro_g2_chroma_offset()
|
| A D | hantro.h | 261 int bit_depth; member 332 u32 bit_depth : 4; member
|
| A D | hantro_hevc.c | 112 size = (VERT_FILTER_RAM_SIZE * height64 * (num_tile_cols - 1) * ctx->bit_depth) / 8; in tile_buffer_reallocate() 120 size = (VERT_SAO_RAM_SIZE * height64 * (num_tile_cols - 1) * ctx->bit_depth) / 8; in tile_buffer_reallocate()
|
| A D | hantro_g2_vp9_dec.c | 114 buf->vp9.bit_depth = dec_params->bit_depth; in update_dec_buf_info() 502 hantro_reg_write(ctx->dev, &g2_bit_depth_y, dec_params->bit_depth); in config_bit_depth() 503 hantro_reg_write(ctx->dev, &g2_bit_depth_c, dec_params->bit_depth); in config_bit_depth() 506 hantro_reg_write(ctx->dev, &g2_bit_depth_y_minus8, dec_params->bit_depth - 8); in config_bit_depth() 507 hantro_reg_write(ctx->dev, &g2_bit_depth_c_minus8, dec_params->bit_depth - 8); in config_bit_depth()
|
| /linux/drivers/staging/media/sunxi/cedrus/ |
| A D | cedrus.c | 48 unsigned int bit_depth, max_depth; in cedrus_try_ctrl() local 55 bit_depth = max(sps->bit_depth_luma_minus8, in cedrus_try_ctrl() 63 if (bit_depth > max_depth) in cedrus_try_ctrl() 74 if (ctx->bit_depth < bit_depth) in cedrus_try_ctrl() 77 ctx->bit_depth = bit_depth; in cedrus_try_ctrl() 371 ctx->bit_depth = 8; in cedrus_open()
|
| /linux/drivers/gpu/drm/amd/display/dc/dce120/ |
| A D | dce120_timing_generator.c | 805 enum test_pattern_color_format bit_depth; in dce120_timing_generator_set_test_pattern() local 827 bit_depth = TEST_PATTERN_COLOR_FORMAT_BPC_6; in dce120_timing_generator_set_test_pattern() 830 bit_depth = TEST_PATTERN_COLOR_FORMAT_BPC_8; in dce120_timing_generator_set_test_pattern() 833 bit_depth = TEST_PATTERN_COLOR_FORMAT_BPC_10; in dce120_timing_generator_set_test_pattern() 836 bit_depth = TEST_PATTERN_COLOR_FORMAT_BPC_12; in dce120_timing_generator_set_test_pattern() 839 bit_depth = TEST_PATTERN_COLOR_FORMAT_BPC_8; in dce120_timing_generator_set_test_pattern() 861 CRTC_TEST_PATTERN_COLOR_FORMAT, bit_depth); in dce120_timing_generator_set_test_pattern() 873 switch (bit_depth) { in dce120_timing_generator_set_test_pattern() 969 mode = (bit_depth == in dce120_timing_generator_set_test_pattern() 974 switch (bit_depth) { in dce120_timing_generator_set_test_pattern() [all …]
|
| /linux/drivers/gpu/drm/amd/display/dc/optc/dcn10/ |
| A D | dcn10_optc.c | 980 enum test_pattern_color_format bit_depth; in optc1_set_test_pattern() local 1004 bit_depth = TEST_PATTERN_COLOR_FORMAT_BPC_6; in optc1_set_test_pattern() 1007 bit_depth = TEST_PATTERN_COLOR_FORMAT_BPC_8; in optc1_set_test_pattern() 1016 bit_depth = TEST_PATTERN_COLOR_FORMAT_BPC_8; in optc1_set_test_pattern() 1038 OTG_TEST_PATTERN_COLOR_FORMAT, bit_depth); in optc1_set_test_pattern() 1050 switch (bit_depth) { in optc1_set_test_pattern() 1138 OTG_TEST_PATTERN_COLOR_FORMAT, bit_depth); in optc1_set_test_pattern() 1144 mode = (bit_depth == in optc1_set_test_pattern() 1149 switch (bit_depth) { in optc1_set_test_pattern() 1170 switch (bit_depth) { in optc1_set_test_pattern() [all …]
|
| /linux/drivers/gpu/drm/amd/display/dc/dce110/ |
| A D | dce110_timing_generator.c | 715 enum test_pattern_color_format bit_depth; in dce110_timing_generator_set_test_pattern() local 737 bit_depth = TEST_PATTERN_COLOR_FORMAT_BPC_6; in dce110_timing_generator_set_test_pattern() 740 bit_depth = TEST_PATTERN_COLOR_FORMAT_BPC_8; in dce110_timing_generator_set_test_pattern() 749 bit_depth = TEST_PATTERN_COLOR_FORMAT_BPC_8; in dce110_timing_generator_set_test_pattern() 800 bit_depth, in dce110_timing_generator_set_test_pattern() 815 switch (bit_depth) { in dce110_timing_generator_set_test_pattern() 927 bit_depth, in dce110_timing_generator_set_test_pattern() 937 mode = (bit_depth == in dce110_timing_generator_set_test_pattern() 942 switch (bit_depth) { in dce110_timing_generator_set_test_pattern() 966 switch (bit_depth) { in dce110_timing_generator_set_test_pattern() [all …]
|
| /linux/drivers/gpu/drm/amd/display/amdgpu_dm/ |
| A D | amdgpu_dm_color.c | 684 int bit_depth) in __drm_3dlut_to_dc_3dlut() argument 715 __to_dc_lut3d_color(&lut0[lut_i], lut[i], bit_depth); in __drm_3dlut_to_dc_3dlut() 716 __to_dc_lut3d_color(&lut1[lut_i], lut[i + 1], bit_depth); in __drm_3dlut_to_dc_3dlut() 717 __to_dc_lut3d_color(&lut2[lut_i], lut[i + 2], bit_depth); in __drm_3dlut_to_dc_3dlut() 718 __to_dc_lut3d_color(&lut3[lut_i], lut[i + 3], bit_depth); in __drm_3dlut_to_dc_3dlut() 721 __to_dc_lut3d_color(&lut0[lut_i], lut[i], bit_depth); in __drm_3dlut_to_dc_3dlut()
|
| /linux/drivers/media/platform/mediatek/vcodec/decoder/ |
| A D | mtk_vcodec_dec_stateless.c | 501 if (frame->bit_depth == 10) { in mtk_vdec_s_ctrl() 503 } else if (frame->bit_depth != 8) { in mtk_vdec_s_ctrl() 504 mtk_v4l2_vdec_err(ctx, "VP9: bit_depth:%d", frame->bit_depth); in mtk_vdec_s_ctrl() 511 if (seq->bit_depth == 10) { in mtk_vdec_s_ctrl() 513 } else if (seq->bit_depth != 8) { in mtk_vdec_s_ctrl() 514 mtk_v4l2_vdec_err(ctx, "AV1: bit_depth:%d", seq->bit_depth); in mtk_vdec_s_ctrl()
|
| /linux/drivers/staging/media/rkvdec/ |
| A D | rkvdec-vp9.c | 405 aligned_pitch = round_up(buf->vp9.width * buf->vp9.bit_depth, 512) / 8; in get_mv_base_addr() 431 aligned_pitch = round_up(ref_buf->vp9.width * ref_buf->vp9.bit_depth, 512) / 8; in config_ref_registers() 495 buf->vp9.bit_depth = dec_params->bit_depth; in update_dec_buf_info() 519 unsigned int y_len, uv_len, yuv_len, bit_depth, aligned_height, aligned_pitch, stream_len; in config_registers() local 553 bit_depth = dec_params->bit_depth; in config_registers() 557 bit_depth, in config_registers()
|
| A D | rkvdec.h | 47 unsigned int bit_depth : 4; member
|
| /linux/sound/soc/sof/ |
| A D | ipc4-topology.c | 1433 *sample_rate, *bit_depth, *channel_count); in snd_sof_get_hw_config_params() 1448 int bit_depth, ret; in snd_sof_get_nhlt_endpoint_data() local 1458 bit_depth = params_width(params); in snd_sof_get_nhlt_endpoint_data() 1466 bit_depth = 32; in snd_sof_get_nhlt_endpoint_data() 1472 &bit_depth); in snd_sof_get_nhlt_endpoint_data() 1497 bit_depth, bit_depth, channel_count, sample_rate, in snd_sof_get_nhlt_endpoint_data() 1508 bit_depth = params_width(params); in snd_sof_get_nhlt_endpoint_data() 1518 bit_depth = 16; in snd_sof_get_nhlt_endpoint_data() 1526 bit_depth, bit_depth, in snd_sof_get_nhlt_endpoint_data() 1535 sample_rate, bit_depth, channel_count); in snd_sof_get_nhlt_endpoint_data() [all …]
|
| /linux/drivers/media/platform/chips-media/wave5/ |
| A D | wave5-vpu-enc.c | 795 inst->bit_depth = 8; in wave5_vpu_enc_s_ctrl() 800 inst->bit_depth = 8; in wave5_vpu_enc_s_ctrl() 804 inst->bit_depth = 10; in wave5_vpu_enc_s_ctrl() 927 inst->bit_depth = 8; in wave5_vpu_enc_s_ctrl() 931 inst->bit_depth = 8; in wave5_vpu_enc_s_ctrl() 935 inst->bit_depth = 8; in wave5_vpu_enc_s_ctrl() 939 inst->bit_depth = 8; in wave5_vpu_enc_s_ctrl() 943 inst->bit_depth = 10; in wave5_vpu_enc_s_ctrl() 947 inst->bit_depth = 10; in wave5_vpu_enc_s_ctrl() 951 inst->bit_depth = 10; in wave5_vpu_enc_s_ctrl() [all …]
|
| /linux/drivers/media/platform/qcom/venus/ |
| A D | vdec.c | 140 !(inst->bit_depth == VIDC_BITDEPTH_10)) in find_format() 168 !(inst->bit_depth == VIDC_BITDEPTH_10)) in find_format_by_index() 1506 if (inst->bit_depth != ev_data->bit_depth) { in vdec_event_change() 1507 inst->bit_depth = ev_data->bit_depth; in vdec_event_change() 1508 if (inst->bit_depth == VIDC_BITDEPTH_10) in vdec_event_change() 1689 inst->bit_depth = VIDC_BITDEPTH_8; in vdec_open()
|
| /linux/drivers/staging/media/ipu3/ |
| A D | ipu3-css.c | 66 .bit_depth = 10, 74 .bit_depth = 10, 82 .bit_depth = 10, 90 .bit_depth = 10, 734 frame_sp_info->raw_bit_depth = css_queue_in->css_fmt->bit_depth; in imgu_css_pipeline_init() 743 frame_sp_info->raw_bit_depth = css_queue_out->css_fmt->bit_depth; in imgu_css_pipeline_init() 752 frame_sp_info->raw_bit_depth = css_queue_out->css_fmt->bit_depth; in imgu_css_pipeline_init() 761 frame_sp_info->raw_bit_depth = css_queue_vf->css_fmt->bit_depth; in imgu_css_pipeline_init() 923 frame_sp->info.raw_bit_depth = css_queue_in->css_fmt->bit_depth; in imgu_css_pipeline_init() 934 frame_sp->info.raw_bit_depth = css_queue_out->css_fmt->bit_depth; in imgu_css_pipeline_init() [all …]
|
| /linux/drivers/gpu/drm/mediatek/ |
| A D | mtk_disp_ovl.c | 293 unsigned int bit_depth = OVL_CON_CLRFMT_8_BIT; in mtk_ovl_set_bit_depth() local 299 bit_depth = OVL_CON_CLRFMT_10_BIT; in mtk_ovl_set_bit_depth() 301 mtk_ddp_write_mask(cmdq_pkt, OVL_CON_CLRFMT_BIT_DEPTH(bit_depth, idx), in mtk_ovl_set_bit_depth()
|