Commit Graph

54 Commits

Author SHA1 Message Date
Martin Pulec
c4c3ffd5dc lavc: fixed test
changed prototype of some functions:

- to_lavc_vid_conv - accept (char *) instead of (struct video_frame)
- get_av_pixfmt_details - (enum AVPixelFormat) instead of int

+ make to_lavc_vid_conv.c partially C++ compatible (I attempted first to
  include it as was it libavcodec.cpp), so leave it (just in case)
2023-02-21 10:28:04 +01:00
Martin Pulec
037d6bef64 fixed tests
broken by API change from last commit
2023-01-30 14:53:19 +01:00
Martin Pulec
90d2492d0d lavc: HAVE_<codec> replaced with <codec>_PRESENT
HAVE_YX macros are either defined or not to signalize feature XY
availability. The _PRESENT macro here has either value 1 or 0 but are
always defined.

+ mark parameters of apply_blacklist() as [[maybe_unused]]
2023-01-20 13:57:58 +01:00
Martin Pulec
a082cdaf12 CI tests: replace UG_SKIP_NET_TESTS with GITHUB_REPOSITORY
Automatically ignore network test errors (typically a multicast on mac
and in arm chroot) if run from CI.
2022-11-08 16:49:36 +01:00
Martin Pulec
a43b808388 support for encryption with wolfSSL
In addition to OpenSSL, wolfSSL can now be used.

+ renamed built-in MD5_CTX to MD5CTX not to interact with the library
  one
2022-11-03 14:12:48 +01:00
Martin Pulec
05aea72a3c moved some functions from misc to text
moved text-related functions from utils/misc to utils/text
2022-10-13 09:16:16 +02:00
Martin Pulec
dad032c7bb fixed libavcodec test
changed path of libavcodec/lavc_common
2022-08-18 14:58:39 +02:00
Martin Pulec
d5c721a649 cppunit: fixed missing ifdef 2022-06-06 11:06:07 +02:00
Martin Pulec
7b1837c668 video_codec: removed slow parameter from get_decoder_from_to 2022-05-30 15:38:48 +02:00
Martin Pulec
d66f336e1d video_codec: removed some more ext link
+ return vc_copylineRGB[A] for RGB->RGB and RGBA->RGBA instead of
  vc_memcpy - we cannot know if caller wants or doesn't want to use
  rgb-shifts other than default. Both implementations call vc_memcpy
  if s/he does
2022-05-30 15:38:47 +02:00
Martin Pulec
b1a7f2229a lavc split also to/from conv file
The combined file had ~3k lines which is quite too much.
2022-05-02 16:12:26 +02:00
Martin Pulec
d4841687c4 split libavcodec_common to multiple files
This allows use of libavcodec_common with eg. audio without to need to
include all the conversions burden.
2022-05-02 16:12:26 +02:00
Martin Pulec
a1a1e96b04 Fixed also P210 unit test 2022-04-11 13:39:04 +02:00
Martin Pulec
b8b11a092a P210 test compat
complatibility with FFmpeg not supporting P210 pixel format
2022-04-05 12:39:05 +02:00
Martin Pulec
6649f88416 ff_codec_conversions_test: small fixes 2022-04-04 13:45:16 +02:00
Martin Pulec
2b0c10ecd1 unit tests: print running unit test name
+ output with standard error
2022-04-04 13:44:47 +02:00
Martin Pulec
ba267b00ed ff_codec_conversions_test: print alloc error 2022-04-01 15:52:04 +02:00
Martin Pulec
1f0b841e11 fixed test warnings 2022-04-01 13:28:10 +02:00
Martin Pulec
0e89cdea2c Fixed AV_PIX_FMT_P010LE->v210 conversion
- it used only 8 bits and perhaps it didn't work at all
- also there was missing shift for last Y in v210 block
2022-03-29 16:22:42 +02:00
Martin Pulec
1103e248d1 Added AV_PIX_FMT_P210LE<->v210 conversions 2022-03-29 16:22:41 +02:00
Martin Pulec
b1bc866d7f mist_test.cpp: ignore false positive clang warning 2022-03-18 08:52:32 +01:00
Martin Pulec
91d5054677 configure, config_unix.h: removed some obsolete includes/checks 2022-03-02 11:24:02 +01:00
Martin Pulec
f62e04d15f fixed replace_all()
In response to Coverity CID 383367 - it is perhaps false positive but
there has been another small bug - the step should be length of to, not
from (which may be longer).

