NVIDIA DeepStream SDK API Reference5.0 Release |
Copyright (c) 2019, NVIDIA CORPORATION.
All rights reserved.
NVIDIA Corporation and its licensors retain all intellectual property and proprietary rights in and to this software, related documentation and any modifications thereto. Any use, reproduction, disclosure or distribution of this software and related documentation without an express license agreement from NVIDIA Corporation is strictly prohibited.
NvBufSurfTransform Interface
This file specifies the NvBufSurfTransform image transformation APIs.
The NvBufSurfTransform API provides methods to set and get session parameters and to transform and composite APIs.
Definition in file nvbufsurftransform.h.
Go to the source code of this file.
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... | |
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 133 of file nvbufsurftransform.h.
Specifies compute devices used by NvBufSurfTransform.
Definition at line 42 of file nvbufsurftransform.h.
Specifies error codes returned by NvBufSurfTransform functions.
Definition at line 102 of file nvbufsurftransform.h.
Specifies video flip methods.
Supported only for Jetson.
Definition at line 57 of file nvbufsurftransform.h.
Specifies video interpolation methods.
Definition at line 81 of file nvbufsurftransform.h.
Specifies transform types.
Definition at line 119 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. |