NVIDIA DeepStream SDK API Reference

9.2 Release
sources/libs/nvdewarper/Warp360/src/NVWarp360Kernel.h File Reference

Go to the source code of this file.

Data Structures

struct  Warp360KernelParams
 Device Parameters for FishBroom. More...
 

Functions

template<nvwarpSurface_t Tsrc, nvwarpSurface_t Tdst>
__host__ cudaError_t Warp (dim3 dim_grid, dim3 dim_block, cudaStream_t stream, const Warp360KernelParams *params, cudaTextureObject_t srcTex, cudaSurfaceObject_t dstSurface)
 Warp to a surface. More...
 
template<nvwarpSurface_t Tsrc, nvwarpSurface_t Tdst>
__host__ cudaError_t Warp (dim3 dim_grid, dim3 dim_block, cudaStream_t stream, const Warp360KernelParams *params, cudaTextureObject_t srcTex, void *dstAddr, size_t dstRowBytes)
 Warp to a pitched buffer. More...
 
__host__ void NV12RGBABuffer (cudaStream_t stream, const nvwarpYUVRGBParams_t *params, const unsigned char *yuv, size_t yuvRowBytes, uchar4 *dst, size_t dstRowBytes)
 

Function Documentation

◆ NV12RGBABuffer()

__host__ void NV12RGBABuffer ( cudaStream_t  stream,
const nvwarpYUVRGBParams_t *  params,
const unsigned char *  yuv,
size_t  yuvRowBytes,
uchar4 *  dst,
size_t  dstRowBytes 
)

◆ Warp() [1/2]

template<nvwarpSurface_t Tsrc, nvwarpSurface_t Tdst>
__host__ cudaError_t Warp ( dim3  dim_grid,
dim3  dim_block,
cudaStream_t  stream,
const Warp360KernelParams *  params,
cudaTextureObject_t  srcTex,
cudaSurfaceObject_t  dstSurface 
)

Warp to a surface.

Parameters
[in]dim_gridThe number of blocks in the grid.
[in]dim_blockThe size of each block in the grid.
[in]streamThe stream on which the CUDA kernel should run.
[in]paramsThe parameters describing the projection
[in]streamThe CUDA stream to be used for the computation.
[in]srcTexThe source texture.
[out]dstSurfaceRender onto this surface.
Returns
cudaSuccess If successful.

◆ Warp() [2/2]

template<nvwarpSurface_t Tsrc, nvwarpSurface_t Tdst>
__host__ cudaError_t Warp ( dim3  dim_grid,
dim3  dim_block,
cudaStream_t  stream,
const Warp360KernelParams *  params,
cudaTextureObject_t  srcTex,
void *  dstAddr,
size_t  dstRowBytes 
)

Warp to a pitched buffer.

Parameters
[in]dim_gridThe number of blocks in the grid.
[in]dim_blockThe size of each block in the grid.
[in]streamThe stream on which the CUDA kernel should run.
[in]paramsThe parameters describing the projection
[in]streamThe CUDA stream to be used for the computation.
[in]srcTexThe source texture.
[out]dstAddrThe address of the destination buffer pixel (0,0) on the device.
[in]dstRowBytesThe byte stride between pixels vertically.
Returns
cudaSuccess If successful.