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