I’d like to learn how I can write a cuda code that convert colorspace of a image from packed YUV422 to 3 channel packed RGB. I know there is a API proper to be used in this case:
NppStatus nppiYUV422ToRGB_8u_C2C3R(const Npp8u * pSrc, int nSrcStep, Npp8u * pDst, int nDstStep, NppiSize oSizeROI);
But I’d like some code snippet showing how to use this function like hello world or some sort of example code that shows the usage of this function.
Can someone provide such short good example code?
Thank you very much.