Searched refs:ov2640_supported_win_sizes (Results 1 - 1 of 1) sorted by relevance

/linux-4.1.27/drivers/media/i2c/soc_camera/
H A Dov2640.c554 static const struct ov2640_win_size ov2640_supported_win_sizes[] = { variable in typeref:struct:ov2640_win_size
756 int i, default_size = ARRAY_SIZE(ov2640_supported_win_sizes) - 1; ov2640_select_win()
758 for (i = 0; i < ARRAY_SIZE(ov2640_supported_win_sizes); i++) { ov2640_select_win()
759 if (ov2640_supported_win_sizes[i].width >= *width && ov2640_select_win()
760 ov2640_supported_win_sizes[i].height >= *height) { ov2640_select_win()
761 *width = ov2640_supported_win_sizes[i].width; ov2640_select_win()
762 *height = ov2640_supported_win_sizes[i].height; ov2640_select_win()
763 return &ov2640_supported_win_sizes[i]; ov2640_select_win()
767 *width = ov2640_supported_win_sizes[default_size].width; ov2640_select_win()
768 *height = ov2640_supported_win_sizes[default_size].height; ov2640_select_win()
769 return &ov2640_supported_win_sizes[default_size]; ov2640_select_win()

Completed in 36 milliseconds