31 Commits

Author SHA1 Message Date
Martin Pulec
1ff532840e Merge branch 'master' into vr-devel 2021-05-26 14:23:32 +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
8b9b3310dc Merge branch 'master' into vr-devel 2021-05-17 15:10:24 +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
c6b7937a1e added gpujpeg unit test 2021-04-30 15:26:57 +02:00
Martin Pulec
314239e248 added gpujpeg unit test 2021-04-30 08:57:51 +02:00
Martin Pulec
784ce15843 ff_codec_conversions_test: fixed a message 2021-04-29 15:29:56 +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
Martin Pulec
5aed197216 Tests: use iface en0 on macOS
IPv6 multicast doesn't work when IPV6_MULTICAST_IF set to 0 (although it
should).
2019-11-19 08:22:51 +01:00
Martin Pulec
7ebb52d953 Merged new and old unit tests
+ skip UDP tests if running inside GitHub VM (doesn't support multicast)
+ create symbols (ctags/cscope) for tests
2019-11-19 08:22:51 +01:00
Martin Pulec
81f64cc4ff Reenabled original unit tests 2019-11-19 08:22:51 +01:00
Martin Pulec
bb5b84d9ea Restructuralize directory structure
* content of ultragrid/ subdirector moved to root
2012-07-02 18:24:25 +02:00