Lines Matching refs:pixfmt
735 struct v4l2_pix_format *pixfmt) in vpfe_check_format() argument
742 vpfe_pix_fmt = vpfe_lookup_pix_format(pixfmt->pixelformat); in vpfe_check_format()
748 pixfmt->pixelformat = vpfe_dev->fmt.fmt.pix.pixelformat; in vpfe_check_format()
749 vpfe_pix_fmt = vpfe_lookup_pix_format(pixfmt->pixelformat); in vpfe_check_format()
765 pixfmt->pixelformat = vpfe_dev->fmt.fmt.pix.pixelformat; in vpfe_check_format()
770 vpfe_pix_fmt = vpfe_lookup_pix_format(pixfmt->pixelformat); in vpfe_check_format()
774 if (pixfmt->field == V4L2_FIELD_ANY) { in vpfe_check_format()
776 pixfmt->field = vpfe_dev->fmt.fmt.pix.field; in vpfe_check_format()
783 if (vpfe_dev->fmt.fmt.pix.field != pixfmt->field) { in vpfe_check_format()
788 switch (pixfmt->field) { in vpfe_check_format()
793 pixfmt->field = V4L2_FIELD_NONE; in vpfe_check_format()
797 pixfmt->field = V4L2_FIELD_INTERLACED; in vpfe_check_format()
802 pixfmt->field = vpfe_dev->fmt.fmt.pix.field; in vpfe_check_format()
808 if (pixfmt->field == V4L2_FIELD_INTERLACED || in vpfe_check_format()
809 pixfmt->field == V4L2_FIELD_SEQ_TB) in vpfe_check_format()
817 pixfmt->width, pixfmt->height, vpfe_pix_fmt->bpp); in vpfe_check_format()
819 pixfmt->width = clamp((pixfmt->width), min_width, max_width); in vpfe_check_format()
820 pixfmt->height = clamp((pixfmt->height), min_height, max_height); in vpfe_check_format()
823 if (pixfmt->field == V4L2_FIELD_INTERLACED) in vpfe_check_format()
824 pixfmt->height &= (~1); in vpfe_check_format()
829 pixfmt->bytesperline = (((pixfmt->width * vpfe_pix_fmt->bpp) + 31) in vpfe_check_format()
831 if (pixfmt->pixelformat == V4L2_PIX_FMT_NV12) in vpfe_check_format()
832 pixfmt->sizeimage = in vpfe_check_format()
833 pixfmt->bytesperline * pixfmt->height + in vpfe_check_format()
834 ((pixfmt->bytesperline * pixfmt->height) >> 1); in vpfe_check_format()
836 pixfmt->sizeimage = pixfmt->bytesperline * pixfmt->height; in vpfe_check_format()
839 pixfmt->width, pixfmt->height, vpfe_pix_fmt->bpp, in vpfe_check_format()
840 pixfmt->bytesperline, pixfmt->sizeimage); in vpfe_check_format()