@@ -37,10 +37,10 @@ static inline int display_setup(const struct device *const display_dev, const ui
37
37
38
38
LOG_INF ("- Capabilities:" );
39
39
LOG_INF (" x_resolution = %u, y_resolution = %u, supported_pixel_formats = %u"
40
- " current_pixel_format = %u, current_orientation = %u" ,
41
- capabilities .x_resolution , capabilities .y_resolution ,
42
- capabilities .supported_pixel_formats , capabilities .current_pixel_format ,
43
- capabilities .current_orientation );
40
+ " current_pixel_format = %u, current_orientation = %u" ,
41
+ capabilities .x_resolution , capabilities .y_resolution ,
42
+ capabilities .supported_pixel_formats , capabilities .current_pixel_format ,
43
+ capabilities .current_orientation );
44
44
45
45
/* Set display pixel format to match the one in use by the camera */
46
46
switch (pixfmt ) {
@@ -131,9 +131,9 @@ int main(void)
131
131
const struct video_format_cap * fcap = & caps .format_caps [i ];
132
132
/* fourcc to string */
133
133
LOG_INF (" %s width [%u; %u; %u] height [%u; %u; %u]" ,
134
- VIDEO_FOURCC_TO_STR (fcap -> pixelformat ),
135
- fcap -> width_min , fcap -> width_max , fcap -> width_step ,
136
- fcap -> height_min , fcap -> height_max , fcap -> height_step );
134
+ VIDEO_FOURCC_TO_STR (fcap -> pixelformat ),
135
+ fcap -> width_min , fcap -> width_max , fcap -> width_step ,
136
+ fcap -> height_min , fcap -> height_max , fcap -> height_step );
137
137
i ++ ;
138
138
}
139
139
@@ -167,20 +167,20 @@ int main(void)
167
167
168
168
if (!video_get_frmival (video_dev , & frmival )) {
169
169
LOG_INF ("- Default frame rate : %f fps" ,
170
- 1.0 * frmival .denominator / frmival .numerator );
170
+ 1.0 * frmival .denominator / frmival .numerator );
171
171
}
172
172
173
173
LOG_INF ("- Supported frame intervals for the default format:" );
174
174
memset (& fie , 0 , sizeof (fie ));
175
175
fie .format = & fmt ;
176
176
while (video_enum_frmival (video_dev , & fie ) == 0 ) {
177
177
if (fie .type == VIDEO_FRMIVAL_TYPE_DISCRETE ) {
178
- LOG_INF (" %u/%u " , fie .discrete .numerator , fie .discrete .denominator );
178
+ LOG_INF (" %u/%u" , fie .discrete .numerator , fie .discrete .denominator );
179
179
} else {
180
180
LOG_INF (" [min = %u/%u; max = %u/%u; step = %u/%u]" ,
181
- fie .stepwise .min .numerator , fie .stepwise .min .denominator ,
182
- fie .stepwise .max .numerator , fie .stepwise .max .denominator ,
183
- fie .stepwise .step .numerator , fie .stepwise .step .denominator );
181
+ fie .stepwise .min .numerator , fie .stepwise .min .denominator ,
182
+ fie .stepwise .max .numerator , fie .stepwise .max .denominator ,
183
+ fie .stepwise .step .numerator , fie .stepwise .step .denominator );
184
184
}
185
185
fie .index ++ ;
186
186
}
@@ -263,8 +263,8 @@ int main(void)
263
263
264
264
vbuf -> type = type ;
265
265
266
- LOG_DBG ("Got frame %u! size: %u; timestamp %u ms" , frame ++ , vbuf -> bytesused ,
267
- vbuf -> timestamp );
266
+ LOG_DBG ("Got frame %u! size: %u; timestamp %u ms" ,
267
+ frame ++ , vbuf -> bytesused , vbuf -> timestamp );
268
268
269
269
#ifdef CONFIG_TEST
270
270
if (is_colorbar_ok (vbuf -> buffer , fmt )) {
0 commit comments