'How can I convert or encode CbYCr422 images into jpeg or jpg images with CUDA?

As the title of this question says, I'd like to convert images of CbYCr422(UYVY) into images of jpeg or jpg.

I know one for from CbYCr422(UYVY) into RGB : nppiCbYCr422ToRGB_8u_C2C3R()

And I know one for from CbYCr422(UYVY) into BGR : nppiCbYCr422ToBGR_709HDTV_8u_C2C3R()

Do I use another for from RGB/BGR to JPG with the ones above?

Isn't there an API that do these two(to RGB/BGR and to JPG) at once?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source