Home
last modified time | relevance | path

Searched refs:picinfo (Results 1 – 13 of 13) sorted by relevance

/linux-6.12.1/drivers/media/platform/mediatek/vcodec/decoder/vdec/
Dvdec_vp8_req_if.c122 data[0] = ctx->picinfo.pic_w; in vdec_vp8_slice_get_pic_info()
123 data[1] = ctx->picinfo.pic_h; in vdec_vp8_slice_get_pic_info()
127 ctx->picinfo.buf_w = ALIGN(ctx->picinfo.pic_w, 64); in vdec_vp8_slice_get_pic_info()
128 ctx->picinfo.buf_h = ALIGN(ctx->picinfo.pic_h, 64); in vdec_vp8_slice_get_pic_info()
129 ctx->picinfo.fb_sz[0] = inst->vpu.fb_sz[0]; in vdec_vp8_slice_get_pic_info()
130 ctx->picinfo.fb_sz[1] = inst->vpu.fb_sz[1]; in vdec_vp8_slice_get_pic_info()
132 inst->vsi->pic.pic_w = ctx->picinfo.pic_w; in vdec_vp8_slice_get_pic_info()
133 inst->vsi->pic.pic_h = ctx->picinfo.pic_h; in vdec_vp8_slice_get_pic_info()
134 inst->vsi->pic.buf_w = ctx->picinfo.buf_w; in vdec_vp8_slice_get_pic_info()
135 inst->vsi->pic.buf_h = ctx->picinfo.buf_h; in vdec_vp8_slice_get_pic_info()
[all …]
Dvdec_h264_req_if.c224 ctx->picinfo.buf_w = ALIGN(ctx->picinfo.pic_w, VCODEC_DEC_ALIGNED_64); in get_pic_info()
225 ctx->picinfo.buf_h = ALIGN(ctx->picinfo.pic_h, VCODEC_DEC_ALIGNED_64); in get_pic_info()
226 ctx->picinfo.fb_sz[0] = ctx->picinfo.buf_w * ctx->picinfo.buf_h; in get_pic_info()
227 ctx->picinfo.fb_sz[1] = ctx->picinfo.fb_sz[0] >> 1; in get_pic_info()
231 *pic = ctx->picinfo; in get_pic_info()
233 ctx->picinfo.pic_w, ctx->picinfo.pic_h, in get_pic_info()
234 ctx->picinfo.buf_w, ctx->picinfo.buf_h); in get_pic_info()
235 mtk_vdec_debug(inst->ctx, "Y/C(%d, %d)", ctx->picinfo.fb_sz[0], in get_pic_info()
236 ctx->picinfo.fb_sz[1]); in get_pic_info()
238 if (ctx->last_decoded_picinfo.pic_w != ctx->picinfo.pic_w || in get_pic_info()
[all …]
Dvdec_hevc_req_multi_if.c422 hevc_dpb_info[index].y_dma_addr + ctx->picinfo.fb_sz[0]; in vdec_hevc_fill_dpb_info()
684 data[0] = ctx->picinfo.pic_w; in vdec_hevc_slice_get_pic_info()
685 data[1] = ctx->picinfo.pic_h; in vdec_hevc_slice_get_pic_info()
689 ctx->picinfo.buf_w = ALIGN(ctx->picinfo.pic_w, VCODEC_DEC_ALIGNED_64); in vdec_hevc_slice_get_pic_info()
690 ctx->picinfo.buf_h = ALIGN(ctx->picinfo.pic_h, VCODEC_DEC_ALIGNED_64); in vdec_hevc_slice_get_pic_info()
691 ctx->picinfo.fb_sz[0] = inst->vpu.fb_sz[0]; in vdec_hevc_slice_get_pic_info()
692 ctx->picinfo.fb_sz[1] = inst->vpu.fb_sz[1]; in vdec_hevc_slice_get_pic_info()
697 ctx->picinfo.pic_w, ctx->picinfo.pic_h, in vdec_hevc_slice_get_pic_info()
698 ctx->picinfo.buf_w, ctx->picinfo.buf_h); in vdec_hevc_slice_get_pic_info()
699 mtk_vdec_debug(ctx, "Y/C(%d, %d)", ctx->picinfo.fb_sz[0], in vdec_hevc_slice_get_pic_info()
[all …]
Dvdec_h264_req_multi_if.c349 data[0] = ctx->picinfo.pic_w; in vdec_h264_slice_get_pic_info()
350 data[1] = ctx->picinfo.pic_h; in vdec_h264_slice_get_pic_info()
354 ctx->picinfo.buf_w = ALIGN(ctx->picinfo.pic_w, VCODEC_DEC_ALIGNED_64); in vdec_h264_slice_get_pic_info()
355 ctx->picinfo.buf_h = ALIGN(ctx->picinfo.pic_h, VCODEC_DEC_ALIGNED_64); in vdec_h264_slice_get_pic_info()
356 ctx->picinfo.fb_sz[0] = inst->vpu.fb_sz[0]; in vdec_h264_slice_get_pic_info()
357 ctx->picinfo.fb_sz[1] = inst->vpu.fb_sz[1]; in vdec_h264_slice_get_pic_info()
362 ctx->picinfo.pic_w, ctx->picinfo.pic_h, in vdec_h264_slice_get_pic_info()
363 ctx->picinfo.buf_w, ctx->picinfo.buf_h); in vdec_h264_slice_get_pic_info()
364 mtk_vdec_debug(ctx, "Y/C(%d, %d)", ctx->picinfo.fb_sz[0], in vdec_h264_slice_get_pic_info()
365 ctx->picinfo.fb_sz[1]); in vdec_h264_slice_get_pic_info()
[all …]
Dvdec_av1_req_lat_if.c1979 mtk_vdec_debug(ctx, "w %u h %u\n", ctx->picinfo.pic_w, ctx->picinfo.pic_h); in vdec_av1_slice_get_pic_info()
1981 data[0] = ctx->picinfo.pic_w; in vdec_av1_slice_get_pic_info()
1982 data[1] = ctx->picinfo.pic_h; in vdec_av1_slice_get_pic_info()
1986 ctx->picinfo.buf_w = ALIGN(ctx->picinfo.pic_w, VCODEC_DEC_ALIGNED_64); in vdec_av1_slice_get_pic_info()
1987 ctx->picinfo.buf_h = ALIGN(ctx->picinfo.pic_h, VCODEC_DEC_ALIGNED_64); in vdec_av1_slice_get_pic_info()
1988 ctx->picinfo.fb_sz[0] = instance->vpu.fb_sz[0]; in vdec_av1_slice_get_pic_info()
1989 ctx->picinfo.fb_sz[1] = instance->vpu.fb_sz[1]; in vdec_av1_slice_get_pic_info()
2006 cr->width = ctx->picinfo.pic_w; in vdec_av1_slice_get_crop_info()
2007 cr->height = ctx->picinfo.pic_h; in vdec_av1_slice_get_crop_info()
Dvdec_vp9_req_lat_if.c1932 mtk_vdec_debug(instance->ctx, "w %u h %u\n", ctx->picinfo.pic_w, ctx->picinfo.pic_h); in vdec_vp9_slice_get_pic_info()
1934 data[0] = ctx->picinfo.pic_w; in vdec_vp9_slice_get_pic_info()
1935 data[1] = ctx->picinfo.pic_h; in vdec_vp9_slice_get_pic_info()
1939 ctx->picinfo.buf_w = ALIGN(ctx->picinfo.pic_w, 64); in vdec_vp9_slice_get_pic_info()
1940 ctx->picinfo.buf_h = ALIGN(ctx->picinfo.pic_h, 64); in vdec_vp9_slice_get_pic_info()
1941 ctx->picinfo.fb_sz[0] = instance->vpu.fb_sz[0]; in vdec_vp9_slice_get_pic_info()
1942 ctx->picinfo.fb_sz[1] = instance->vpu.fb_sz[1]; in vdec_vp9_slice_get_pic_info()
Dvdec_h264_req_common.c90 ctx->picinfo.fb_sz[0]; in mtk_vdec_h264_fill_dpb_info()
/linux-6.12.1/drivers/media/platform/mediatek/vcodec/decoder/
Dmtk_vcodec_dec.c408 s->r.width = ctx->picinfo.pic_w; in vidioc_vdec_g_selection()
409 s->r.height = ctx->picinfo.pic_h; in vidioc_vdec_g_selection()
414 s->r.width = ctx->picinfo.buf_w; in vidioc_vdec_g_selection()
415 s->r.height = ctx->picinfo.buf_h; in vidioc_vdec_g_selection()
454 s->r.width = ctx->picinfo.pic_w; in vidioc_vdec_s_selection()
455 s->r.height = ctx->picinfo.pic_h; in vidioc_vdec_s_selection()
548 ctx->picinfo.pic_w = pix_mp->width; in vidioc_vdec_s_fmt()
549 ctx->picinfo.pic_h = pix_mp->height; in vidioc_vdec_s_fmt()
555 ret = vdec_if_get_param(ctx, GET_PARAM_PIC_INFO, &ctx->picinfo); in vidioc_vdec_s_fmt()
561 ctx->last_decoded_picinfo = ctx->picinfo; in vidioc_vdec_s_fmt()
[all …]
Dmtk_vcodec_dec_stateful.c252 if (ctx->last_decoded_picinfo.cap_fourcc != ctx->picinfo.cap_fourcc && in mtk_vdec_pic_info_update()
253 ctx->picinfo.cap_fourcc != 0) in mtk_vdec_pic_info_update()
254 mtk_vdec_update_fmt(ctx, ctx->picinfo.cap_fourcc); in mtk_vdec_pic_info_update()
256 if (ctx->last_decoded_picinfo.pic_w == ctx->picinfo.pic_w || in mtk_vdec_pic_info_update()
257 ctx->last_decoded_picinfo.pic_h == ctx->picinfo.pic_h) in mtk_vdec_pic_info_update()
262 ctx->last_decoded_picinfo.pic_h, ctx->picinfo.pic_w, in mtk_vdec_pic_info_update()
263 ctx->picinfo.pic_h, ctx->last_decoded_picinfo.buf_w, in mtk_vdec_pic_info_update()
308 pfb->base_y.size = ctx->picinfo.fb_sz[0]; in mtk_vdec_worker()
313 pfb->base_c.size = ctx->picinfo.fb_sz[1]; in mtk_vdec_worker()
498 if (vdec_if_get_param(ctx, GET_PARAM_PIC_INFO, &ctx->picinfo)) { in vb2ops_vdec_stateful_buf_queue()
[all …]
Dmtk_vcodec_dec_stateless.c431 ret = vdec_if_get_param(ctx, GET_PARAM_PIC_INFO, &ctx->picinfo); in mtk_vcodec_get_pic_info()
437 ctx->last_decoded_picinfo = ctx->picinfo; in mtk_vcodec_get_pic_info()
439 q_data->sizeimage[0] = ctx->picinfo.fb_sz[0]; in mtk_vcodec_get_pic_info()
440 q_data->bytesperline[0] = ctx->picinfo.buf_w * 5 / 4; in mtk_vcodec_get_pic_info()
442 q_data->sizeimage[1] = ctx->picinfo.fb_sz[1]; in mtk_vcodec_get_pic_info()
443 q_data->bytesperline[1] = ctx->picinfo.buf_w * 5 / 4; in mtk_vcodec_get_pic_info()
445 q_data->coded_width = ctx->picinfo.buf_w; in mtk_vcodec_get_pic_info()
446 q_data->coded_height = ctx->picinfo.buf_h; in mtk_vcodec_get_pic_info()
448 ctx->id, ctx->picinfo.buf_w, ctx->picinfo.buf_h, in mtk_vcodec_get_pic_info()
449 ctx->picinfo.pic_w, ctx->picinfo.pic_h, in mtk_vcodec_get_pic_info()
Dvdec_msg_queue.c303 vde_msg_queue_get_trans_size(ctx->picinfo.buf_w, in vdec_msg_queue_init()
304 ctx->picinfo.buf_h); in vdec_msg_queue_init()
Dmtk_vcodec_dec_drv.h192 struct vdec_pic_info picinfo; member
/linux-6.12.1/drivers/media/platform/mediatek/vcodec/common/
Dmtk_vcodec_dbgfs.c126 ctx->picinfo.pic_w, ctx->picinfo.pic_h, in mtk_vdec_dbgfs_read()
127 ctx->picinfo.buf_w, ctx->picinfo.buf_h); in mtk_vdec_dbgfs_read()