Lines Matching full:formats
110 /* Preferred pixel formats arranged from the most to the least desired.
113 * conversion between the camera supported formats, and formats that are
116 * contain only those formats, for which converters are implemented. Generally
118 * only as far as conversion speed is concerned. So, formats with the fastest
166 * is that when the camera service enumerates all pixel formats for all cameras
169 * formats, contained in _preferred_formats array against enumerated pixel
170 * formats to pick the first format that match.
173 * formats - Array containing list of pixel formats, supported by the camera
175 * size - Number of elements in the 'formats' array.
180 _get_format_index(uint32_t fmt, QemuPixelFormat* formats, int size)
183 for (f = 0; f < size && formats[f].format != fmt; f++);
656 /* Enumerates pixel formats, supported by the device.
657 * Note that this routine will enumerate only raw (uncompressed) formats.
660 * fmts - Upon success contains an array of supported pixel formats. The size of
676 /* Calculate number of supported formats. */
693 /* Allocate, and initialize array for enumerated formats. */
742 * The information collected in this routine contains list of pixel formats,
756 QemuPixelFormat* formats = NULL;
757 int num_pix_fmts = _camera_device_enum_pixel_formats(cd, &formats);
762 /* Lets see if camera supports preferred formats */
764 chosen = _get_format_index(_preferred_formats[f], formats, num_pix_fmts);
770 /* Camera doesn't support any of the chosen formats. Then it doesn't
777 cis->pixel_format = formats[chosen].format;
778 cis->frame_sizes_num = formats[chosen].dim_num;
780 cis->frame_sizes = formats[chosen].dims;
781 formats[chosen].dims = NULL;
785 _qemu_pixel_format_free(formats + f);
787 free(formats);