@@ -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 ) {
@@ -138,9 +138,9 @@ int main(void)
138
138
const struct video_format_cap * fcap = & caps .format_caps [i ];
139
139
/* fourcc to string */
140
140
LOG_INF (" %s width [%u; %u; %u] height [%u; %u; %u]" ,
141
- VIDEO_FOURCC_TO_STR (fcap -> pixelformat ),
142
- fcap -> width_min , fcap -> width_max , fcap -> width_step ,
143
- fcap -> height_min , fcap -> height_max , fcap -> height_step );
141
+ VIDEO_FOURCC_TO_STR (fcap -> pixelformat ),
142
+ fcap -> width_min , fcap -> width_max , fcap -> width_step ,
143
+ fcap -> height_min , fcap -> height_max , fcap -> height_step );
144
144
i ++ ;
145
145
}
146
146
@@ -173,20 +173,20 @@ int main(void)
173
173
174
174
if (!video_get_frmival (video_dev , & frmival )) {
175
175
LOG_INF ("- Default frame rate : %f fps" ,
176
- 1.0 * frmival .denominator / frmival .numerator );
176
+ 1.0 * frmival .denominator / frmival .numerator );
177
177
}
178
178
179
179
LOG_INF ("- Supported frame intervals for the default format:" );
180
180
memset (& fie , 0 , sizeof (fie ));
181
181
fie .format = & fmt ;
182
182
while (video_enum_frmival (video_dev , & fie ) == 0 ) {
183
183
if (fie .type == VIDEO_FRMIVAL_TYPE_DISCRETE ) {
184
- LOG_INF (" %u/%u " , fie .discrete .numerator , fie .discrete .denominator );
184
+ LOG_INF (" %u/%u" , fie .discrete .numerator , fie .discrete .denominator );
185
185
} else {
186
186
LOG_INF (" [min = %u/%u; max = %u/%u; step = %u/%u]" ,
187
- fie .stepwise .min .numerator , fie .stepwise .min .denominator ,
188
- fie .stepwise .max .numerator , fie .stepwise .max .denominator ,
189
- fie .stepwise .step .numerator , fie .stepwise .step .denominator );
187
+ fie .stepwise .min .numerator , fie .stepwise .min .denominator ,
188
+ fie .stepwise .max .numerator , fie .stepwise .max .denominator ,
189
+ fie .stepwise .step .numerator , fie .stepwise .step .denominator );
190
190
}
191
191
fie .index ++ ;
192
192
}
@@ -268,8 +268,8 @@ int main(void)
268
268
return 0 ;
269
269
}
270
270
271
- LOG_DBG ("Got frame %u! size: %u; timestamp %u ms" , frame ++ , vbuf -> bytesused ,
272
- vbuf -> timestamp );
271
+ LOG_DBG ("Got frame %u! size: %u; timestamp %u ms" ,
272
+ frame ++ , vbuf -> bytesused , vbuf -> timestamp );
273
273
274
274
#ifdef CONFIG_TEST
275
275
if (is_colorbar_ok (vbuf -> buffer , fmt )) {
0 commit comments