Lines Matching refs:cur_fmt

314 	struct vpu_format *cur_fmt;  in vdec_g_fmt()  local
318 cur_fmt = vpu_get_format(inst, f->type); in vdec_g_fmt()
320 pixmp->pixelformat = cur_fmt->pixfmt; in vdec_g_fmt()
321 pixmp->num_planes = cur_fmt->mem_planes; in vdec_g_fmt()
322 pixmp->width = cur_fmt->width; in vdec_g_fmt()
323 pixmp->height = cur_fmt->height; in vdec_g_fmt()
324 pixmp->field = cur_fmt->field; in vdec_g_fmt()
325 pixmp->flags = cur_fmt->flags; in vdec_g_fmt()
327 pixmp->plane_fmt[i].bytesperline = cur_fmt->bytesperline[i]; in vdec_g_fmt()
328 pixmp->plane_fmt[i].sizeimage = vpu_get_fmt_plane_size(cur_fmt, i); in vdec_g_fmt()
377 struct vpu_format *cur_fmt; in vdec_s_fmt_common() local
394 cur_fmt = vpu_get_format(inst, f->type); in vdec_s_fmt_common()
396 if (cur_fmt->pixfmt != fmt.pixfmt) { in vdec_s_fmt_common()
402 memcpy(cur_fmt, &fmt, sizeof(*cur_fmt)); in vdec_s_fmt_common()
404 if (vpu_helper_match_format(inst, f->type, cur_fmt->pixfmt, pixmp->pixelformat)) { in vdec_s_fmt_common()
405 cur_fmt->pixfmt = fmt.pixfmt; in vdec_s_fmt_common()
406 cur_fmt->mem_planes = fmt.mem_planes; in vdec_s_fmt_common()
408 pixmp->pixelformat = cur_fmt->pixfmt; in vdec_s_fmt_common()
409 pixmp->num_planes = cur_fmt->mem_planes; in vdec_s_fmt_common()
410 pixmp->width = cur_fmt->width; in vdec_s_fmt_common()
411 pixmp->height = cur_fmt->height; in vdec_s_fmt_common()
413 pixmp->plane_fmt[i].bytesperline = cur_fmt->bytesperline[i]; in vdec_s_fmt_common()
414 pixmp->plane_fmt[i].sizeimage = vpu_get_fmt_plane_size(cur_fmt, i); in vdec_s_fmt_common()
416 pixmp->field = cur_fmt->field; in vdec_s_fmt_common()
421 vdec->params.codec_format = cur_fmt->pixfmt; in vdec_s_fmt_common()
427 vdec->params.output_format = cur_fmt->pixfmt; in vdec_s_fmt_common()
430 inst->crop.width = cur_fmt->width; in vdec_s_fmt_common()
431 inst->crop.height = cur_fmt->height; in vdec_s_fmt_common()
714 struct vpu_format *cur_fmt; in vdec_buf_done() local
737 cur_fmt = vpu_get_format(inst, inst->cap_format.type); in vdec_buf_done()
747 vb2_set_plane_payload(&vbuf->vb2_buf, i, vpu_get_fmt_plane_size(cur_fmt, i)); in vdec_buf_done()
748 vbuf->field = cur_fmt->field; in vdec_buf_done()