Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server
We only have an image of 8x8 values (!) - I am not sure how you want to fit 100 values into it.

So with a direct mapping it would end up like:

new(val) = (old_val - min_old) / (old_format_max - old_format_min) * (new_format_max - new_format_min)
in our case:
new(val) = (old_val - 2) / 6 * 10

e.g.
new(2) = 0 / 6 * 10 = 0
new(3) = 1 / 6 * 10 = 1.667 -> 2 (or 1 if casted)
new (4) = 2/6 * 10 = 3.33 -> 3
new (5) = 5
new (6) = 6.667 -> 7 (or 6)
new (7) = 8.33 -> 8
new(8) = 10

Code:
2,3,4,5,6,7,8
2,3,4,5,6,7,8
2,3,4,5,6,7,8
2,3,4,5,6,7,8
2,3,4,5,6,7,8
2,3,4,5,6,7,8
2,3,4,5,6,7,8
2,3,4,5,6,7,8

Result without doing anything (besides proper rounding):
Code:
0,2,3,5,7,8,10
0,2,3,5,7,8,10
0,2,3,5,7,8,10
0,2,3,5,7,8,10
0,2,3,5,7,8,10
0,2,3,5,7,8,10
0,2,3,5,7,8,10
0,2,3,5,7,8,10

That would produce banding, cause there is now "space" between direct neighbours, right?
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply


Messages In This Thread
Live TV broken again? - by schamane - 2016-02-29, 19:56
Random crashes - by hal2100 - 2016-03-08, 22:03
RE: Intel VAAPI howto with Krypton v17 based on Ubuntu 16.04 server - by fritsch - 2016-11-25, 12:57
Strange Behaviour - by MicTie - 2016-12-07, 10:46
Working lirc with mce remote - by fr1day - 2019-08-10, 17:36
Logout Mark Read Team Forum Stats Members Help
Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server18