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 struct nvwarpFaceDescription_t 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.
| typedef enum nvwarpFaceID_t nvwarpFaceID_t |
This ID is used to identify both the look-at direction and the up direction for each face.
| enum nvwarpFaceID_t |
This ID is used to identify both the look-at direction and the up direction for each face.
Definition at line 32 of file sources/libs/nvdewarper/Warp360/src/NVWarpCubeMap.h.
| 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.
| [in] | han | The 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] | stream | The CUDA stream on which the rendering is to be performed, or 0 for the default stream. |
| [in,out] | srcTex | The source texture, appropriately initialized and buffered. Clamp the edges if the source wraps around. |
| [in,out] | faceDesc | An array of six descriptors for each face. |
| [in,out] | faceDim | The dimension, in linear pixels, for each face, which will be (faceDim X faceDim). |
| [in,out] | interpolateEdges | If 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] | dstAddr | A pointer to pixel (0,0) in the destination CUDA buffer. |
| [in,out] | dstRowBytes | The byte stride between pixels vertically in the destination CUDA buffer. |