View Single Post
Old 25th March 2011, 15:34   #3  |  Link
Didée
Registered User
 
Join Date: Apr 2002
Location: Germany
Posts: 5,391
It's rather obvious. The formula is laid out for black=0, white=255. But in YV12 with TV levels, it's black=16, white=235.

Replacing all "256" with "236 16 -", and all "x" or "y" with "x 16 -" and "y 16 -" respectively, should result in a correct screen formula for 16-235 TV scale.

Code:
236 16 - 236 16 - x 16 - - 236 16 - y 16 - - * 236 16 - / -

In your 2nd script line ... do you really expect mt_lutxy to reckognize the letters "U" and "L"?
__________________
- We´re at the beginning of the end of mankind´s childhood -

My little flickr gallery. (Yes indeed, I do have hobbies other than digital video!)
Didée is offline   Reply With Quote