The Khronos Group - a non-profit industry consortium to develop, publish and promote open standard, royalty-free media authoring and acceleration standards for desktop and handheld devices, combined with conformance qualification programs for platform and device interoperability.

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

ML Image Parameters

Hi
Assume that we have adjusted the value of ML_IMAGE_SAMPLING_INT32 to ML_SAMPLING_422. So In this case, Cb and Cr are interleaved on the 1st
channel. Assume that we have adjusted the value of ML_IMAGE_PACKING_INT32 to M_PACKING_10. So it's in this order:
bbbbbbbbbbYYYYYYYYYYrrrrrrrrrrAA.My problem is that with this order we haven't interlaced the Cb and Cr in the 1st channel.I think that we need this order for this example: bbbbbrrrrrYYYYYYYYYY000000000000 and i think that the ML_PACKING_10 creates an error for this case.If it's true, how can i create the second order( bbbbbrrrrrYYYYYYYYYY000000000000 )?

Re: ML Image Parameters

Hello Ehsan,

In 422 sampling, Cb and Cr are *interleaved* (not interlaced), meaning they alternate on a per-pixel basis. So if one pixel carries Cb information, the next will carry Cr information, and the next will carry Cb again, and so on.

So with 10-bit per component in a 32-bit pixel packing, you would get a sequence like this:
bbbbbbbbbbYYYYYYYYYY0000000000AA
rrrrrrrrrrYYYYYYYYYY0000000000AA
bbbbbbbbbbYYYYYYYYYY0000000000AA
rrrrrrrrrrYYYYYYYYYY0000000000AA
...etc...

Re: ML Image Parameters

Hi Fabrice
I want to put all the colorspace, packing and sampling concepts together and make some questions.
If we use from the 10_10_10_2_R packing and CbYCrA colorspace, then we have the following shape:
AArrrrrrrrrrYYYYYYYYYYbbbbbbbbbb
If we use from the 4:2:2 sampling, Cb and Cr are interleaved on the 1st channel, and Y occupies the 2nd channel.What's the meaning of the *first channel* and *second channel* in this case?
What about the case that we use from the 10_10_10_2_1432 packing?What's the meaning of the first and second channels in this case?
In general, How can we specify the first, second, third and fourth channels?is there a relation between the channels and components?
-Ehsan-