| /OK3568_Linux_fs/kernel/drivers/media/test-drivers/vivid/ |
| H A D | vivid-vid-common.c | 38 .bit_depth = { 16 }, 47 .bit_depth = { 16 }, 55 .bit_depth = { 16 }, 63 .bit_depth = { 16 }, 71 .bit_depth = { 8, 4, 4 }, 79 .bit_depth = { 8, 4, 4 }, 87 .bit_depth = { 8, 4, 4 }, 95 .bit_depth = { 8, 8 }, 103 .bit_depth = { 8, 8 }, 111 .bit_depth = { 8, 8 }, [all …]
|
| H A D | vivid-vid-out.c | 278 (dev->sink_rect.width * dev->fmt_out->bit_depth[p]) / 8; in vivid_update_format_out() 406 bytesperline = (mp->width * fmt->bit_depth[p]) >> 3; in vivid_try_fmt_vid_out() 408 max_bpl = (MAX_ZOOM * MAX_WIDTH * fmt->bit_depth[p]) >> 3; in vivid_try_fmt_vid_out() 422 (fmt->bit_depth[p] / fmt->vdownsampling[p])) / in vivid_try_fmt_vid_out() 423 (fmt->bit_depth[0] / fmt->vdownsampling[0]); in vivid_try_fmt_vid_out() 557 (dev->bytesperline_out[0] * dev->fmt_out->bit_depth[p]) / in vivid_s_fmt_vid_out() 558 dev->fmt_out->bit_depth[0]; in vivid_s_fmt_vid_out()
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/dcn20/ |
| H A D | dcn20_opp.c | 52 enum test_pattern_color_format bit_depth; in opp2_set_disp_pattern_generator() local 75 bit_depth = TEST_PATTERN_COLOR_FORMAT_BPC_6; in opp2_set_disp_pattern_generator() 78 bit_depth = TEST_PATTERN_COLOR_FORMAT_BPC_8; in opp2_set_disp_pattern_generator() 81 bit_depth = TEST_PATTERN_COLOR_FORMAT_BPC_10; in opp2_set_disp_pattern_generator() 84 bit_depth = TEST_PATTERN_COLOR_FORMAT_BPC_12; in opp2_set_disp_pattern_generator() 87 bit_depth = TEST_PATTERN_COLOR_FORMAT_BPC_8; in opp2_set_disp_pattern_generator() 127 DPG_BIT_DEPTH, bit_depth, in opp2_set_disp_pattern_generator() 141 switch (bit_depth) { in opp2_set_disp_pattern_generator() 186 DPG_BIT_DEPTH, bit_depth, in opp2_set_disp_pattern_generator() 194 mode = (bit_depth == in opp2_set_disp_pattern_generator() [all …]
|
| /OK3568_Linux_fs/kernel/sound/soc/xilinx/ |
| H A D | xlnx_formatter_pcm.c | 70 enum bit_depth { enum 134 u32 padded, srate, bit_depth, status[2]; in xlnx_parse_aes_params() local 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() 184 bit_depth = XLNX_PARAM_UNKNOWN; 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() [all …]
|
| /OK3568_Linux_fs/buildroot/dl/qt5location/git/src/3rdparty/mapbox-gl-native/platform/default/ |
| H A D | png_reader.cpp | 97 int bit_depth = 0; in decodePNG() local 99 …png_get_IHDR(png_ptr, info_ptr, &width, &height, &bit_depth, &color_type, nullptr, nullptr, nullpt… in decodePNG() 106 if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8) in decodePNG() 112 if (bit_depth == 16) in decodePNG()
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/dce120/ |
| H A D | dce120_timing_generator.c | 847 enum test_pattern_color_format bit_depth; in dce120_timing_generator_set_test_pattern() local 869 bit_depth = TEST_PATTERN_COLOR_FORMAT_BPC_6; in dce120_timing_generator_set_test_pattern() 872 bit_depth = TEST_PATTERN_COLOR_FORMAT_BPC_8; in dce120_timing_generator_set_test_pattern() 875 bit_depth = TEST_PATTERN_COLOR_FORMAT_BPC_10; in dce120_timing_generator_set_test_pattern() 878 bit_depth = TEST_PATTERN_COLOR_FORMAT_BPC_12; in dce120_timing_generator_set_test_pattern() 881 bit_depth = TEST_PATTERN_COLOR_FORMAT_BPC_8; in dce120_timing_generator_set_test_pattern() 903 CRTC_TEST_PATTERN_COLOR_FORMAT, bit_depth); in dce120_timing_generator_set_test_pattern() 915 switch (bit_depth) { in dce120_timing_generator_set_test_pattern() 1005 CRTC_TEST_PATTERN_COLOR_FORMAT, bit_depth); in dce120_timing_generator_set_test_pattern() 1011 mode = (bit_depth == in dce120_timing_generator_set_test_pattern() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/dcn10/ |
| H A D | dcn10_optc.c | 959 enum test_pattern_color_format bit_depth; in optc1_set_test_pattern() local 983 bit_depth = TEST_PATTERN_COLOR_FORMAT_BPC_6; in optc1_set_test_pattern() 986 bit_depth = TEST_PATTERN_COLOR_FORMAT_BPC_8; in optc1_set_test_pattern() 989 bit_depth = TEST_PATTERN_COLOR_FORMAT_BPC_10; in optc1_set_test_pattern() 992 bit_depth = TEST_PATTERN_COLOR_FORMAT_BPC_12; in optc1_set_test_pattern() 995 bit_depth = TEST_PATTERN_COLOR_FORMAT_BPC_8; in optc1_set_test_pattern() 1017 OTG_TEST_PATTERN_COLOR_FORMAT, bit_depth); in optc1_set_test_pattern() 1029 switch (bit_depth) { in optc1_set_test_pattern() 1117 OTG_TEST_PATTERN_COLOR_FORMAT, bit_depth); in optc1_set_test_pattern() 1123 mode = (bit_depth == in optc1_set_test_pattern() [all …]
|
| /OK3568_Linux_fs/external/recovery/minui/ |
| H A D | resources.c | 96 int color_type, bit_depth; in open_png() local 97 png_get_IHDR(*png_ptr, *info_ptr, width, height, &bit_depth, in open_png() 102 if (bit_depth == 8 && *channels == 3 && color_type == PNG_COLOR_TYPE_RGB) { in open_png() 104 } else if (bit_depth <= 8 && *channels == 1 && color_type == PNG_COLOR_TYPE_GRAY) { in open_png() 107 } else if (bit_depth <= 8 && *channels == 1 && color_type == PNG_COLOR_TYPE_PALETTE) { in open_png() 116 bit_depth, *channels, color_type); in open_png()
|
| /OK3568_Linux_fs/external/rk_pcba_test/pcba_minui/minui/ |
| H A D | resources.c | 94 int color_type, bit_depth; in open_png() local 95 png_get_IHDR(*png_ptr, *info_ptr, width, height, &bit_depth, in open_png() 100 if (bit_depth == 8 && *channels == 3 && color_type == PNG_COLOR_TYPE_RGB) { in open_png() 102 } else if (bit_depth <= 8 && *channels == 1 && color_type == PNG_COLOR_TYPE_GRAY) { in open_png() 105 } else if (bit_depth <= 8 && *channels == 1 && color_type == PNG_COLOR_TYPE_PALETTE) { in open_png() 114 bit_depth, *channels, color_type); in open_png()
|
| /OK3568_Linux_fs/external/mpp/mpp/hal/rkdec/h265d/ |
| H A D | hal_h265d_vdpu382.c | 465 RK_U8 bit_depth = MPP_MAX(pp->bit_depth_luma_minus8, pp->bit_depth_chroma_minus8) + 8; in h265d_refine_rcb_size() local 511 rcb_bits = width * ( 4 + 6 * bit_depth); in h265d_refine_rcb_size() 513 rcb_bits = width * ( 2 + 6 * bit_depth); in h265d_refine_rcb_size() 516 rcb_bits = width * ( 4 + 8 * bit_depth); in h265d_refine_rcb_size() 518 rcb_bits = width * ( 2 + 8 * bit_depth); in h265d_refine_rcb_size() 520 rcb_bits += (tile_col_cut_num * (bit_depth == 8 ? 256 : 192)) + ext_align_size; in h265d_refine_rcb_size() 525 rcb_bits = width * (128 / ctu_size + 2 * bit_depth); in h265d_refine_rcb_size() 527 rcb_bits = width * (128 / ctu_size + 3 * bit_depth); in h265d_refine_rcb_size() 529 rcb_bits += (tile_col_cut_num * (bit_depth == 8 ? 160 : 128)) + ext_align_size; in h265d_refine_rcb_size() 534 rcb_bits = width * (chroma_fmt_idc - 1) * 2 * bit_depth; in h265d_refine_rcb_size() [all …]
|
| H A D | hal_h265d_vdpu34x.c | 683 RK_U8 bit_depth = MPP_MAX(pp->bit_depth_luma_minus8, pp->bit_depth_chroma_minus8) + 8; in h265d_refine_rcb_size() local 721 rcb_bits = width * ( 4 + 6 * bit_depth); in h265d_refine_rcb_size() 723 rcb_bits = width * ( 2 + 6 * bit_depth); in h265d_refine_rcb_size() 726 rcb_bits = width * ( 4 + 8 * bit_depth); in h265d_refine_rcb_size() 728 rcb_bits = width * ( 2 + 8 * bit_depth); in h265d_refine_rcb_size() 730 rcb_bits += (tile_col_cut_num * (bit_depth == 8 ? 256 : 192)) + ext_align_size; in h265d_refine_rcb_size() 734 rcb_bits = width * (128 / ctu_size + 2 * bit_depth); in h265d_refine_rcb_size() 736 rcb_bits = width * (128 / ctu_size + 3 * bit_depth); in h265d_refine_rcb_size() 738 rcb_bits += (tile_col_cut_num * (bit_depth == 8 ? 160 : 128)) + ext_align_size; in h265d_refine_rcb_size() 742 rcb_bits = width * (chroma_fmt_idc - 1) * 2 * bit_depth; in h265d_refine_rcb_size() [all …]
|
| /OK3568_Linux_fs/external/mpp/mpp/hal/rkdec/vp9d/ |
| H A D | hal_vp9d_vdpu382.c | 71 RK_U32 bit_depth; member 293 RK_U32 bit_depth = pic_param->BitDepthMinus8Luma + 8; in vp9d_refine_rcb_size() local 331 rcb_bits = width * (0.5 + 16 * bit_depth) + num_tiles_col * 192 * bit_depth + ext_align_size; in vp9d_refine_rcb_size() 339 rcb_bits = 8 * width * bit_depth + ext_align_size; in vp9d_refine_rcb_size() 347 rcb_bits = height * (4 + 24 * bit_depth); in vp9d_refine_rcb_size() 349 rcb_bits = height * (4 + 16 * bit_depth); in vp9d_refine_rcb_size() 361 RK_U32 bit_depth = pic_param->BitDepthMinus8Luma + 8; in hal_vp9d_rcb_info_update() local 366 hw_ctx->bit_depth != bit_depth || in hal_vp9d_rcb_info_update() 398 hw_ctx->bit_depth = bit_depth; in hal_vp9d_rcb_info_update() 407 RK_U8 bit_depth = 0; in hal_vp9d_vdpu382_gen_regs() local [all …]
|
| H A D | hal_vp9d_vdpu34x.c | 71 RK_U32 bit_depth; member 291 RK_U32 bit_depth = pic_param->BitDepthMinus8Luma + 8; in vp9d_refine_rcb_size() local 323 rcb_bits = width * (1 + 16 * bit_depth) + num_tiles * 192 * bit_depth + ext_align_size; in vp9d_refine_rcb_size() 329 rcb_bits = 8 * width * bit_depth + ext_align_size; in vp9d_refine_rcb_size() 335 rcb_bits = height * (4 + 24 * bit_depth); in vp9d_refine_rcb_size() 337 rcb_bits = height * (4 + 16 * bit_depth); in vp9d_refine_rcb_size() 348 RK_U32 bit_depth = pic_param->BitDepthMinus8Luma + 8; in hal_vp9d_rcb_info_update() local 353 hw_ctx->bit_depth != bit_depth || in hal_vp9d_rcb_info_update() 385 hw_ctx->bit_depth = bit_depth; in hal_vp9d_rcb_info_update() 394 RK_U8 bit_depth = 0; in hal_vp9d_vdpu34x_gen_regs() local [all …]
|
| H A D | hal_vp9d_rkv.c | 250 RK_U8 bit_depth = 0; in hal_vp9d_rkv_gen_regs() local 305 bit_depth = pic_param->BitDepthMinus8Luma + 8; in hal_vp9d_rkv_gen_regs() 310 sw_y_hor_virstride = (vp9_hor_align((pic_param->width * bit_depth) >> 3) >> 4); in hal_vp9d_rkv_gen_regs() 311 sw_uv_hor_virstride = (vp9_hor_align((pic_param->width * bit_depth) >> 3) >> 4); in hal_vp9d_rkv_gen_regs() 365 y_hor_virstride = (vp9_hor_align((ref_frame_width_y * bit_depth) >> 3) >> 4); in hal_vp9d_rkv_gen_regs() 366 uv_hor_virstride = (vp9_hor_align((ref_frame_width_y * bit_depth) >> 3) >> 4); in hal_vp9d_rkv_gen_regs()
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/dce110/ |
| H A D | dce110_timing_generator.c | 716 enum test_pattern_color_format bit_depth; in dce110_timing_generator_set_test_pattern() local 738 bit_depth = TEST_PATTERN_COLOR_FORMAT_BPC_6; in dce110_timing_generator_set_test_pattern() 741 bit_depth = TEST_PATTERN_COLOR_FORMAT_BPC_8; in dce110_timing_generator_set_test_pattern() 744 bit_depth = TEST_PATTERN_COLOR_FORMAT_BPC_10; in dce110_timing_generator_set_test_pattern() 747 bit_depth = TEST_PATTERN_COLOR_FORMAT_BPC_12; in dce110_timing_generator_set_test_pattern() 750 bit_depth = TEST_PATTERN_COLOR_FORMAT_BPC_8; in dce110_timing_generator_set_test_pattern() 801 bit_depth, in dce110_timing_generator_set_test_pattern() 816 switch (bit_depth) { in dce110_timing_generator_set_test_pattern() 928 bit_depth, in dce110_timing_generator_set_test_pattern() 938 mode = (bit_depth == in dce110_timing_generator_set_test_pattern() [all …]
|
| /OK3568_Linux_fs/external/mpp/mpp/codec/dec/h265/ |
| H A D | h265d_ps.c | 665 if (openhevc_sps->bit_depth != sps->bit_depth) { in compare_sps() 1497 READ_UE(gb, &sps->bit_depth); in mpp_hevc_decode_nal_sps() 1499 sps->bit_depth = sps->bit_depth + 8; in mpp_hevc_decode_nal_sps() 1503 if (bit_depth_chroma != sps->bit_depth) { in mpp_hevc_decode_nal_sps() 1507 sps->bit_depth, bit_depth_chroma); in mpp_hevc_decode_nal_sps() 1513 switch (sps->bit_depth) { in mpp_hevc_decode_nal_sps() 1518 sps->bit_depth); in mpp_hevc_decode_nal_sps() 1537 sps->pixel_shift = sps->bit_depth > 8; in mpp_hevc_decode_nal_sps() 1664 READ_BITS(gb, 4, &sps->pcm.bit_depth); in mpp_hevc_decode_nal_sps() 1665 sps->pcm.bit_depth += 1; in mpp_hevc_decode_nal_sps() [all …]
|
| /OK3568_Linux_fs/buildroot/dl/sox/git/src/ |
| H A D | rate.c | 525 double bit_depth, phase, bw_0dB_pc, anti_aliasing_pc; member 555 GETOPT_NUMERIC(optstate, 'd', bit_depth, 15, 33) in create() 578 allow_aliasing || rej || p->bit_depth || p->anti_aliasing_pc)) { in create() 582 if (quality < 0 && rej == 0 && p->bit_depth == 0) in create() 585 p->bit_depth = rej / linear_to_dB(2.); in create() 588 p->bit_depth = quality? 16 + 4 * max(quality - 3, 0) : 0; in create() 592 rej = p->bit_depth * linear_to_dB(2.); in create() 641 rate_init(&p->rate, p->shared_ptr, effp->in_signal.rate/out_rate,p->bit_depth, in start()
|
| H A D | stats.c | 125 static unsigned bit_depth(uint32_t mask, double min, double max, unsigned * x) in bit_depth() function 274 b1 = bit_depth(mask, min, max, &b2); in stop() 278 b1 = bit_depth(q->mask, q->min, q->max, &b2); in stop()
|
| /OK3568_Linux_fs/external/mpp/mpp/codec/dec/av1/ |
| H A D | av1d_parser.c | 90 uint8_t bit_depth = 8;; in get_pixel_format() local 95 bit_depth = seq->color_config.twelve_bit ? 12 : 10; in get_pixel_format() 97 bit_depth = seq->color_config.high_bitdepth ? 10 : 8; in get_pixel_format() 111 if (bit_depth == 8) in get_pixel_format() 119 if (bit_depth == 8) in get_pixel_format() 121 else if (bit_depth == 10) { in get_pixel_format() 141 s->bit_depth = bit_depth; in get_pixel_format() 737 mpp_frame_set_hor_stride(frame->f, MPP_ALIGN(s->frame_width * s->bit_depth / 8, 8)); in get_current_frame() 751 if (s->bit_depth == 10) { in get_current_frame()
|
| /OK3568_Linux_fs/external/mpp/mpp/hal/rkdec/h264d/ |
| H A D | hal_h264d_vdpu34x.c | 155 RK_U32 bit_depth; member 805 RK_U32 bit_depth = p_hal->pp->bit_depth_luma_minus8 + 8; in h264d_refine_rcb_size() local 837 rcb_bits = width * (2 + (mbaff ? 12 : 6) * bit_depth); in h264d_refine_rcb_size() 843 rcb_bits = (chroma_format_idc > 1) ? (2 * width * bit_depth) : 0; in h264d_refine_rcb_size() 855 RK_U32 bit_depth = p_hal->pp->bit_depth_luma_minus8 + 8; in hal_h264d_rcb_info_update() local 861 if ( ctx->bit_depth != bit_depth || in hal_h264d_rcb_info_update() 885 ctx->bit_depth = bit_depth; in hal_h264d_rcb_info_update()
|
| H A D | hal_h264d_vdpu382.c | 159 RK_U32 bit_depth; member 842 RK_U32 bit_depth = p_hal->pp->bit_depth_luma_minus8 + 8; in h264d_refine_rcb_size() local 880 rcb_bits = width * (2 + (mbaff ? 12 : 6) * bit_depth); in h264d_refine_rcb_size() 888 rcb_bits = (chroma_format_idc > 1) ? (2 * width * bit_depth) : 0; in h264d_refine_rcb_size() 901 RK_U32 bit_depth = p_hal->pp->bit_depth_luma_minus8 + 8; in hal_h264d_rcb_info_update() local 907 if ( ctx->bit_depth != bit_depth || in hal_h264d_rcb_info_update() 927 ctx->bit_depth = bit_depth; in hal_h264d_rcb_info_update()
|
| /OK3568_Linux_fs/kernel/sound/soc/intel/skylake/ |
| H A D | skl-messages.c | 456 base_cfg->audio_fmt.bit_depth = format->bit_depth; in skl_set_base_module_format() 462 format->bit_depth, format->valid_bit_depth, in skl_set_base_module_format() 670 out_fmt->bit_depth = format->bit_depth; in skl_setup_out_format() 679 out_fmt->number_of_channels, format->s_freq, format->bit_depth); in skl_setup_out_format() 1100 pin_fmt->bit_depth = format->bit_depth; in fill_pin_params()
|
| H A D | skl-ssp-clk.h | 70 u32 bit_depth; member
|
| H A D | skl-topology.c | 168 fmt->bit_depth = fmt->valid_bit_depth; in skl_tplg_update_params() 172 fmt->bit_depth = SKL_DEPTH_32BIT; in skl_tplg_update_params() 250 in_fmt->channels * (in_fmt->bit_depth >> 3) * in skl_tplg_update_buffer_size() 254 out_fmt->channels * (out_fmt->bit_depth >> 3) * in skl_tplg_update_buffer_size() 304 s_fmt = m_iface->inputs[0].fmt.bit_depth; in skl_tplg_update_be_blob() 313 s_fmt = m_iface->outputs[0].fmt.bit_depth; in skl_tplg_update_be_blob() 318 s_fmt = m_iface->inputs[0].fmt.bit_depth; in skl_tplg_update_be_blob() 1663 format->bit_depth = format->valid_bit_depth; in skl_tplg_update_pipe_params() 1668 format->bit_depth = SKL_DEPTH_32BIT; in skl_tplg_update_pipe_params() 1680 (format->bit_depth >> 3); in skl_tplg_update_pipe_params() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/staging/media/rkvdec/ |
| H A D | rkvdec.h | 48 u32 bit_depth : 4; member
|