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

Go to the source code of this file.

Functions

YUV I420 4:2:0 planar to RGB
See also
cudaConvertColor() from cudaColorspace.h for automated format conversion
cudaError_t cudaI420ToRGB (void *input, uchar3 *output, size_t width, size_t height)
 Convert a YUV I420 planar image to RGB uchar3. More...
 
cudaError_t cudaI420ToRGB (void *input, float3 *output, size_t width, size_t height)
 Convert a YUV I420 planar image to RGB float3. More...
 
cudaError_t cudaI420ToRGBA (void *input, uchar4 *output, size_t width, size_t height)
 Convert a YUV I420 planar image to RGBA uchar4. More...
 
cudaError_t cudaI420ToRGBA (void *input, float4 *output, size_t width, size_t height)
 Convert a YUV I420 planar image to RGB float4. More...
 
YUV YV12 4:2:0 planar to RGB
See also
cudaConvertColor() from cudaColorspace.h for automated format conversion
cudaError_t cudaYV12ToRGB (void *input, uchar3 *output, size_t width, size_t height)
 Convert a YUV YV12 planar image to RGB uchar3. More...
 
cudaError_t cudaYV12ToRGB (void *input, float3 *output, size_t width, size_t height)
 Convert a YUV YV12 planar image to RGB float3. More...
 
cudaError_t cudaYV12ToRGBA (void *input, uchar4 *output, size_t width, size_t height)
 Convert a YUV YV12 planar image to RGBA uchar4. More...
 
cudaError_t cudaYV12ToRGBA (void *input, float4 *output, size_t width, size_t height)
 Convert a YUV YV12 planar image to RGB float4. More...
 
RGB to YUV I420 4:2:0 planar
See also
cudaConvertColor() from cudaColorspace.h for automated format conversion
cudaError_t cudaRGBToI420 (uchar3 *input, void *output, size_t width, size_t height)
 Convert an RGB uchar3 buffer into YUV I420 planar. More...
 
cudaError_t cudaRGBToI420 (float3 *input, void *output, size_t width, size_t height)
 Convert an RGB float3 buffer into YUV I420 planar. More...
 
cudaError_t cudaRGBAToI420 (uchar4 *input, void *output, size_t width, size_t height)
 Convert an RGBA uchar4 buffer into YUV I420 planar. More...
 
cudaError_t cudaRGBAToI420 (float4 *input, void *output, size_t width, size_t height)
 Convert an RGBA float4 buffer into YUV I420 planar. More...
 
RGB to YUV YV12 4:2:0 planar
See also
cudaConvertColor() from cudaColorspace.h for automated format conversion
cudaError_t cudaRGBToYV12 (uchar3 *input, void *output, size_t width, size_t height)
 Convert an RGB uchar3 buffer into YUV YV12 planar. More...
 
cudaError_t cudaRGBToYV12 (float3 *input, void *output, size_t width, size_t height)
 Convert an RGB float3 buffer into YUV YV12 planar. More...
 
cudaError_t cudaRGBAToYV12 (uchar4 *input, void *output, size_t width, size_t height)
 Convert an RGBA uchar4 buffer into YUV YV12 planar. More...
 
cudaError_t cudaRGBAToYV12 (float4 *input, void *output, size_t width, size_t height)
 Convert an RGBA float4 buffer into YUV YV12 planar. More...
 
YUV YUYV 4:2:2 packed to RGB
See also
cudaConvertColor() from cudaColorspace.h for automated format conversion
cudaError_t cudaYUYVToRGB (void *input, uchar3 *output, size_t width, size_t height)
 Convert a YUYV 422 packed image into RGB uchar3. More...
 
cudaError_t cudaYUYVToRGB (void *input, float3 *output, size_t width, size_t height)
 Convert a YUYV 422 packed image into RGB float3. More...
 
cudaError_t cudaYUYVToRGBA (void *input, uchar4 *output, size_t width, size_t height)
 Convert a YUYV 422 packed image into RGBA uchar4. More...
 
cudaError_t cudaYUYVToRGBA (void *input, float4 *output, size_t width, size_t height)
 Convert a YUYV 422 packed image into RGBA float4. More...
 
YUV YVYU 4:2:2 packed to RGB
See also
cudaConvertColor() from cudaColorspace.h for automated format conversion
cudaError_t cudaYVYUToRGB (void *input, uchar3 *output, size_t width, size_t height)
 Convert a YVYU 422 packed image into RGB uchar3. More...
 
cudaError_t cudaYVYUToRGB (void *input, float3 *output, size_t width, size_t height)
 Convert a YVYU 422 packed image into RGB float3. More...
 
cudaError_t cudaYVYUToRGBA (void *input, uchar4 *output, size_t width, size_t height)
 Convert a YVYU 422 packed image into RGBA uchar4. More...
 
cudaError_t cudaYVYUToRGBA (void *input, float4 *output, size_t width, size_t height)
 Convert a YVYU 422 packed image into RGBA float4. More...
 
