Implement IPT-PQ and reshaper
including brute-force solving for the matrix based on a known input and output!
Oh, wow. That is a bad idea, but you got the second matrix (PL_COLOR_SYSTEM_DOLBY_IPT
) almost correct. Compare this and [0050] from patent. Actually it should be this one. Again without the reshaping, it should not be this one.
Now second matrix dvipt_lms2rgb
is this one (calculations to get it attached in pic) (then round to 4th decimal, invert and then transpose):
BT.2111 test pattern that was generated by testing-av project is wrong IMHO. But you can use it to check what it should be because it does decode in Films & TV and that Dolby vision app.
Edited by Valerii Za.