Merge pull request #23970 from mshabunin:fix-v4l-test

videoio: fix v4l2 test on older platforms (centos)
pull/23971/head
Alexander Smorkalov 2 years ago committed by GitHub
commit 40727c8369
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 14
      modules/videoio/test/test_v4l2.cpp

@ -21,6 +21,20 @@
#include <opencv2/core/utils/configuration.private.hpp>
#include <linux/videodev2.h>
// workarounds for older versions
#ifndef V4L2_PIX_FMT_Y10
#define V4L2_PIX_FMT_Y10 v4l2_fourcc('Y', '1', '0', ' ')
#endif
#ifndef V4L2_PIX_FMT_Y12
#define V4L2_PIX_FMT_Y12 v4l2_fourcc('Y', '1', '2', ' ')
#endif
#ifndef V4L2_PIX_FMT_ABGR32
#define V4L2_PIX_FMT_ABGR32 v4l2_fourcc('A', 'R', '2', '4')
#endif
#ifndef V4L2_PIX_FMT_XBGR32
#define V4L2_PIX_FMT_XBGR32 v4l2_fourcc('X', 'R', '2', '4')
#endif
using namespace cv;
namespace opencv_test { namespace {

Loading…
Cancel
Save