Lines Matching refs:cur_fmt

369 	struct vpu_format *cur_fmt;  in vdec_g_fmt()  local
373 cur_fmt = vpu_get_format(inst, f->type); in vdec_g_fmt()
375 pixmp->pixelformat = cur_fmt->pixfmt; in vdec_g_fmt()
376 pixmp->num_planes = cur_fmt->mem_planes; in vdec_g_fmt()
377 pixmp->width = cur_fmt->width; in vdec_g_fmt()
378 pixmp->height = cur_fmt->height; in vdec_g_fmt()
379 pixmp->field = cur_fmt->field; in vdec_g_fmt()
380 pixmp->flags = cur_fmt->flags; in vdec_g_fmt()
382 pixmp->plane_fmt[i].bytesperline = cur_fmt->bytesperline[i]; in vdec_g_fmt()
383 pixmp->plane_fmt[i].sizeimage = vpu_get_fmt_plane_size(cur_fmt, i); in vdec_g_fmt()
432 struct vpu_format *cur_fmt; in vdec_s_fmt_common() local
449 cur_fmt = vpu_get_format(inst, f->type); in vdec_s_fmt_common()
451 if (cur_fmt->pixfmt != fmt.pixfmt) { in vdec_s_fmt_common()
457 memcpy(cur_fmt, &fmt, sizeof(*cur_fmt)); in vdec_s_fmt_common()
459 if (vpu_helper_match_format(inst, f->type, cur_fmt->pixfmt, pixmp->pixelformat)) { in vdec_s_fmt_common()
460 cur_fmt->pixfmt = fmt.pixfmt; in vdec_s_fmt_common()
461 cur_fmt->mem_planes = fmt.mem_planes; in vdec_s_fmt_common()
463 pixmp->pixelformat = cur_fmt->pixfmt; in vdec_s_fmt_common()
464 pixmp->num_planes = cur_fmt->mem_planes; in vdec_s_fmt_common()
465 pixmp->width = cur_fmt->width; in vdec_s_fmt_common()
466 pixmp->height = cur_fmt->height; in vdec_s_fmt_common()
468 pixmp->plane_fmt[i].bytesperline = cur_fmt->bytesperline[i]; in vdec_s_fmt_common()
469 pixmp->plane_fmt[i].sizeimage = vpu_get_fmt_plane_size(cur_fmt, i); in vdec_s_fmt_common()
471 pixmp->field = cur_fmt->field; in vdec_s_fmt_common()
476 vdec->params.codec_format = cur_fmt->pixfmt; in vdec_s_fmt_common()
482 vdec->params.output_format = cur_fmt->pixfmt; in vdec_s_fmt_common()
485 inst->crop.width = cur_fmt->width; in vdec_s_fmt_common()
486 inst->crop.height = cur_fmt->height; in vdec_s_fmt_common()
746 struct vpu_format *cur_fmt; in vdec_frame_decoded() local
748 cur_fmt = vpu_get_format(inst, inst->cap_format.type); in vdec_frame_decoded()
752 i, vpu_get_fmt_plane_size(cur_fmt, i)); in vdec_frame_decoded()
753 vbuf->field = cur_fmt->field; in vdec_frame_decoded()
784 struct vpu_format *cur_fmt; in vdec_buf_done() local
807 cur_fmt = vpu_get_format(inst, inst->cap_format.type); in vdec_buf_done()
821 vb2_set_plane_payload(&vbuf->vb2_buf, i, vpu_get_fmt_plane_size(cur_fmt, i)); in vdec_buf_done()
822 vbuf->field = cur_fmt->field; in vdec_buf_done()