[Concept,05/14] video: Add struct vid_size for width/height

Message ID 20251006165452.1675349-6-sjg@u-boot.org
State New
Headers
Series expo: Continue development of expo with mouse |

Commit Message

Simon Glass Oct. 6, 2025, 4:54 p.m. UTC
  From: Simon Glass <sjg@chromium.org>

Add struct vid_size with w and h members to represent dimensions in
video operations, complementing struct vid_pos for positions and struct
vid_bbox for bounding boxes.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 include/video_defs.h | 11 +++++++++++
 1 file changed, 11 insertions(+)
  

Patch

diff --git a/include/video_defs.h b/include/video_defs.h
index 397764a5d3c..ba60765bb4a 100644
--- a/include/video_defs.h
+++ b/include/video_defs.h
@@ -59,6 +59,17 @@  struct vid_pos {
 	int y;
 };
 
+/**
+ * struct vid_size - Represents a size for video operations
+ *
+ * @w: Width in pixels
+ * @h: Height in pixels
+ */
+struct vid_size {
+	int w;
+	int h;
+};
+
 #endif /* __ASSEMBLY__ */
 
 #endif /* __VIDEO_DEFS_H */