1. 31 8月, 2018 1 次提交
    • A
      imgcodecs(webp): multiple fixes · 0515f930
      Alexander Alekhin 提交于
      - don't reallocate passed 'img' (test fixed - must use IMREAD_UNCHANGED / IMREAD_ANYCOLOR)
      - avoid memory DDOS
      - avoid reading of whole file during header processing
      - avoid data access after allocated buffer during header processing (missing checks)
      - use WebPFree() to free allocated buffers (libwebp >= 0.5.0)
      - drop unused & undefined `.close()` method
      - added checks for channels >= 5 in encoder
      0515f930
  2. 04 2月, 2018 1 次提交
    • A
      ts: refactor OpenCV tests · 4a297a24
      Alexander Alekhin 提交于
      - removed tr1 usage (dropped in C++17)
      - moved includes of vector/map/iostream/limits into ts.hpp
      - require opencv_test + anonymous namespace (added compile check)
      - fixed norm() usage (must be from cvtest::norm for checks) and other conflict functions
      - added missing license headers
      4a297a24
  3. 16 8月, 2017 1 次提交
  4. 20 6月, 2017 1 次提交
    • M
      Rewritten some tests in videoio and imgcodecs modules · 87b569d8
      Maksim Shabunin 提交于
      general:
      - all iterative tests have been replaced with parameterized tests
      - old-style try..catch tests have been modified to use EXPECT_/ASSERT_ gtest macros
      - added temporary files cleanup
      - modified MatComparator error message formatting
      
      imgcodecs:
      - test_grfmt.cpp split to test_jpg.cpp, test_png.cpp, test_tiff.cpp, etc.
      
      videoio:
      - added public HAVE_VIDEO_INPUT, HAVE_VIDEO_OUTPUT definitions to cvconfig.h
      - built-in MotionJPEG codec could not be tested on some platforms (read_write test was disabled if ffmpeg is off, encoding/decoding was handled by ffmpeg otherwise).
      - image-related tests moved to imgcodecs (Videoio_Image)
      - several property get/set tests have been combined into one
      - added MotionJPEG test video to opencv_extra
      87b569d8