cudaUYVYToRGBA in jetson-utils

Hi,
My video Node Spec is:

Format Video Capture:
        Width/Height      : 1920/1080
        Pixel Format      : 'UYVY'
        Field             : None
        Bytes per Line    : 3840
        Size Image        : 4147200
        Colorspace        : sRGB
        Transfer Function : Default
        YCbCr Encoding    : Default
        Quantization      : Default
        Flags             :

Can you please put an example how to use cudaUYVYToRGBA this https://github.com/dusty-nv/jetson-utils?

Thanks

Hi hhami.2040, is this a V4L2 camera and are you using gstCamera for capture? If so, you could simply try changing gstCamera.cpp:432 from format=YUY2 to format=UYVY and see if that works.

If you wish to use cudaUYVYToRGBA() directly, you can see here for how a similar function is used. Note that cudaUYVYToRGBA() will output 8-bit unsigned char RGBA (32-bits per pixel).