YUV UYVY 4:2:2 packed to RGB
See also
cudaConvertColor() from cudaColorspace.h for automated format conversion
cudaError_t cudaUYVYToRGB (void *input, uchar3 *output, size_t width, size_t height)
 Convert a UYVY 422 packed image into RGB uchar3. More...
 
cudaError_t cudaUYVYToRGB (void *input, float3 *output, size_t width, size_t height)
 Convert a UYVY 422 packed image into RGB float3. More...
 
cudaError_t cudaUYVYToRGBA (void *input, uchar4 *output, size_t width, size_t height)
 Convert a UYVY 422 packed image into RGBA uchar4. More...
 
cudaError_t cudaUYVYToRGBA (void *input, float4 *output, size_t width, size_t height)
 Convert a UYVY 422 packed image into RGBA float4. More...
 
YUV NV12 4:2:0 to RGB
See also
cudaConvertColor() from cudaColorspace.h for automated format conversion
cudaError_t cudaNV12ToRGB (void *input, uchar3 *output, size_t width, size_t height)
 Convert an NV12 texture (semi-planar 4:2:0) to RGB uchar3 format. More...
 
cudaError_t cudaNV12ToRGB (void *input, float3 *output, size_t width, size_t height)
 Convert an NV12 texture (semi-planar 4:2:0) to RGB float3 format. More...
 
