HYL_OK3568_LINUX/buildroot/package/libv4l/0005-video-max-frame-change-from-32-to-64.patch

55 lines
1.8 KiB
Diff
Raw Normal View History

2025-05-10 21:49:39 +08:00
From 8434442dfb533739ae34b5e9362d8fe9fe3c2ce5 Mon Sep 17 00:00:00 2001
From: Hans Yang <yhx@rock-chips.com>
Date: Fri, 18 Dec 2020 17:42:01 +0800
Subject: [PATCH 5/7] video max frame change from 32 to 64
Signed-off-by: Hans Yang <yhx@rock-chips.com>
---
contrib/freebsd/include/linux/videodev2.h | 2 +-
include/linux/videodev2.h | 2 +-
lib/libv4l2/libv4l2-priv.h | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/contrib/freebsd/include/linux/videodev2.h b/contrib/freebsd/include/linux/videodev2.h
index 27411eb..1df0892 100644
--- a/contrib/freebsd/include/linux/videodev2.h
+++ b/contrib/freebsd/include/linux/videodev2.h
@@ -102,7 +102,7 @@ typedef int8_t __s8;
* Common stuff for both V4L1 and V4L2
* Moved from videodev.h
*/
-#define VIDEO_MAX_FRAME 32
+#define VIDEO_MAX_FRAME 64
#define VIDEO_MAX_PLANES 8
/*
diff --git a/include/linux/videodev2.h b/include/linux/videodev2.h
index 8b61d77..e602e65 100644
--- a/include/linux/videodev2.h
+++ b/include/linux/videodev2.h
@@ -68,7 +68,7 @@
* Common stuff for both V4L1 and V4L2
* Moved from videodev.h
*/
-#define VIDEO_MAX_FRAME 32
+#define VIDEO_MAX_FRAME 64
#define VIDEO_MAX_PLANES 8
/*
diff --git a/lib/libv4l2/libv4l2-priv.h b/lib/libv4l2/libv4l2-priv.h
index 30dd1bc..cce6de4 100644
--- a/lib/libv4l2/libv4l2-priv.h
+++ b/lib/libv4l2/libv4l2-priv.h
@@ -29,7 +29,7 @@
/* Warning when making this larger the frame_queued and frame_mapped members of
the v4l2_dev_info struct can no longer be a bitfield, so the code needs to
be adjusted! */
-#define V4L2_MAX_NO_FRAMES 32
+#define V4L2_MAX_NO_FRAMES 64
#define V4L2_DEFAULT_NREADBUFFERS 4
#define V4L2_IGNORE_FIRST_FRAME_ERRORS 3
#define V4L2_DEFAULT_FPS 30
--
2.20.1