NVIDIA DeepStream SDK API Reference5.0 Release |
Defines types and functions of the NvBufSurfTransform application programming interface.
Data Structures | |
struct | NvBufSurfTransformRect |
Holds the coordinates of a rectangle. More... | |
struct | _NvBufSurfTransformConfigParams |
Holds configuration parameters for a transform/composite session. More... | |
struct | _NvBufSurfaceTransformParams |
Holds transform parameters for a transform call. More... | |
struct | _NvBufSurfTransformCompositeParams |
Holds composite parameters for a composite call. More... | |
Typedefs | |
typedef struct _NvBufSurfTransformConfigParams | NvBufSurfTransformConfigParams |
Holds configuration parameters for a transform/composite session. More... | |
typedef struct _NvBufSurfaceTransformParams | NvBufSurfTransformParams |
Holds transform parameters for a transform call. More... | |
typedef struct _NvBufSurfTransformCompositeParams | NvBufSurfTransformCompositeParams |
Holds composite parameters for a composite call. More... | |
Functions | |
NvBufSurfTransform_Error | NvBufSurfTransformSetSessionParams (NvBufSurfTransformConfigParams *config_params) |
Sets user-defined session parameters. More... | |
NvBufSurfTransform_Error | NvBufSurfTransformGetSessionParams (NvBufSurfTransformConfigParams *config_params) |
Gets the session parameters used by NvBufSurfTransform(). More... | |
NvBufSurfTransform_Error | NvBufSurfTransform (NvBufSurface *src, NvBufSurface *dst, NvBufSurfTransformParams *transform_params) |
Performs a transformation on batched input images. More... | |
NvBufSurfTransform_Error | NvBufSurfTransformComposite (NvBufSurface *src, NvBufSurface *dst, NvBufSurfTransformCompositeParams *composite_params) |
Composites batched input images. More... | |
Holds composite parameters for a composite call.
typedef struct _NvBufSurfTransformConfigParams NvBufSurfTransformConfigParams |
Holds configuration parameters for a transform/composite session.
typedef struct _NvBufSurfaceTransformParams NvBufSurfTransformParams |
Holds transform parameters for a transform call.
Specifies types of composition operations.
Enumerator | |
---|---|
NVBUFSURF_TRANSFORM_COMPOSITE |
Specifies a flag to describe the requested compositing operation. |
Definition at line 131 of file nvbufsurftransform.h.
Specifies compute devices used by NvBufSurfTransform.
Definition at line 40 of file nvbufsurftransform.h.
Specifies error codes returned by NvBufSurfTransform functions.
Definition at line 100 of file nvbufsurftransform.h.
Specifies video flip methods.
Supported only for Jetson.
Definition at line 55 of file nvbufsurftransform.h.
Specifies video interpolation methods.
Definition at line 79 of file nvbufsurftransform.h.
Specifies transform types.
Definition at line 117 of file nvbufsurftransform.h.
NvBufSurfTransform_Error NvBufSurfTransform | ( | NvBufSurface * | src, |
NvBufSurface * | dst, | ||
NvBufSurfTransformParams * | transform_params | ||
) |
Performs a transformation on batched input images.
If user-defined session parameters are to be used, call NvBufSurfTransformSetSessionParams() before calling this function.
[in] | src | A pointer to input batched buffers to be transformed. |
[out] | dst | A pointer to a caller-allocated location where transformed output is to be stored. |
[in] | transform_params | A pointer to an NvBufSurfTransformParams structure which specifies the type of transform to be performed. They may include any combination of scaling, format conversion, and cropping for both source and destination. Flipping and rotation are supported on VIC. |
NvBufSurfTransform_Error NvBufSurfTransformComposite | ( | NvBufSurface * | src, |
NvBufSurface * | dst, | ||
NvBufSurfTransformCompositeParams * | composite_params | ||
) |
Composites batched input images.
The compositer scales and stitches batched buffers indicated by src into a single destination buffer, dst.
If user-defined session parameters are to be used, call NvBufSurfTransformSetSessionParams() before calling this function.
[in] | src | A pointer to input batched buffers to be transformed. |
[out] | dst | A pointer a caller-allocated location (a single buffer) where composited output is to be stored. |
[in] | composite_params | A pointer to an NvBufSurfTransformCompositeParams structure which specifies the compositing operation to be performed, e.g., the source and destination rectangles in src and dst. |
NvBufSurfTransform_Error NvBufSurfTransformGetSessionParams | ( | NvBufSurfTransformConfigParams * | config_params | ) |
Gets the session parameters used by NvBufSurfTransform().
[out] | config_params | A pointer to a caller-allocated structure to be populated with the session parameters used. |
NvBufSurfTransform_Error NvBufSurfTransformSetSessionParams | ( | NvBufSurfTransformConfigParams * | config_params | ) |
Sets user-defined session parameters.
If user-defined session parameters are set, they override the NvBufSurfTransform() function's default session.
[in] | config_params | A pointer to a structure that is populated with the session parameters to be used. |