Go to the source code of this file.
|
| 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) |
| |
◆ 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_grid | The number of blocks in the grid. |
| [in] | dim_block | The size of each block in the grid. |
| [in] | stream | The stream on which the CUDA kernel should run. |
| [in] | params | The parameters describing the projection |
| [in] | stream | The CUDA stream to be used for the computation. |
| [in] | srcTex | The source texture. |
| [out] | dstSurface | Render 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_grid | The number of blocks in the grid. |
| [in] | dim_block | The size of each block in the grid. |
| [in] | stream | The stream on which the CUDA kernel should run. |
| [in] | params | The parameters describing the projection |
| [in] | stream | The CUDA stream to be used for the computation. |
| [in] | srcTex | The source texture. |
| [out] | dstAddr | The address of the destination buffer pixel (0,0) on the device. |
| [in] | dstRowBytes | The byte stride between pixels vertically. |
- Returns
- cudaSuccess If successful.