Lines Matching refs:pixfmt

397 	if (cfg->pixfmt == PIXFMT_NV12) {  in vpbe_set_osd_display_params()
419 struct v4l2_pix_format *pixfmt = &layer->pix_fmt; in vpbe_disp_calculate_scale_factor() local
447 cfg->xsize = pixfmt->width; in vpbe_disp_calculate_scale_factor()
448 cfg->ysize = pixfmt->height; in vpbe_disp_calculate_scale_factor()
454 if (pixfmt->width < expected_xsize) { in vpbe_disp_calculate_scale_factor()
455 h_scale = vpbe_dev->current_timings.xres / pixfmt->width; in vpbe_disp_calculate_scale_factor()
486 if (pixfmt->height < expected_ysize) { in vpbe_disp_calculate_scale_factor()
487 v_scale = expected_ysize / pixfmt->height; in vpbe_disp_calculate_scale_factor()
564 struct v4l2_pix_format *pixfmt, int check) in vpbe_try_format() argument
573 if ((pixfmt->pixelformat != V4L2_PIX_FMT_UYVY) && in vpbe_try_format()
574 (pixfmt->pixelformat != V4L2_PIX_FMT_NV12)) in vpbe_try_format()
576 pixfmt->pixelformat = V4L2_PIX_FMT_UYVY; in vpbe_try_format()
579 if ((pixfmt->field != V4L2_FIELD_INTERLACED) && in vpbe_try_format()
580 (pixfmt->field != V4L2_FIELD_NONE)) { in vpbe_try_format()
582 pixfmt->field = V4L2_FIELD_INTERLACED; in vpbe_try_format()
584 pixfmt->field = V4L2_FIELD_NONE; in vpbe_try_format()
587 if (pixfmt->field == V4L2_FIELD_INTERLACED) in vpbe_try_format()
590 if (pixfmt->pixelformat == V4L2_PIX_FMT_NV12) in vpbe_try_format()
600 if (!pixfmt->width || (pixfmt->width < min_width) || in vpbe_try_format()
601 (pixfmt->width > max_width)) { in vpbe_try_format()
602 pixfmt->width = vpbe_dev->current_timings.xres; in vpbe_try_format()
605 if (!pixfmt->height || (pixfmt->height < min_height) || in vpbe_try_format()
606 (pixfmt->height > max_height)) { in vpbe_try_format()
607 pixfmt->height = vpbe_dev->current_timings.yres; in vpbe_try_format()
610 if (pixfmt->bytesperline < (pixfmt->width * bpp)) in vpbe_try_format()
611 pixfmt->bytesperline = pixfmt->width * bpp; in vpbe_try_format()
614 pixfmt->bytesperline = ((pixfmt->width * bpp + 31) & ~31); in vpbe_try_format()
616 if (pixfmt->pixelformat == V4L2_PIX_FMT_NV12) in vpbe_try_format()
617 pixfmt->sizeimage = pixfmt->bytesperline * pixfmt->height + in vpbe_try_format()
618 (pixfmt->bytesperline * pixfmt->height >> 1); in vpbe_try_format()
620 pixfmt->sizeimage = pixfmt->bytesperline * pixfmt->height; in vpbe_try_format()
813 struct v4l2_pix_format *pixfmt = &fmt->fmt.pix; in vpbe_display_s_fmt() local
829 ret = vpbe_try_format(disp_dev, pixfmt, 1); in vpbe_display_s_fmt()
836 layer->pix_fmt = *pixfmt; in vpbe_display_s_fmt()
837 if (pixfmt->pixelformat == V4L2_PIX_FMT_NV12) { in vpbe_display_s_fmt()
857 cfg->xsize = pixfmt->width; in vpbe_display_s_fmt()
858 cfg->ysize = pixfmt->height; in vpbe_display_s_fmt()
859 cfg->line_length = pixfmt->bytesperline; in vpbe_display_s_fmt()
864 if (V4L2_PIX_FMT_UYVY == pixfmt->pixelformat) in vpbe_display_s_fmt()
865 cfg->pixfmt = PIXFMT_YCBCRI; in vpbe_display_s_fmt()
868 if (V4L2_PIX_FMT_NV12 == pixfmt->pixelformat) { in vpbe_display_s_fmt()
870 cfg->pixfmt = PIXFMT_NV12; in vpbe_display_s_fmt()
873 otherlayer->layer_info.config.pixfmt = PIXFMT_NV12; in vpbe_display_s_fmt()
898 struct v4l2_pix_format *pixfmt = &fmt->fmt.pix; in vpbe_display_try_fmt() local
908 return vpbe_try_format(disp_dev, pixfmt, 0); in vpbe_display_try_fmt()
1201 if (cfg->pixfmt == PIXFMT_NV12) { in vpbe_display_release()