Lines Matching refs:cur_fmt
286 struct vpu_format *cur_fmt; in vdec_g_fmt() local
289 cur_fmt = vpu_get_format(inst, f->type); in vdec_g_fmt()
291 pixmp->pixelformat = cur_fmt->pixfmt; in vdec_g_fmt()
292 pixmp->num_planes = cur_fmt->num_planes; in vdec_g_fmt()
293 pixmp->width = cur_fmt->width; in vdec_g_fmt()
294 pixmp->height = cur_fmt->height; in vdec_g_fmt()
295 pixmp->field = cur_fmt->field; in vdec_g_fmt()
296 pixmp->flags = cur_fmt->flags; in vdec_g_fmt()
298 pixmp->plane_fmt[i].bytesperline = cur_fmt->bytesperline[i]; in vdec_g_fmt()
299 pixmp->plane_fmt[i].sizeimage = cur_fmt->sizeimage[i]; in vdec_g_fmt()
338 struct vpu_format *cur_fmt; in vdec_s_fmt_common() local
356 cur_fmt = vpu_get_format(inst, f->type); in vdec_s_fmt_common()
358 if (cur_fmt->pixfmt != fmt->pixfmt) { in vdec_s_fmt_common()
363 cur_fmt->pixfmt = fmt->pixfmt; in vdec_s_fmt_common()
365 cur_fmt->num_planes = fmt->num_planes; in vdec_s_fmt_common()
366 cur_fmt->flags = fmt->flags; in vdec_s_fmt_common()
367 cur_fmt->width = pixmp->width; in vdec_s_fmt_common()
368 cur_fmt->height = pixmp->height; in vdec_s_fmt_common()
370 cur_fmt->sizeimage[i] = pixmp->plane_fmt[i].sizeimage; in vdec_s_fmt_common()
371 cur_fmt->bytesperline[i] = pixmp->plane_fmt[i].bytesperline; in vdec_s_fmt_common()
374 cur_fmt->field = pixmp->field; in vdec_s_fmt_common()
376 pixmp->num_planes = cur_fmt->num_planes; in vdec_s_fmt_common()
377 pixmp->width = cur_fmt->width; in vdec_s_fmt_common()
378 pixmp->height = cur_fmt->height; in vdec_s_fmt_common()
380 pixmp->plane_fmt[i].bytesperline = cur_fmt->bytesperline[i]; in vdec_s_fmt_common()
381 pixmp->plane_fmt[i].sizeimage = cur_fmt->sizeimage[i]; in vdec_s_fmt_common()
383 pixmp->field = cur_fmt->field; in vdec_s_fmt_common()
388 vdec->params.codec_format = cur_fmt->pixfmt; in vdec_s_fmt_common()
394 vdec->params.output_format = cur_fmt->pixfmt; in vdec_s_fmt_common()
397 inst->crop.width = cur_fmt->width; in vdec_s_fmt_common()
398 inst->crop.height = cur_fmt->height; in vdec_s_fmt_common()