I have YUV planar data (420YpCbCr8BiPlanarFullRange) and I would like to convert it to RBGX (RBGA but with 255 in the alpha channel).
void * const luminescencePlaneBytes = ...;
void * const cbChrominancePlaneBytes = ...;
void * const crChrominancePlaneBytes = ...;
// ... Convert YUV planar -> RBGX 32bpp, 8bpc.
void *convertedBytes = ...
The vImage docs and this answer state this is possible using a Matrix multiplication function:
However, I have been unable to find any sample code to that does this.