Lines Matching refs:format

540 	if (V4L2_FIELD_HAS_BOTH(vin->format.field))
567 rvin_write(vin, vin->format.width - 1, VNEPPOC_REG);
569 if (V4L2_FIELD_HAS_BOTH(vin->format.field))
570 rvin_write(vin, vin->format.height / 2 - 1, VNELPOC_REG);
572 rvin_write(vin, vin->format.height - 1, VNELPOC_REG);
577 vin->crop.top, ys, xs, vin->format.width, vin->format.height,
596 fmt = rvin_format_from_pixel(vin, vin->format.pixelformat);
597 stride = vin->format.bytesperline / fmt->bpp;
599 /* For RAW8 format bpp is 1, but the hardware process RAW8
600 * format in 2 pixel unit hence configure VNIS_REG as stride / 2.
602 switch (vin->format.pixelformat) {
625 switch (vin->format.field) {
635 /* Use BT if video standard can be read and is 60 Hz format */
734 * Output format
736 switch (vin->format.pixelformat) {
740 ALIGN(vin->format.bytesperline * vin->format.height,
742 dmr = vin->format.pixelformat == V4L2_PIX_FMT_NV12 ?
778 vin->format.pixelformat);
836 if (vin->format.field == V4L2_FIELD_ALTERNATE) {
843 return vin->format.field;
852 fmt = rvin_format_from_pixel(vin, vin->format.pixelformat);
859 offsety = vin->compose.top * vin->format.bytesperline;
895 switch (vin->format.pixelformat) {
899 vin->format.sizeimage / 4;
903 vin->format.sizeimage / 2;
918 V4L2_FIELD_IS_SEQUENTIAL(vin->format.field) ?
1095 return sizes[0] < vin->format.sizeimage ? -EINVAL : 0;
1098 sizes[0] = vin->format.sizeimage;
1106 unsigned long size = vin->format.sizeimage;
1143 switch (fmt.format.code) {
1151 if (vin->format.pixelformat != V4L2_PIX_FMT_SBGGR8)
1155 if (vin->format.pixelformat != V4L2_PIX_FMT_SGBRG8)
1159 if (vin->format.pixelformat != V4L2_PIX_FMT_SGRBG8)
1163 if (vin->format.pixelformat != V4L2_PIX_FMT_SRGGB8)
1169 vin->mbus_code = fmt.format.code;
1171 switch (fmt.format.field) {
1183 switch (vin->format.field) {
1195 fmt.format.height *= 2;
1205 if (fmt.format.width != vin->format.width ||
1206 fmt.format.height != vin->format.height ||
1207 fmt.format.code != vin->mbus_code)
1274 vin->scratch = dma_alloc_coherent(vin->dev, vin->format.sizeimage,
1305 dma_free_coherent(vin->dev, vin->format.sizeimage, vin->scratch,
1358 dma_free_coherent(vin->dev, vin->format.sizeimage, vin->scratch,
1482 switch (vin->format.pixelformat) {