libav for jetson tk1 does not provide libavutil/display.h.

pull/22689/head
Alexander Smorkalov 2 years ago
parent 22f8fb4d5c
commit a6fadfe1c2
  1. 4
      modules/videoio/src/cap_ffmpeg_impl.hpp
  2. 6
      modules/videoio/test/test_ffmpeg.cpp

@ -82,7 +82,11 @@ extern "C" {
#include <libavutil/mathematics.h> #include <libavutil/mathematics.h>
#include <libavutil/opt.h> #include <libavutil/opt.h>
// https://github.com/FFmpeg/FFmpeg/blame/d79c240196f43b93bd204363f1facc270029f113/doc/APIchanges#L1689-L1695
#if LIBAVUTIL_BUILD >= (LIBAVUTIL_VERSION_MICRO >= 100 \
? CALC_FFMPEG_VERSION(52, 85, 100) : CALC_FFMPEG_VERSION(53, 15, 0))
#include <libavutil/display.h> #include <libavutil/display.h>
#endif
#if LIBAVUTIL_BUILD >= (LIBAVUTIL_VERSION_MICRO >= 100 \ #if LIBAVUTIL_BUILD >= (LIBAVUTIL_VERSION_MICRO >= 100 \
? CALC_FFMPEG_VERSION(51, 63, 100) : CALC_FFMPEG_VERSION(54, 6, 0)) ? CALC_FFMPEG_VERSION(51, 63, 100) : CALC_FFMPEG_VERSION(54, 6, 0))

@ -95,8 +95,6 @@ TEST(videoio_ffmpeg, image)
//========================================================================== //==========================================================================
#define THREADS testing::ValuesIn({ 0,1,2,2000 })
#define RAW_READ testing::ValuesIn({true, false})
typedef tuple<string, int, bool> videoio_read_params_t; typedef tuple<string, int, bool> videoio_read_params_t;
typedef testing::TestWithParam< testing::tuple<videoio_read_params_t, int, bool>> videoio_read; typedef testing::TestWithParam< testing::tuple<videoio_read_params_t, int, bool>> videoio_read;
@ -139,7 +137,9 @@ const videoio_read_params_t videoio_read_params[] =
//videoio_read_params_t("video/big_buck_bunny.wmv", 125, true), //videoio_read_params_t("video/big_buck_bunny.wmv", 125, true),
}; };
INSTANTIATE_TEST_CASE_P(/**/, videoio_read, testing::Combine(testing::ValuesIn(videoio_read_params), THREADS, RAW_READ)); INSTANTIATE_TEST_CASE_P(/**/, videoio_read, testing::Combine(testing::ValuesIn(videoio_read_params),
testing::Values(0, 1, 2, 2000),
testing::Values(true, false)));
//========================================================================== //==========================================================================

Loading…
Cancel
Save