Lines Matching refs:userfmt
805 static void viacam_fmt_pre(struct v4l2_pix_format *userfmt, in viacam_fmt_pre() argument
808 *sensorfmt = *userfmt; in viacam_fmt_pre()
809 if (userfmt->width < QCIF_WIDTH || userfmt->height < QCIF_HEIGHT) { in viacam_fmt_pre()
810 userfmt->width = QCIF_WIDTH; in viacam_fmt_pre()
811 userfmt->height = QCIF_HEIGHT; in viacam_fmt_pre()
813 if (userfmt->width > VGA_WIDTH || userfmt->height > VGA_HEIGHT) { in viacam_fmt_pre()
814 userfmt->width = VGA_WIDTH; in viacam_fmt_pre()
815 userfmt->height = VGA_HEIGHT; in viacam_fmt_pre()
821 static void viacam_fmt_post(struct v4l2_pix_format *userfmt, in viacam_fmt_post() argument
824 struct via_format *f = via_find_format(userfmt->pixelformat); in viacam_fmt_post()
828 userfmt->pixelformat = sensorfmt->pixelformat; in viacam_fmt_post()
829 userfmt->field = sensorfmt->field; in viacam_fmt_post()
830 userfmt->bytesperline = 2 * userfmt->width; in viacam_fmt_post()
831 userfmt->sizeimage = userfmt->bytesperline * userfmt->height; in viacam_fmt_post()
832 userfmt->colorspace = sensorfmt->colorspace; in viacam_fmt_post()
833 userfmt->ycbcr_enc = sensorfmt->ycbcr_enc; in viacam_fmt_post()
834 userfmt->quantization = sensorfmt->quantization; in viacam_fmt_post()
835 userfmt->xfer_func = sensorfmt->xfer_func; in viacam_fmt_post()