Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion drivers/video/video_mcux_smartdma.c
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,12 @@ static int nxp_video_sdma_get_format(const struct device *dev, struct video_form
if ((fmt->pixelformat != fmts[0].pixelformat) ||
(fmt->width != fmts[0].width_min) ||
(fmt->height != fmts[0].height_min)) {
return -ENOTSUP;
ret = video_set_format(config->sensor_dev, fmt);

if (ret < 0) {
LOG_ERR("Sensor device does not support RGB565");
return ret;
}
}

fmt->pitch = fmt->width * video_bits_per_pixel(fmt->pixelformat) / BITS_PER_BYTE;
Expand Down
2 changes: 2 additions & 0 deletions samples/drivers/video/capture/boards/frdm_mcxn236.conf
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
CONFIG_VIDEO_BUFFER_POOL_SZ_MAX=40000
CONFIG_VIDEO_FRAME_WIDTH=320
CONFIG_VIDEO_FRAME_HEIGHT=240