+ written a test for it
2022-02-21 15:32:00 +01:00
Martin Pulec
8e133a88d2 get_framerate_test: fixed wrong guard + ext 2022-02-21 15:31:38 +01:00
Martin Pulec
a231561131 ff_codec_conversions_test.cpp : R10k no longer exists 2022-01-26 08:22:42 +01:00
Martin Pulec
8ec7b7dca0 fixed tests: toI420 is now static + fixed a warn 2022-01-26 08:22:42 +01:00
Martin Pulec
49208387da main: moved getopt parsing to a separate function 2021-07-09 10:20:13 +02:00
Martin Pulec
613c62bf54 Lavc: fixed get_decoder_from_uv_to_uv
Improved UG decoder selection in get_decoder_from_uv_to_uv - now is
selected nearest better codec.

+ written a test for the above
2021-05-25 10:11:30 +02:00
Martin Pulec
9a3412fdd5 Libavcodec conversions: use 14-bit precision coefs
This yields precision ~12 bit precision but avoids integer overflows.
2021-05-14 13:56:44 +02:00
Martin Pulec
77bb2ae18f Test RG48: allow custom image
+ fixes
2021-05-14 13:30:29 +02:00
Martin Pulec
620eb6581e Unit test: added FF RG48 out-of-range check 2021-05-14 13:30:09 +02:00
Martin Pulec
1a09526980 ff_codec_conversions_test::test_yuv444p16le_from_to_rg48 updates
- headrooms as a constant
- check if output is within the range
2021-05-13 14:33:05 +02:00
Martin Pulec
314239e248 added gpujpeg unit test 2021-04-30 08:57:51 +02:00
Martin Pulec
6fe6505ab7 run_tests: print available unit tests 2021-03-22 16:40:02 +01:00
Martin Pulec
78e4948b80 test_yuv444p16le_from_to_rg48 updates
- init input buffer with 2^16 (16-bit RGB headroom in UG) for the
  comparison work even if some values are not initialized
- fix printing also negative difference in a debug mode
2021-03-12 16:31:59 +01:00
Martin Pulec
a094ad0c58 CUnit: option to run only one test
Can be used eg. to debug tests that produce a lot of terminal output.
2021-03-12 10:32:17 +01:00
Martin Pulec
9cb0b3ffad ff_codec_conversions_test::test_yuv444p16le_from_to_rg48: print signed value of difference in debug 2021-03-12 10:17:45 +01:00
Martin Pulec
5888f52df3 Added tests for yuv444p16le<->RG48 2021-03-11 16:47:40 +01:00
Martin Pulec
a5d8b79309 run_tests: added usage 2021-03-11 16:39:43 +01:00
Martin Pulec
024494f4b8 Option to disable message repeats suppressing 2020-11-05 09:21:33 +01:00
Martin Pulec
9714fc388d tests: test convs from/to FF 10/12-bit RGB and R10k
Use lower resolution as well.
2020-10-20 15:15:05 +02:00
Martin Pulec
eb64060593 Libavcodec convs: fixed copy&paste error
Fixed wrong conversions in uv to av list.

+ tests for 10, 12 bits to R12L
+ test on lower resolution image to reduce test time
2020-10-20 15:00:00 +02:00
Martin Pulec
907a4f806d Tests FF conversions: optionaly measure performance 2020-09-24 14:37:13 +02:00
Martin Pulec
e86e66147c Lavc: added R10k/R12L conv from/to AV_PIX_FMT_YUV444P16LE
+ conversion AV_PIX_FMT_YUV444P10LE->R10k
2020-09-21 14:34:03 +02:00
Martin Pulec
de8ec48d9e Tests: option to run only standard or unit tests 2020-09-21 14:34:03 +02:00
Martin Pulec
b2cb8e3954 Fixed test_video_display()
Pass empty string instead of NULL.
2020-09-15 10:56:03 +02:00
Martin Pulec
7376a7419e Added tests for testcard ->i420 conversion 2020-03-03 08:02:46 +01:00
Martin Pulec
f01b38b31c CppUnit: status to makefile + warn if not found when run 2019-11-20 22:26:52 +01:00
Martin Pulec
735bbd50d6 Tests: run pre- and post-init
+ run always the whole suite (don't exit with first failing test)
2019-11-19 15:26:39 +01:00
Martin Pulec
915f9fe0fb Win test compile fixes 2019-11-19 15:26:38 +01:00