Jetson Inference
DNN Vision Library
cudaYUV.h File Reference
#include "cudaUtility.h"
#include <stdint.h>

Go to the source code of this file.

Functions

RGBA to YUV 4:2:0 planar (I420 & YV12)
cudaError_t cudaRGBAToI420 (uchar4 *input, uint8_t *output, size_t width, size_t height)
 Convert an RGBA uchar4 buffer into YUV I420 planar. More...
 
cudaError_t cudaRGBAToI420 (uchar4 *input, size_t inputPitch, uint8_t *output, size_t outputPitch, size_t width, size_t height)
 Convert an RGBA uchar4 texture into YUV I420 planar. More...
 
cudaError_t cudaRGBAToYV12 (uchar4 *input, uint8_t *output, size_t width, size_t height)
 Convert an RGBA uchar4 buffer into YUV YV12 planar. More...
 
cudaError_t cudaRGBAToYV12 (uchar4 *input, size_t inputPitch, uint8_t *output, size_t outputPitch, size_t width, size_t height)
 Convert an RGBA uchar4 texture into YUV YV12 planar. More...
 
YUV 4:2:2 packed (UYVY & YUYV) to RGBA
cudaError_t cudaUYVYToRGBA (uchar2 *input, uchar4 *output, size_t width, size_t height)
 Convert a UYVY 422 packed image into RGBA uchar4. More...
 
cudaError_t cudaUYVYToRGBA (uchar2 *input, size_t inputPitch, uchar4 *output, size_t outputPitch, size_t width, size_t height)
 Convert a UYVY 422 packed image into RGBA uchar4. More...
 
cudaError_t cudaYUYVToRGBA (uchar2 *input, uchar4 *output, size_t width, size_t height)
 Convert a YUYV 422 packed image into RGBA uchar4. More...
 
cudaError_t cudaYUYVToRGBA (uchar2 *input, size_t inputPitch, uchar4 *output, size_t outputPitch, size_t width, size_t height)
 Convert a YUYV 422 packed image into RGBA uchar4. More...
 
UYUV 4:2:2 packed (UYVY & YUYV) to grayscale
cudaError_t cudaUYVYToGray (uchar2 *input, float *output, size_t width, size_t height)
 Convert a UYVY 422 packed image into a floating-point grayscale image. More...
 
cudaError_t cudaUYVYToGray (uchar2 *input, size_t inputPitch, float *output, size_t outputPitch, size_t width, size_t height)
 Convert a UYVY 422 packed image into a floating-point grayscale image. More...
 
cudaError_t cudaYUYVToGray (uchar2 *input, float *output, size_t width, size_t height)
 Convert a YUYV 422 packed image into a floating-point grayscale image. More...
 
cudaError_t cudaYUYVToGray (uchar2 *input, size_t inputPitch, float *output, size_t outputPitch, size_t width, size_t height)
 Convert a YUYV 422 packed image into a floating-point grayscale image. More...
 
YUV NV12 to RGBA
cudaError_t cudaNV12ToRGBA (uint8_t *input, uchar4 *output, size_t width, size_t height)
 Convert an NV12 texture (semi-planar 4:2:0) to RGBA uchar4 format. More...
 
cudaError_t cudaNV12ToRGBA (uint8_t *input, size_t inputPitch, uchar4 *output, size_t outputPitch, size_t width, size_t height)
 Convert an NV12 texture (semi-planar 4:2:0) to RGBA uchar4 format. More...
 
cudaError_t cudaNV12ToRGBA32 (uint8_t *input, float4 *output, size_t width, size_t height)
 Convert an NV12 texture (semi-planar 4:2:0) to RGBA float4 format. More...
 
cudaError_t cudaNV12ToRGBA32 (uint8_t *input, size_t inputPitch, float4 *output, size_t outputPitch, size_t width, size_t height)
 Convert an NV12 texture (semi-planar 4:2:0) to RGBA float4 format. More...
 
cudaError_t cudaNV12SetupColorspace (float hue=0.0f)
 Setup NV12 color conversion constants. More...