View Single Post
Old 19th August 2019, 11:35   #96  |  Link
hello_hello
Registered User
 
Join Date: Mar 2011
Posts: 4,823
Quote:
Originally Posted by jpsdr View Post
Is my PDF provided with the tools so unclear ? I hoped it was clear enough to explain things, but unfortunately it seems not...
I read the pdf and took some of it in, but ultimately I copied and pasted the example in your help file and expected the result to be what the help file said it'd be.

LOL. I used the PHP button instead of the Code button, but why not... it looks a bit pretty.

PHP Code:
Some example use
================

BT.2020 to BT.709 conversion, do the following:
ConvertYUVtoXYZ(Color=1)
ConvertXYZtoYUV(pColor=1
Had this been the example, I wouldn't have wandered so far off the main path (I assume it's correct given it appears to produce the same result as a DitherTools 2020 to 709 conversion).

PHP Code:
ConvertToYV24()
ConvertYUVtoXYZ(Color=1Rx=0.708,Ry=0.292,Gx=0.170,Gy=0.797,Bx=0.131,By=0.046,Wx=0.3127,Wy=0.3290)
ConvertXYZtoYUV(pColor=1Rx=0.708,Ry=0.292,Gx=0.170,Gy=0.797,Bx=0.131,By=0.046,Wx=0.3127,Wy=0.3290)
ConvertToYV12() 
Intuitively, and aided by the help file example, the Color and pColor options appear to be an automatic way of specifying the correct primaries, and to be honest, the one thing that's allowing me to not feel like a complete idiot just yet, is this topic has been discussed in two threads over several days now and I've posted examples in both, and so far nobody else has said "no, you do it like this". That's a lot of typing every time you want to do a rec.2020 conversion.

Now back to reading Mr. Help File again to see if I can discover what "color mode of the data" means as I'm not clear on that now.
Does "color mode of the data" mean "matrix"?

PHP Code:
**      ConvertYUVtoLinearRGB       **
   
Color -
      
Set the color mode of the data.
         
0BT2100
         1
BT2020
         2
BT709
         3
BT601_525
         4
BT601_625 
Oh well, at least I appear to be making some progress now.
Thanks for your help.

Last edited by hello_hello; 19th August 2019 at 11:51.
hello_hello is offline   Reply With Quote