NVIDIA DeepStream SDK API Reference

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

Detailed Description

Create a cubic environment map.

Definition in file sources/libs/nvdewarper/Warp360/src/NVWarpCubeMap.h.

Go to the source code of this file.

Data Structures

struct  nvwarpFaceDescription_t
 There is a description for each of the 6 faces. More...
 

Typedefs

typedef enum nvwarpFaceID_t nvwarpFaceID_t
 This ID is used to identify both the look-at direction and the up direction for each face. More...
 
typedef struct nvwarpFaceDescription_t nvwarpFaceDescription_t
 There is a description for each of the 6 faces. More...
 

Enumerations

enum  nvwarpFaceID_t {
  NVWARP_FRONT = 0,
  NVWARP_RIGHT = 1,
  NVWARP_BACK = 2,
  NVWARP_LEFT = 3,
  NVWARP_TOP = 4,
  NVWARP_BOTTOM = 5,
  NVWARP_FRONT = 0,
  NVWARP_RIGHT = 1,
  NVWARP_BACK = 2,
  NVWARP_LEFT = 3,
  NVWARP_TOP = 4,
  NVWARP_BOTTOM = 5
}
 This ID is used to identify both the look-at direction and the up direction for each face. More...
 

Functions

nvwarpResult nvwarpIntoCubemap (nvwarpHandle han, cudaStream_t stream, cudaTextureObject_t srcTex, const nvwarpFaceDescription_t faceDesc[6], unsigned faceDim, int interpolateEdges, void *dstAddr, size_t dstRowBytes)
 Generate a cube map. More...
 

Typedef Documentation

◆ nvwarpFaceDescription_t

There is a description for each of the 6 faces.

This can describe all of the formats and their rotational variants: H-cross, V-cross, 3x2, 2x3, 1x6, 6x1.

◆ nvwarpFaceID_t

This ID is used to identify both the look-at direction and the up direction for each face.

Enumeration Type Documentation

◆ nvwarpFaceID_t

This ID is used to identify both the look-at direction and the up direction for each face.

Enumerator
NVWARP_FRONT 
NVWARP_RIGHT 

Toward the front face.

NVWARP_BACK 

Toward the right face.

NVWARP_LEFT 

Toward the back face.

NVWARP_TOP 

Toward the left face.

NVWARP_BOTTOM 

Toward the top face.

NVWARP_FRONT 
NVWARP_RIGHT 

Toward the front face.

NVWARP_BACK 

Toward the right face.

NVWARP_LEFT 

Toward the back face.

NVWARP_TOP 

Toward the left face.

NVWARP_BOTTOM 

Toward the top face.

Definition at line 32 of file sources/libs/nvdewarper/Warp360/src/NVWarpCubeMap.h.

Function Documentation

◆ nvwarpIntoCubemap()

nvwarpResult nvwarpIntoCubemap ( nvwarpHandle  han,
cudaStream_t  stream,
cudaTextureObject_t  srcTex,
const nvwarpFaceDescription_t  faceDesc[6],
unsigned  faceDim,
int  interpolateEdges,
void *  dstAddr,
size_t  dstRowBytes 
)

Generate a cube map.

Parameters
[in]hanThe Warp360 instance. This should be initialized properly for the source and warp type (typically NVWARP_EQUIRECT_PERSPECTIVE, but NVWARP_FISHEYE_PERSPECTIVE can be used for a 360 fisheye).
[in,out]streamThe CUDA stream on which the rendering is to be performed, or 0 for the default stream.
[in,out]srcTexThe source texture, appropriately initialized and buffered. Clamp the edges if the source wraps around.
[in,out]faceDescAn array of six descriptors for each face.
[in,out]faceDimThe dimension, in linear pixels, for each face, which will be (faceDim X faceDim).
[in,out]interpolateEdgesIf 1, the cube map will interpolate the edges; this necessarily duplicates the pixels on adjacent faces. If 0, the pixels will be sampled a half pixel away from the edges, a more uniform distribution. Greater values will extrapolate beyond the edges by half pixels; this can be useful for motion estimation.
[in,out]dstAddrA pointer to pixel (0,0) in the destination CUDA buffer.
[in,out]dstRowBytesThe byte stride between pixels vertically in the destination CUDA buffer.
Returns
NVWARP_SUCCESS if successful.