xref: /OK3568_Linux_fs/buildroot/package/libv4l/0005-video-max-frame-change-from-32-to-64.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1From 8434442dfb533739ae34b5e9362d8fe9fe3c2ce5 Mon Sep 17 00:00:00 2001
2From: Hans Yang <yhx@rock-chips.com>
3Date: Fri, 18 Dec 2020 17:42:01 +0800
4Subject: [PATCH 5/7] video max frame change from 32 to 64
5
6Signed-off-by: Hans Yang <yhx@rock-chips.com>
7---
8 contrib/freebsd/include/linux/videodev2.h | 2 +-
9 include/linux/videodev2.h                 | 2 +-
10 lib/libv4l2/libv4l2-priv.h                | 2 +-
11 3 files changed, 3 insertions(+), 3 deletions(-)
12
13diff --git a/contrib/freebsd/include/linux/videodev2.h b/contrib/freebsd/include/linux/videodev2.h
14index 27411eb..1df0892 100644
15--- a/contrib/freebsd/include/linux/videodev2.h
16+++ b/contrib/freebsd/include/linux/videodev2.h
17@@ -102,7 +102,7 @@ typedef int8_t __s8;
18  * Common stuff for both V4L1 and V4L2
19  * Moved from videodev.h
20  */
21-#define VIDEO_MAX_FRAME               32
22+#define VIDEO_MAX_FRAME                64
23 #define VIDEO_MAX_PLANES               8
24
25 /*
26diff --git a/include/linux/videodev2.h b/include/linux/videodev2.h
27index 8b61d77..e602e65 100644
28--- a/include/linux/videodev2.h
29+++ b/include/linux/videodev2.h
30@@ -68,7 +68,7 @@
31  * Common stuff for both V4L1 and V4L2
32  * Moved from videodev.h
33  */
34-#define VIDEO_MAX_FRAME               32
35+#define VIDEO_MAX_FRAME                64
36 #define VIDEO_MAX_PLANES               8
37
38 /*
39diff --git a/lib/libv4l2/libv4l2-priv.h b/lib/libv4l2/libv4l2-priv.h
40index 30dd1bc..cce6de4 100644
41--- a/lib/libv4l2/libv4l2-priv.h
42+++ b/lib/libv4l2/libv4l2-priv.h
43@@ -29,7 +29,7 @@
44 /* Warning when making this larger the frame_queued and frame_mapped members of
45    the v4l2_dev_info struct can no longer be a bitfield, so the code needs to
46    be adjusted! */
47-#define V4L2_MAX_NO_FRAMES 32
48+#define V4L2_MAX_NO_FRAMES 64
49 #define V4L2_DEFAULT_NREADBUFFERS 4
50 #define V4L2_IGNORE_FIRST_FRAME_ERRORS 3
51 #define V4L2_DEFAULT_FPS 30
52--
532.20.1
54
55