From e51f0a2230a8ee3f40612314ffbd2d0ca62643d4 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 6/8] 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 e9512ac2..4b36d011 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 fea0e6ad..adede520 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 30dd1bc3..cce6de43 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
|