From 81c8f902b62e1e677899392ab366122902e5346e Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Sat, 13 Apr 2024 01:11:24 +0800 Subject: [PATCH] video: Move video_format_s from video.h to v4l2_cap.c since it is only used in v4l2_cap.c. Signed-off-by: Xiang Xiao --- drivers/video/v4l2_cap.c | 9 +++++++++ include/nuttx/video/video.h | 9 --------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/video/v4l2_cap.c b/drivers/video/v4l2_cap.c index 0c62684274..2e24d0ecaf 100644 --- a/drivers/video/v4l2_cap.c +++ b/drivers/video/v4l2_cap.c @@ -74,6 +74,15 @@ enum capture_waitend_cause_e WAITEND_CAUSE_STILLSTOP = 2, }; +struct video_format_s +{ + uint16_t width; + uint16_t height; + uint32_t pixelformat; +}; + +typedef struct video_format_s video_format_t; + struct capture_wait_capture_s { sem_t dqbuf_wait_flg; diff --git a/include/nuttx/video/video.h b/include/nuttx/video/video.h index 5619f714ad..44aa821fdc 100644 --- a/include/nuttx/video/video.h +++ b/include/nuttx/video/video.h @@ -60,15 +60,6 @@ extern "C" * Public Types *****************************************************************************/ -struct video_format_s -{ - uint16_t width; - uint16_t height; - uint32_t pixelformat; -}; - -typedef struct video_format_s video_format_t; - struct v4l2_s { FAR const struct v4l2_ops_s *vops;