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
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
a231561131
ff_codec_conversions_test.cpp : R10k no longer exists
2022-01-26 08:22:42 +01: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
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
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
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