I'm checking how to calculate that value from a JPEG file and I'm pretty confused:
YCbCrPositioning should be defined as shown in this page: https://freeimage.sourceforge.io/fnet/html/4A015DE9.htm
This page is already a bit unclear, but I think what it means is that if Y=4, Cb=2 and Cr=2 then YCbCrPositioning should be set to 2, in all other cases to 1.
That Y:Cb:Cr seems to refer to this thing: https://en.wikipedia.org/wiki/YCbCr
There it says how each of these values would be calculate, for example Y, would be calculated as shown here https://en.wikipedia.org/wiki/Luma_(video), and Cb and Cr as shown here https://en.wikipedia.org/wiki/Chrominance.
But at this point I'm pretty lost, how can you get the values needed to calculate Y, Cb and Cr from a JPEG image?