cudaError_t cudaNV12ToRGBA (void *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 (void *input, float4 *output, size_t width, size_t height)
 Convert an NV12 texture (semi-planar 4:2:0) to RGBA float4 format. More...
 

Function Documentation

◆ cudaI420ToRGB() [1/2]

cudaError_t cudaI420ToRGB ( void *  input,
float3 *  output,
size_t  width,
size_t  height 
)

Convert a YUV I420 planar image to RGB float3.

◆ cudaI420ToRGB() [2/2]

cudaError_t cudaI420ToRGB ( void *  input,
uchar3 *  output,
size_t  width,
size_t  height 
)

Convert a YUV I420 planar image to RGB uchar3.

◆ cudaI420ToRGBA() [1/2]

cudaError_t cudaI420ToRGBA ( void *  input,
float4 *  output,
size_t  width,
size_t  height 
)

Convert a YUV I420 planar image to RGB float4.

◆ cudaI420ToRGBA() [2/2]

cudaError_t cudaI420ToRGBA ( void *  input,
uchar4 *  output,
size_t  width,
size_t  height 
)

Convert a YUV I420 planar image to RGBA uchar4.

◆ cudaNV12ToRGB() [1/2]

cudaError_t cudaNV12ToRGB ( void *  input,
float3 *  output,
size_t  width,
size_t  height 
)

Convert an NV12 texture (semi-planar 4:2:0) to RGB float3 format.

NV12 = 8-bit Y plane followed by an interleaved U/V plane with 2x2 subsampling.

◆ cudaNV12ToRGB() [2/2]

cudaError_t cudaNV12ToRGB ( void *  input,
uchar3 *  output,
size_t  width,
size_t  height 
)

Convert an NV12 texture (semi-planar 4:2:0) to RGB uchar3 format.

NV12 = 8-bit Y plane followed by an interleaved U/V plane with 2x2 subsampling.

◆ cudaNV12ToRGBA() [1/2]

cudaError_t cudaNV12ToRGBA ( void *  input,
float4 *  output,
size_t  width,
size_t  height 
)

Convert an NV12 texture (semi-planar 4:2:0) to RGBA float4 format.

NV12 = 8-bit Y plane followed by an interleaved U/V plane with 2x2 subsampling.

◆ cudaNV12ToRGBA() [2/2]

cudaError_t cudaNV12ToRGBA ( void *  input,
uchar4 *  output,
size_t  width,
size_t  height 
)

Convert an NV12 texture (semi-planar 4:2:0) to RGBA uchar4 format.

NV12 = 8-bit Y plane followed by an interleaved U/V plane with 2x2 subsampling.

◆ cudaRGBAToI420() [1/2]

cudaError_t cudaRGBAToI420 ( float4 *  input,
void *  output,
size_t  width,
size_t  height 
)

Convert an RGBA float4 buffer into YUV I420 planar.

◆ cudaRGBAToI420() [2/2]

cudaError_t cudaRGBAToI420 ( uchar4 *  input,
void *  output,
size_t  width,
size_t  height 
)

Convert an RGBA uchar4 buffer into YUV I420 planar.

◆ cudaRGBAToYV12() [1/2]

cudaError_t cudaRGBAToYV12 ( float4 *  input,
void *  output,
size_t  width,
size_t  height 
)

Convert an RGBA float4 buffer into YUV YV12 planar.

◆ cudaRGBAToYV12() [2/2]

cudaError_t cudaRGBAToYV12 ( uchar4 *  input,
void *  output,
size_t  width,
size_t  height 
)

Convert an RGBA uchar4 buffer into YUV YV12 planar.

◆ cudaRGBToI420() [1/2]

cudaError_t cudaRGBToI420 ( float3 *  input,
void *  output,
size_t  width,
size_t  height 
)

Convert an RGB float3 buffer into YUV I420 planar.

◆ cudaRGBToI420() [2/2]

cudaError_t cudaRGBToI420 ( uchar3 *  input,
void *  output,
size_t  width,
size_t  height 
)

Convert an RGB uchar3 buffer into YUV I420 planar.

◆ cudaRGBToYV12() [1/2]

cudaError_t cudaRGBToYV12 ( float3 *  input,
void *  output,
size_t  width,
size_t  height 
)

Convert an RGB float3 buffer into YUV YV12 planar.

◆ cudaRGBToYV12() [2/2]

cudaError_t cudaRGBToYV12 ( uchar3 *  input,
void *  output,
size_t  width,
size_t  height 
)

Convert an RGB uchar3 buffer into YUV YV12 planar.

◆ cudaUYVYToRGB() [1/2]

cudaError_t cudaUYVYToRGB ( void *  input,
float3 *  output,
size_t  width,
size_t  height 
)

Convert a UYVY 422 packed image into RGB float3.

◆ cudaUYVYToRGB() [2/2]

cudaError_t cudaUYVYToRGB ( void *  input,
uchar3 *  output,
size_t  width,
size_t  height 
)

Convert a UYVY 422 packed image into RGB uchar3.

◆ cudaUYVYToRGBA() [1/2]

cudaError_t cudaUYVYToRGBA ( void *  input,
float4 *  output,
size_t  width,
size_t  height 
)

Convert a UYVY 422 packed image into RGBA float4.

◆ cudaUYVYToRGBA() [2/2]

cudaError_t cudaUYVYToRGBA ( void *  input,
uchar4 *  output,
size_t  width,
size_t  height 
)

Convert a UYVY 422 packed image into RGBA uchar4.

◆ cudaYUYVToRGB() [1/2]

cudaError_t cudaYUYVToRGB ( void *  input,
float3 *  output,
size_t  width,
size_t  height 
)

Convert a YUYV 422 packed image into RGB float3.

◆ cudaYUYVToRGB() [2/2]

cudaError_t cudaYUYVToRGB ( void *  input,
uchar3 *  output,
size_t  width,
size_t  height 
)

Convert a YUYV 422 packed image into RGB uchar3.

◆ cudaYUYVToRGBA() [1/2]

cudaError_t cudaYUYVToRGBA ( void *  input,
float4 *  output,
size_t  width,
size_t  height 
)

Convert a YUYV 422 packed image into RGBA float4.

◆ cudaYUYVToRGBA() [2/2]

cudaError_t cudaYUYVToRGBA ( void *  input,
uchar4 *  output,
size_t  width,
size_t  height 
)

Convert a YUYV 422 packed image into RGBA uchar4.

◆ cudaYV12ToRGB() [1/2]

cudaError_t cudaYV12ToRGB ( void *  input,
float3 *  output,
size_t  width,
size_t  height 
)

Convert a YUV YV12 planar image to RGB float3.

◆ cudaYV12ToRGB() [2/2]

cudaError_t cudaYV12ToRGB ( void *  input,
uchar3 *  output,
size_t  width,
size_t  height 
)

Convert a YUV YV12 planar image to RGB uchar3.

◆ cudaYV12ToRGBA() [1/2]

cudaError_t cudaYV12ToRGBA ( void *  input,
float4 *  output,
size_t  width,
size_t  height 
)

Convert a YUV YV12 planar image to RGB float4.

◆ cudaYV12ToRGBA() [2/2]

cudaError_t cudaYV12ToRGBA ( void *  input,
uchar4 *  output,
size_t  width,
size_t  height 
)

Convert a YUV YV12 planar image to RGBA uchar4.

◆ cudaYVYUToRGB() [1/2]

cudaError_t cudaYVYUToRGB ( void *  input,
float3 *  output,
size_t  width,
size_t  height 
)

Convert a YVYU 422 packed image into RGB float3.

◆ cudaYVYUToRGB() [2/2]

cudaError_t cudaYVYUToRGB ( void *  input,
uchar3 *  output,
size_t  width,
size_t  height 
)

Convert a YVYU 422 packed image into RGB uchar3.

◆ cudaYVYUToRGBA() [1/2]

cudaError_t cudaYVYUToRGBA ( void *  input,
float4 *  output,
size_t  width,
size_t  height 
)

Convert a YVYU 422 packed image into RGBA float4.

◆ cudaYVYUToRGBA() [2/2]

cudaError_t cudaYVYUToRGBA ( void *  input,
uchar4 *  output,
size_t  width,
size_t  height 
)

Convert a YVYU 422 packed image into RGBA uchar4.