23 #ifndef __CUDA_YUV_CONVERT_H 24 #define __CUDA_YUV_CONVERT_H 42 cudaError_t
cudaRGBAToI420( uchar4* input, uint8_t* output,
size_t width,
size_t height );
48 cudaError_t
cudaRGBAToI420( uchar4* input,
size_t inputPitch, uint8_t* output,
size_t outputPitch,
size_t width,
size_t height );
54 cudaError_t
cudaRGBAToYV12( uchar4* input, uint8_t* output,
size_t width,
size_t height );
60 cudaError_t
cudaRGBAToYV12( uchar4* input,
size_t inputPitch, uint8_t* output,
size_t outputPitch,
size_t width,
size_t height );
76 cudaError_t
cudaUYVYToRGBA( uchar2* input, uchar4* output,
size_t width,
size_t height );
82 cudaError_t
cudaUYVYToRGBA( uchar2* input,
size_t inputPitch, uchar4* output,
size_t outputPitch,
size_t width,
size_t height );
88 cudaError_t
cudaYUYVToRGBA( uchar2* input, uchar4* output,
size_t width,
size_t height );
94 cudaError_t
cudaYUYVToRGBA( uchar2* input,
size_t inputPitch, uchar4* output,
size_t outputPitch,
size_t width,
size_t height );
110 cudaError_t
cudaUYVYToGray( uchar2* input,
float* output,
size_t width,
size_t height );
116 cudaError_t
cudaUYVYToGray( uchar2* input,
size_t inputPitch,
float* output,
size_t outputPitch,
size_t width,
size_t height );
122 cudaError_t
cudaYUYVToGray( uchar2* input,
float* output,
size_t width,
size_t height );
128 cudaError_t
cudaYUYVToGray( uchar2* input,
size_t inputPitch,
float* output,
size_t outputPitch,
size_t width,
size_t height );
145 cudaError_t
cudaNV12ToRGBA( uint8_t* input, uchar4* output,
size_t width,
size_t height );
152 cudaError_t
cudaNV12ToRGBA( uint8_t* input,
size_t inputPitch, uchar4* output,
size_t outputPitch,
size_t width,
size_t height );
159 cudaError_t
cudaNV12ToRGBA32( uint8_t* input, float4* output,
size_t width,
size_t height );
166 cudaError_t
cudaNV12ToRGBA32( uint8_t* input,
size_t inputPitch, float4* output,
size_t outputPitch,
size_t width,
size_t height );
cudaError_t cudaNV12SetupColorspace(float hue=0.0f)
Setup NV12 color conversion constants.
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.
cudaError_t cudaRGBAToI420(uchar4 *input, uint8_t *output, size_t width, size_t height)
Convert an RGBA uchar4 buffer into YUV I420 planar.
cudaError_t cudaUYVYToRGBA(uchar2 *input, uchar4 *output, size_t width, size_t height)
Convert a UYVY 422 packed image into RGBA uchar4.
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.
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.
cudaError_t cudaRGBAToYV12(uchar4 *input, uint8_t *output, size_t width, size_t height)
Convert an RGBA uchar4 buffer into YUV YV12 planar.
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.
cudaError_t cudaYUYVToRGBA(uchar2 *input, uchar4 *output, size_t width, size_t height)
Convert a YUYV 422 packed image into RGBA uchar4.