samples: drivers: video: capture: Add format config #152159
Annotations
1 error, 1 warning, and 6 notices
Run Compliance Tests
Process completed with exit code 1.
|
check-warns:
ClangFormat.txt#L1
See https://docs.zephyrproject.org/latest/contribute/guidelines.html#clang-format for more details.
You may want to run clang-format on this change:
- " current_pixel_format = %u, current_orientation = %u",
- capabilities.x_resolution, capabilities.y_resolution,
- capabilities.supported_pixel_formats, capabilities.current_pixel_format,
- capabilities.current_orientation);
+ " current_pixel_format = %u, current_orientation = %u",
+ capabilities.x_resolution, capabilities.y_resolution,
+ capabilities.supported_pixel_formats, capabilities.current_pixel_format,
+ capabilities.current_orientation);
File:samples/drivers/video/capture/src/main.c
Line:35
You may want to run clang-format on this change:
- (char)fcap->pixelformat, (char)(fcap->pixelformat >> 8),
- (char)(fcap->pixelformat >> 16), (char)(fcap->pixelformat >> 24),
- fcap->width_min, fcap->width_max, fcap->width_step, fcap->height_min,
- fcap->height_max, fcap->height_step);
+ (char)fcap->pixelformat, (char)(fcap->pixelformat >> 8),
+ (char)(fcap->pixelformat >> 16), (char)(fcap->pixelformat >> 24),
+ fcap->width_min, fcap->width_max, fcap->width_step, fcap->height_min,
+ fcap->height_max, fcap->height_step);
File:samples/drivers/video/capture/src/main.c
Line:116
You may want to run clang-format on this change:
- (char)(fmt.pixelformat >> 8), (char)(fmt.pixelformat >> 16),
- (char)(fmt.pixelformat >> 24), fmt.width, fmt.height);
+ (char)(fmt.pixelformat >> 8), (char)(fmt.pixelformat >> 16),
+ (char)(fmt.pixelformat >> 24), fmt.width, fmt.height);
File:samples/drivers/video/capture/src/main.c
Line:143
You may want to run clang-format on this change:
- 1.0 * frmival.denominator / frmival.numerator);
+ 1.0 * frmival.denominator / frmival.numerator);
File:samples/drivers/video/capture/src/main.c
Line:152
You may want to run clang-format on this change:
- fie.stepwise.min.numerator, fie.stepwise.min.denominator,
- fie.stepwise.max.numerator, fie.stepwise.max.denominator,
- fie.stepwise.step.numerator, fie.stepwise.step.denominator);
+ fie.stepwise.min.numerator, fie.stepwise.min.denominator,
+ fie.stepwise.max.numerator, fie.stepwise.max.denominator,
+ fie.stepwise.step.numerator, fie.stepwise.step.denominator);
File:samples/drivers/video/capture/src/main.c
Line:165
You may want to run clang-format on this change:
- vbuf->timestamp);
+ vbuf->timestamp);
File:samples/drivers/video/capture/src/main.c
Line:220
|
Run Compliance Tests:
samples/drivers/video/capture/src/main.c#L35
samples/drivers/video/capture/src/main.c:35
- " current_pixel_format = %u, current_orientation = %u",
- capabilities.x_resolution, capabilities.y_resolution,
- capabilities.supported_pixel_formats, capabilities.current_pixel_format,
- capabilities.current_orientation);
+ " current_pixel_format = %u, current_orientation = %u",
+ capabilities.x_resolution, capabilities.y_resolution,
+ capabilities.supported_pixel_formats, capabilities.current_pixel_format,
+ capabilities.current_orientation);
|
Run Compliance Tests:
samples/drivers/video/capture/src/main.c#L116
samples/drivers/video/capture/src/main.c:116
- (char)fcap->pixelformat, (char)(fcap->pixelformat >> 8),
- (char)(fcap->pixelformat >> 16), (char)(fcap->pixelformat >> 24),
- fcap->width_min, fcap->width_max, fcap->width_step, fcap->height_min,
- fcap->height_max, fcap->height_step);
+ (char)fcap->pixelformat, (char)(fcap->pixelformat >> 8),
+ (char)(fcap->pixelformat >> 16), (char)(fcap->pixelformat >> 24),
+ fcap->width_min, fcap->width_max, fcap->width_step, fcap->height_min,
+ fcap->height_max, fcap->height_step);
|
Run Compliance Tests:
samples/drivers/video/capture/src/main.c#L143
samples/drivers/video/capture/src/main.c:143
- (char)(fmt.pixelformat >> 8), (char)(fmt.pixelformat >> 16),
- (char)(fmt.pixelformat >> 24), fmt.width, fmt.height);
+ (char)(fmt.pixelformat >> 8), (char)(fmt.pixelformat >> 16),
+ (char)(fmt.pixelformat >> 24), fmt.width, fmt.height);
|
Run Compliance Tests:
samples/drivers/video/capture/src/main.c#L152
samples/drivers/video/capture/src/main.c:152
- 1.0 * frmival.denominator / frmival.numerator);
+ 1.0 * frmival.denominator / frmival.numerator);
|
Run Compliance Tests:
samples/drivers/video/capture/src/main.c#L165
samples/drivers/video/capture/src/main.c:165
- fie.stepwise.min.numerator, fie.stepwise.min.denominator,
- fie.stepwise.max.numerator, fie.stepwise.max.denominator,
- fie.stepwise.step.numerator, fie.stepwise.step.denominator);
+ fie.stepwise.min.numerator, fie.stepwise.min.denominator,
+ fie.stepwise.max.numerator, fie.stepwise.max.denominator,
+ fie.stepwise.step.numerator, fie.stepwise.step.denominator);
|
Run Compliance Tests:
samples/drivers/video/capture/src/main.c#L220
samples/drivers/video/capture/src/main.c:220
- vbuf->timestamp);
+ vbuf->timestamp);
|
Loading