/linux-6.6.21/drivers/media/platform/mediatek/vcodec/decoder/vdec/ |
D | vdec_vp8_req_if.c | 123 data[0] = ctx->picinfo.pic_w; in vdec_vp8_slice_get_pic_info() 124 data[1] = ctx->picinfo.pic_h; in vdec_vp8_slice_get_pic_info() 128 ctx->picinfo.buf_w = ALIGN(ctx->picinfo.pic_w, 64); in vdec_vp8_slice_get_pic_info() 129 ctx->picinfo.buf_h = ALIGN(ctx->picinfo.pic_h, 64); in vdec_vp8_slice_get_pic_info() 130 ctx->picinfo.fb_sz[0] = inst->vpu.fb_sz[0]; in vdec_vp8_slice_get_pic_info() 131 ctx->picinfo.fb_sz[1] = inst->vpu.fb_sz[1]; in vdec_vp8_slice_get_pic_info() 133 inst->vsi->pic.pic_w = ctx->picinfo.pic_w; in vdec_vp8_slice_get_pic_info() 134 inst->vsi->pic.pic_h = ctx->picinfo.pic_h; in vdec_vp8_slice_get_pic_info() 135 inst->vsi->pic.buf_w = ctx->picinfo.buf_w; in vdec_vp8_slice_get_pic_info() 136 inst->vsi->pic.buf_h = ctx->picinfo.buf_h; in vdec_vp8_slice_get_pic_info() [all …]
|
D | vdec_h264_req_if.c | 224 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 …]
|
D | vdec_hevc_req_multi_if.c | 422 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 …]
|
D | vdec_h264_req_multi_if.c | 349 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 …]
|
D | vdec_av1_req_lat_if.c | 1971 mtk_vdec_debug(ctx, "w %u h %u\n", ctx->picinfo.pic_w, ctx->picinfo.pic_h); in vdec_av1_slice_get_pic_info() 1973 data[0] = ctx->picinfo.pic_w; in vdec_av1_slice_get_pic_info() 1974 data[1] = ctx->picinfo.pic_h; in vdec_av1_slice_get_pic_info() 1978 ctx->picinfo.buf_w = ALIGN(ctx->picinfo.pic_w, VCODEC_DEC_ALIGNED_64); in vdec_av1_slice_get_pic_info() 1979 ctx->picinfo.buf_h = ALIGN(ctx->picinfo.pic_h, VCODEC_DEC_ALIGNED_64); in vdec_av1_slice_get_pic_info() 1980 ctx->picinfo.fb_sz[0] = instance->vpu.fb_sz[0]; in vdec_av1_slice_get_pic_info() 1981 ctx->picinfo.fb_sz[1] = instance->vpu.fb_sz[1]; in vdec_av1_slice_get_pic_info() 1998 cr->width = ctx->picinfo.pic_w; in vdec_av1_slice_get_crop_info() 1999 cr->height = ctx->picinfo.pic_h; in vdec_av1_slice_get_crop_info()
|
D | vdec_vp9_req_lat_if.c | 1938 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() 1940 data[0] = ctx->picinfo.pic_w; in vdec_vp9_slice_get_pic_info() 1941 data[1] = ctx->picinfo.pic_h; in vdec_vp9_slice_get_pic_info() 1945 ctx->picinfo.buf_w = ALIGN(ctx->picinfo.pic_w, 64); in vdec_vp9_slice_get_pic_info() 1946 ctx->picinfo.buf_h = ALIGN(ctx->picinfo.pic_h, 64); in vdec_vp9_slice_get_pic_info() 1947 ctx->picinfo.fb_sz[0] = instance->vpu.fb_sz[0]; in vdec_vp9_slice_get_pic_info() 1948 ctx->picinfo.fb_sz[1] = instance->vpu.fb_sz[1]; in vdec_vp9_slice_get_pic_info()
|
D | vdec_h264_req_common.c | 90 ctx->picinfo.fb_sz[0]; in mtk_vdec_h264_fill_dpb_info()
|
/linux-6.6.21/drivers/media/platform/mediatek/vcodec/decoder/ |
D | mtk_vcodec_dec.c | 382 s->r.width = ctx->picinfo.pic_w; in vidioc_vdec_g_selection() 383 s->r.height = ctx->picinfo.pic_h; in vidioc_vdec_g_selection() 388 s->r.width = ctx->picinfo.buf_w; in vidioc_vdec_g_selection() 389 s->r.height = ctx->picinfo.buf_h; in vidioc_vdec_g_selection() 428 s->r.width = ctx->picinfo.pic_w; in vidioc_vdec_s_selection() 429 s->r.height = ctx->picinfo.pic_h; in vidioc_vdec_s_selection() 522 ctx->picinfo.pic_w = pix_mp->width; in vidioc_vdec_s_fmt() 523 ctx->picinfo.pic_h = pix_mp->height; in vidioc_vdec_s_fmt() 529 ret = vdec_if_get_param(ctx, GET_PARAM_PIC_INFO, &ctx->picinfo); in vidioc_vdec_s_fmt() 535 ctx->last_decoded_picinfo = ctx->picinfo; in vidioc_vdec_s_fmt() [all …]
|
D | mtk_vcodec_dec_stateful.c | 252 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 …]
|
D | mtk_vcodec_dec_stateless.c | 402 ret = vdec_if_get_param(ctx, GET_PARAM_PIC_INFO, &ctx->picinfo); in mtk_vcodec_get_pic_info() 408 ctx->last_decoded_picinfo = ctx->picinfo; in mtk_vcodec_get_pic_info() 410 q_data->sizeimage[0] = ctx->picinfo.fb_sz[0]; in mtk_vcodec_get_pic_info() 411 q_data->bytesperline[0] = ctx->picinfo.buf_w * 5 / 4; in mtk_vcodec_get_pic_info() 413 q_data->sizeimage[1] = ctx->picinfo.fb_sz[1]; in mtk_vcodec_get_pic_info() 414 q_data->bytesperline[1] = ctx->picinfo.buf_w * 5 / 4; in mtk_vcodec_get_pic_info() 416 q_data->coded_width = ctx->picinfo.buf_w; in mtk_vcodec_get_pic_info() 417 q_data->coded_height = ctx->picinfo.buf_h; in mtk_vcodec_get_pic_info() 419 ctx->id, ctx->picinfo.buf_w, ctx->picinfo.buf_h, in mtk_vcodec_get_pic_info() 420 ctx->picinfo.pic_w, ctx->picinfo.pic_h, in mtk_vcodec_get_pic_info()
|
D | vdec_msg_queue.c | 303 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()
|
D | mtk_vcodec_dec_drv.h | 182 struct vdec_pic_info picinfo; member
|
/linux-6.6.21/drivers/media/platform/mediatek/vcodec/common/ |
D | mtk_vcodec_dbgfs.c | 126 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()
|