Lines Matching refs:pixfmt
816 struct v4l2_pix_format *pixfmt) in vpfe_check_format() argument
823 vpfe_pix_fmt = vpfe_lookup_pix_format(pixfmt->pixelformat); in vpfe_check_format()
829 pixfmt->pixelformat = vpfe_dev->fmt.fmt.pix.pixelformat; in vpfe_check_format()
830 vpfe_pix_fmt = vpfe_lookup_pix_format(pixfmt->pixelformat); in vpfe_check_format()
846 pixfmt->pixelformat = vpfe_dev->fmt.fmt.pix.pixelformat; in vpfe_check_format()
851 vpfe_pix_fmt = vpfe_lookup_pix_format(pixfmt->pixelformat); in vpfe_check_format()
855 if (pixfmt->field == V4L2_FIELD_ANY) { in vpfe_check_format()
857 pixfmt->field = vpfe_dev->fmt.fmt.pix.field; in vpfe_check_format()
864 if (vpfe_dev->fmt.fmt.pix.field != pixfmt->field) { in vpfe_check_format()
869 switch (pixfmt->field) { in vpfe_check_format()
874 pixfmt->field = V4L2_FIELD_NONE; in vpfe_check_format()
878 pixfmt->field = V4L2_FIELD_INTERLACED; in vpfe_check_format()
883 pixfmt->field = vpfe_dev->fmt.fmt.pix.field; in vpfe_check_format()
889 if (pixfmt->field == V4L2_FIELD_INTERLACED || in vpfe_check_format()
890 pixfmt->field == V4L2_FIELD_SEQ_TB) in vpfe_check_format()
898 pixfmt->width, pixfmt->height, vpfe_pix_fmt->bpp); in vpfe_check_format()
900 pixfmt->width = clamp((pixfmt->width), min_width, max_width); in vpfe_check_format()
901 pixfmt->height = clamp((pixfmt->height), min_height, max_height); in vpfe_check_format()
904 if (pixfmt->field == V4L2_FIELD_INTERLACED) in vpfe_check_format()
905 pixfmt->height &= (~1); in vpfe_check_format()
910 pixfmt->bytesperline = (((pixfmt->width * vpfe_pix_fmt->bpp) + 31) in vpfe_check_format()
912 if (pixfmt->pixelformat == V4L2_PIX_FMT_NV12) in vpfe_check_format()
913 pixfmt->sizeimage = in vpfe_check_format()
914 pixfmt->bytesperline * pixfmt->height + in vpfe_check_format()
915 ((pixfmt->bytesperline * pixfmt->height) >> 1); in vpfe_check_format()
917 pixfmt->sizeimage = pixfmt->bytesperline * pixfmt->height; in vpfe_check_format()
921 pixfmt->width, pixfmt->height, vpfe_pix_fmt->bpp, in vpfe_check_format()
922 pixfmt->bytesperline, pixfmt->sizeimage); in vpfe_check_format()