Lines Matching defs:format
140 const struct uvc_format *format = NULL;
170 format = &stream->formats[i];
175 if (format == NULL)
178 for (i = 0; i < format->nframes; ++i) {
179 if (format->frames[i].bFrameIndex == ctrl->bFrameIndex) {
180 frame = &format->frames[i];
188 if (!(format->flags & UVC_FMT_FLAG_COMPRESSED) ||
203 if (!(format->flags & UVC_FMT_FLAG_COMPRESSED) &&
220 bandwidth = frame->wWidth * frame->wHeight / 8 * format->bpp;
335 * format and frame descriptors.
1341 if (stream->meta.format == V4L2_META_FMT_UVC)
2092 * retrieve the default format.
2094 * Some cameras (namely the Fuji Finepix) set the format and frame
2103 const struct uvc_format *format = NULL;
2160 * Check if the default format descriptor exists. Use the first
2161 * available format otherwise.
2164 format = &stream->formats[i-1];
2165 if (format->index == probe->bFormatIndex)
2169 if (format->nframes == 0) {
2171 "No frame descriptor found for the default format.\n");
2181 for (i = format->nframes; i > 0; --i) {
2182 frame = &format->frames[i-1];
2187 probe->bFormatIndex = format->index;
2190 stream->def_format = format;
2191 stream->cur_format = format;