Home
last modified time | relevance | path

Searched refs:chroma_size (Results 1 – 18 of 18) sorted by relevance

/linux/drivers/gpu/drm/amd/display/dc/dce110/
A Ddce110_mem_input_v.c245 swap(local_size.chroma_size.x, in program_size_and_rotation()
246 local_size.chroma_size.y); in program_size_and_rotation()
247 swap(local_size.chroma_size.width, in program_size_and_rotation()
248 local_size.chroma_size.height); in program_size_and_rotation()
310 set_reg_field_value(value, local_size.chroma_size.x + in program_size_and_rotation()
311 local_size.chroma_size.width, in program_size_and_rotation()
328 set_reg_field_value(value, local_size.chroma_size.y + in program_size_and_rotation()
329 local_size.chroma_size.height, in program_size_and_rotation()
/linux/drivers/staging/media/sunxi/cedrus/
A Dcedrus_hw.c84 u32 chroma_size; in cedrus_dst_format_set() local
89 chroma_size = ALIGN(width, 16) * ALIGN(height, 16) / 2; in cedrus_dst_format_set()
94 reg = chroma_size / 2; in cedrus_dst_format_set()
/linux/drivers/media/platform/samsung/s5p-mfc/
A Ds5p_mfc_opr_v5.c71 ctx->luma_size, ctx->chroma_size, ctx->mv_size); in s5p_mfc_alloc_codec_buffers_v5()
288 ctx->chroma_size = ALIGN(ctx->buf_width * in s5p_mfc_dec_calc_dpb_size_v5()
309 ctx->chroma_size = ALIGN(guard_width * guard_height, in s5p_mfc_dec_calc_dpb_size_v5()
323 ctx->chroma_size = ALIGN(ctx->img_width, S5P_FIMV_NV12M_HALIGN) in s5p_mfc_enc_calc_src_size_v5()
327 ctx->chroma_size = in s5p_mfc_enc_calc_src_size_v5()
328 ALIGN(ctx->chroma_size, S5P_FIMV_NV12M_SALIGN); in s5p_mfc_enc_calc_src_size_v5()
334 ctx->chroma_size = in s5p_mfc_enc_calc_src_size_v5()
339 ctx->chroma_size = in s5p_mfc_enc_calc_src_size_v5()
340 ALIGN(ctx->chroma_size, S5P_FIMV_NV12MT_SALIGN); in s5p_mfc_enc_calc_src_size_v5()
467 frame_size_ch = ctx->chroma_size; in s5p_mfc_set_dec_frame_buffer_v5()
A Ds5p_mfc_opr_v6.c74 ctx->luma_size, ctx->chroma_size, ctx->mv_size); in s5p_mfc_alloc_codec_buffers_v6()
502 ctx->chroma_size = calc_plane(ctx->stride[1], (ctx->img_height / 2)); in s5p_mfc_dec_calc_dpb_size_v6()
510 ctx->chroma_size = calc_plane(ctx->stride[1], (ctx->img_height / 2)); in s5p_mfc_dec_calc_dpb_size_v6()
518 ctx->chroma_size += S5P_FIMV_D_ALIGN_PLANE_SIZE_V8; in s5p_mfc_dec_calc_dpb_size_v6()
553 ctx->chroma_size = ctx->stride[0] * ALIGN(ctx->img_height / 2, 16); in s5p_mfc_enc_calc_src_size_v6()
561 ctx->chroma_size = ctx->stride[1] * ALIGN(ctx->img_height / 2, 16); in s5p_mfc_enc_calc_src_size_v6()
566 ctx->chroma_size += MFC_CHROMA_PAD_BYTES_V12; in s5p_mfc_enc_calc_src_size_v6()
573 ctx->chroma_size = ALIGN((mb_width * mb_height) * 128, 256); in s5p_mfc_enc_calc_src_size_v6()
578 ctx->chroma_size += MFC_LUMA_PAD_BYTES_V7; in s5p_mfc_enc_calc_src_size_v6()
625 writel(ctx->chroma_size, mfc_regs->d_second_plane_dpb_size); in s5p_mfc_set_dec_frame_buffer_v6()
[all …]
A Ds5p_mfc_dec.c379 pix_mp->plane_fmt[1].sizeimage = ctx->chroma_size; in vidioc_g_fmt()
983 psize[1] = ctx->chroma_size; in s5p_mfc_queue_setup()
1023 vb2_plane_size(vb, 1) < ctx->chroma_size) { in s5p_mfc_buf_init()
A Ds5p_mfc_enc.c1418 pix_fmt_mp->plane_fmt[1].sizeimage = ctx->chroma_size; in vidioc_g_fmt()
1511 pix_fmt_mp->plane_fmt[1].sizeimage = ctx->chroma_size; in vidioc_s_fmt()
2452 psize[1] = ctx->chroma_size; in s5p_mfc_queue_setup()
2539 vb2_plane_size(vb, 1), ctx->chroma_size); in s5p_mfc_buf_prepare()
2541 vb2_plane_size(vb, 1) < ctx->chroma_size) { in s5p_mfc_buf_prepare()
A Ds5p_mfc_common.h664 int chroma_size; member
A Ds5p_mfc.c358 ctx->chroma_size); in s5p_mfc_handle_frame_new()
/linux/drivers/media/platform/chips-media/wave5/
A Dwave5-vpu-dec.c1054 int luma_size, chroma_size; in wave5_prepare_fb() local
1086 chroma_size = ALIGN(fb_stride / 2, 16) * fb_height; in wave5_prepare_fb()
1088 if (vframe->size == (luma_size + chroma_size)) in wave5_prepare_fb()
1094 vframe->size = luma_size + chroma_size; in wave5_prepare_fb()
1128 u32 chroma_size; in wave5_prepare_fb() local
1131 chroma_size = fb_stride * inst->dst_fmt.height / 2; in wave5_prepare_fb()
1133 chroma_size = fb_stride * inst->dst_fmt.height / 4; in wave5_prepare_fb()
1139 buf_addr_cr = buf_addr_cb + chroma_size; in wave5_prepare_fb()
1145 buf_addr_cr = buf_addr_cb + chroma_size; in wave5_prepare_fb()
A Dwave5-vpu-enc.c158 u32 chroma_size = ((stride / 2) * (inst->dst_fmt.height / 2)); in start_encode() local
186 frame_buf.buf_cr = frame_buf.buf_cb + chroma_size; in start_encode()
192 frame_buf.buf_cr = frame_buf.buf_cb + chroma_size; in start_encode()
1270 u32 chroma_size = ALIGN(fb_stride / 2, 16) * fb_height; in prepare_fb() local
1272 inst->frame_vbuf[i].size = luma_size + chroma_size; in prepare_fb()
/linux/drivers/media/platform/qcom/venus/
A Dhfi_plat_bufs_v6.c951 u32 luma_size, chroma_size; in enc_scratch2_size() local
987 chroma_size = ref_stride * ref_chroma_height_bytes; in enc_scratch2_size()
989 chroma_size = (chroma_size + (SZ_4K - 1)) & (~(SZ_4K - 1)); in enc_scratch2_size()
990 ref_buf_size = luma_size + chroma_size; in enc_scratch2_size()
/linux/drivers/media/test-drivers/vicodec/
A Dcodec-fwht.c800 unsigned int chroma_size = chroma_h * chroma_w; in fwht_encode_frame() local
802 rlco_max = rlco + chroma_size / 2 - 256; in fwht_encode_frame()
810 rlco_max = rlco + chroma_size / 2 - 256; in fwht_encode_frame()
/linux/drivers/gpu/drm/amd/display/amdgpu_dm/
A Damdgpu_dm_plane.c879 plane_size->chroma_size.x = 0; in amdgpu_dm_plane_fill_plane_buffer_attributes()
880 plane_size->chroma_size.y = 0; in amdgpu_dm_plane_fill_plane_buffer_attributes()
882 plane_size->chroma_size.width = fb->width / 2; in amdgpu_dm_plane_fill_plane_buffer_attributes()
883 plane_size->chroma_size.height = fb->height / 2; in amdgpu_dm_plane_fill_plane_buffer_attributes()
A Damdgpu_dm.c7269 dc_plane_state->plane_size.chroma_size.height = stream->src.height; in dm_validate_stream_and_context()
7270 dc_plane_state->plane_size.chroma_size.width = stream->src.width; in dm_validate_stream_and_context()
/linux/drivers/gpu/drm/amd/display/dc/
A Ddc_hw_types.h150 struct rect chroma_size; member
/linux/drivers/gpu/drm/amd/display/dc/dml2/dml21/
A Ddml21_translation_helper.c677 surface->plane1.height = plane_state->plane_size.chroma_size.height; in populate_dml21_surface_config_from_plane_state()
678 surface->plane1.width = plane_state->plane_size.chroma_size.width; in populate_dml21_surface_config_from_plane_state()
/linux/drivers/gpu/drm/amd/display/dc/dml2/
A Ddml2_translation_helper.c872 out->SurfaceHeightC[location] = in->plane_size.chroma_size.height; in populate_dml_surface_cfg_from_plane_state()
873 out->SurfaceWidthC[location] = in->plane_size.chroma_size.width; in populate_dml_surface_cfg_from_plane_state()
/linux/drivers/gpu/drm/amd/display/dc/dml/dcn20/
A Ddcn20_fpu.c1635 pipes[pipe_cnt].pipe.src.surface_width_c = pln->plane_size.chroma_size.width; in dcn20_populate_dml_pipes_from_context()
1636 pipes[pipe_cnt].pipe.src.surface_height_c = pln->plane_size.chroma_size.height; in dcn20_populate_dml_pipes_from_context()

Completed in 80 milliseconds