]> git.sesse.net Git - movit/commit
Add accuracy unit tests for GammaExpansionEffect.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Thu, 9 Jan 2014 19:55:02 +0000 (20:55 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Thu, 9 Jan 2014 19:55:02 +0000 (20:55 +0100)
commit245513f7873fca03be3f031beddaca716d7536d9
treeb0f4ae16871754d3cbd07f38856893636e4adb7d
parentb912dbaa253ed1f091fd7201efd366c6f3154257
Add accuracy unit tests for GammaExpansionEffect.

After all the worry about accuracy in the polynomial expansion,
I figured it was time to actually add tests verifying the error
bounds here in a more reasonable way. The limits are set sort-of
randomly, more-or-less to what the new code already handles,
rounded up a bit. (The old texture-based code was _way_ worse than this,
it seems, probably due to texel center issues.)

This also shows that you can probably do 10-bit processing with
Movit without losing way too much accuracy, but that 12-bit is
too much for fp16 to handle.
gamma_expansion_effect.cpp
gamma_expansion_effect_test.cpp
test_util.cpp
test_util.h