v4l2test: Solve blurred screen problem in 45 or 60 fps.

1. Fix the error buffer count for v4l2 when using pingpong buffer.
2. Add readable flag for pingpong buffers exchange to avoid overproduction.

Signed-off-by: Kevin.xie <kevin.xie@starfivetech.com>
This commit is contained in:
Kevin.xie
2022-08-09 20:40:29 +08:00
parent 6b8cb8042a
commit a2d183cea1
4 changed files with 44 additions and 16 deletions
+2 -1
View File
@@ -26,7 +26,8 @@
#define TEST_VERSION "v0.0.1"
#endif
#define BUFCOUNT 4
#define PINGPONG_BUFCOUNT 2 /* For pingpong buffer mapping in drm + mmap mode*/
#define BUFCOUNT 4
#define CLEAR(x) memset (&(x), 0, sizeof (x))
#define PCLEAR(x) memset ((x), 0, sizeof (*x))