Lines Matching refs:format

79 	if (video->rwpf->fmtinfo->mbus != fmt.format.code ||
80 video->rwpf->format.height != fmt.format.height ||
81 video->rwpf->format.width != fmt.format.width)
105 * equivalent. This selects the format older userspace applications want
106 * while still exposing the new format.
116 * Retrieve format information and select the default format if the
117 * requested format isn't supported.
192 const struct v4l2_mbus_framefmt *format;
197 * Partitions are computed on the size before rotation, use the format
200 format = vsp1_entity_get_pad_format(&pipe->output->entity,
207 window.width = format->width;
218 modulus = format->width % div_size;
256 const struct v4l2_mbus_framefmt *format;
262 * Partitions are computed on the size before rotation, use the format
265 format = vsp1_entity_get_pad_format(&pipe->output->entity,
268 div_size = format->width;
287 pipe->partitions = DIV_ROUND_UP(format->width, div_size);
713 const struct v4l2_pix_format_mplane *format = &video->rwpf->format;
717 if (*nplanes != format->num_planes)
721 if (sizes[i] < format->plane_fmt[i].sizeimage)
726 *nplanes = format->num_planes;
728 for (i = 0; i < format->num_planes; ++i)
729 sizes[i] = format->plane_fmt[i].sizeimage;
739 const struct v4l2_pix_format_mplane *format = &video->rwpf->format;
742 if (vb->num_planes < format->num_planes)
748 if (vb2_plane_size(vb, i) < format->plane_fmt[i].sizeimage)
968 vsp1_video_get_format(struct file *file, void *fh, struct v4l2_format *format)
973 if (format->type != video->queue.type)
977 format->fmt.pix_mp = video->rwpf->format;
984 vsp1_video_try_format(struct file *file, void *fh, struct v4l2_format *format)
989 if (format->type != video->queue.type)
992 return __vsp1_video_try_format(video, &format->fmt.pix_mp, NULL);
996 vsp1_video_set_format(struct file *file, void *fh, struct v4l2_format *format)
1003 if (format->type != video->queue.type)
1006 ret = __vsp1_video_try_format(video, &format->fmt.pix_mp, &info);
1017 video->rwpf->format = format->fmt.pix_mp;
1059 * Verify that the configured format matches the output of the connected
1274 /* ... and the format ... */
1275 rwpf->format.pixelformat = VSP1_VIDEO_DEF_FORMAT;
1276 rwpf->format.width = VSP1_VIDEO_DEF_WIDTH;
1277 rwpf->format.height = VSP1_VIDEO_DEF_HEIGHT;
1278 __vsp1_video_try_format(video, &rwpf->format, &rwpf->fmtinfo);