Lines Matching refs:pixfmt
819 struct v4l2_pix_format *pixfmt) in vpfe_check_format() argument
826 vpfe_pix_fmt = vpfe_lookup_pix_format(pixfmt->pixelformat); in vpfe_check_format()
832 pixfmt->pixelformat = vpfe_dev->fmt.fmt.pix.pixelformat; in vpfe_check_format()
833 vpfe_pix_fmt = vpfe_lookup_pix_format(pixfmt->pixelformat); in vpfe_check_format()
849 pixfmt->pixelformat = vpfe_dev->fmt.fmt.pix.pixelformat; in vpfe_check_format()
854 vpfe_pix_fmt = vpfe_lookup_pix_format(pixfmt->pixelformat); in vpfe_check_format()
858 if (pixfmt->field == V4L2_FIELD_ANY) { in vpfe_check_format()
860 pixfmt->field = vpfe_dev->fmt.fmt.pix.field; in vpfe_check_format()
867 if (vpfe_dev->fmt.fmt.pix.field != pixfmt->field) { in vpfe_check_format()
872 switch (pixfmt->field) { in vpfe_check_format()
877 pixfmt->field = V4L2_FIELD_NONE; in vpfe_check_format()
881 pixfmt->field = V4L2_FIELD_INTERLACED; in vpfe_check_format()
886 pixfmt->field = vpfe_dev->fmt.fmt.pix.field; in vpfe_check_format()
892 if (pixfmt->field == V4L2_FIELD_INTERLACED || in vpfe_check_format()
893 pixfmt->field == V4L2_FIELD_SEQ_TB) in vpfe_check_format()
901 pixfmt->width, pixfmt->height, vpfe_pix_fmt->bpp); in vpfe_check_format()
903 pixfmt->width = clamp((pixfmt->width), min_width, max_width); in vpfe_check_format()
904 pixfmt->height = clamp((pixfmt->height), min_height, max_height); in vpfe_check_format()
907 if (pixfmt->field == V4L2_FIELD_INTERLACED) in vpfe_check_format()
908 pixfmt->height &= (~1); in vpfe_check_format()
913 pixfmt->bytesperline = (((pixfmt->width * vpfe_pix_fmt->bpp) + 31) in vpfe_check_format()
915 if (pixfmt->pixelformat == V4L2_PIX_FMT_NV12) in vpfe_check_format()
916 pixfmt->sizeimage = in vpfe_check_format()
917 pixfmt->bytesperline * pixfmt->height + in vpfe_check_format()
918 ((pixfmt->bytesperline * pixfmt->height) >> 1); in vpfe_check_format()
920 pixfmt->sizeimage = pixfmt->bytesperline * pixfmt->height; in vpfe_check_format()
924 pixfmt->width, pixfmt->height, vpfe_pix_fmt->bpp, in vpfe_check_format()
925 pixfmt->bytesperline, pixfmt->sizeimage); in vpfe_check_format()