drivers/video: minor fix

Fix missing header for bool in imgsensor.h and FAR in video.c

Signed-off-by: Peter Bee <bijunda1@xiaomi.com>
This commit is contained in:
Peter Bee
2022-12-09 14:55:39 +08:00
committed by Xiang Xiao
parent 09814831b8
commit 77504aa1b5
2 changed files with 2 additions and 1 deletions

View File

@@ -1584,7 +1584,7 @@ static int validate_frame_setting(enum v4l2_buf_type type,
return g_video_data_ops->validate_frame_setting(nr_fmt, df, &di);
}
static size_t get_bufsize(video_format_t *vf)
static size_t get_bufsize(FAR video_format_t *vf)
{
size_t ret = vf->width * vf->height;
switch (vf->pixelformat)

View File

@@ -26,6 +26,7 @@
****************************************************************************/
#include <sys/types.h>
#include <stdbool.h>
/****************************************************************************
* Pre-processor Definitions