![]() |
NVIDIA DeepStream SDK API Reference4.0.2 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.
NvBufSurfTransform APIs provides methods to set / get session parameters and transform / composite APIs.
Definition in file nvbufsurftransform.h.
Go to the source code of this file.
Data Structures | |
struct | NvBufSurfTransformRect |
Holds coordinates for a rectangle. More... | |
struct | _NvBufSurfTransformConfigParams |
Holds configuration parameters for Transform/Composite Session. More... | |
struct | _NvBufSurfaceTransformParams |
Holds Transform parameters for Transform Call. More... | |
struct | _NvBufSurfTransformCompositeParams |
Holds Composite parameters for Composite Call. More... | |
Holds Composite parameters for Composite Call.
typedef struct _NvBufSurfTransformConfigParams NvBufSurfTransformConfigParams |
Holds configuration parameters for Transform/Composite Session.
typedef struct _NvBufSurfaceTransformParams NvBufSurfTransformParams |
Holds Transform parameters for Transform Call.
Defines flags that specify valid composition operations.
Enumerator | |
---|---|
NVBUFSURF_TRANSFORM_COMPOSITE |
flag to set for composition. |
Definition at line 132 of file nvbufsurftransform.h.
Defines compute devices used by NvBufSurfTransform.
Definition at line 42 of file nvbufsurftransform.h.
Defines Error codes returned by NvBufSurfTransform APIs.
Definition at line 101 of file nvbufsurftransform.h.
Defines video flip methods.
Only Supported for Jetson
Definition at line 56 of file nvbufsurftransform.h.
Defines video interpolation methods.
Definition at line 80 of file nvbufsurftransform.h.
Defines flags to indicate for valid transform.
Definition at line 118 of file nvbufsurftransform.h.
NvBufSurfTransform_Error NvBufSurfTransform | ( | NvBufSurface * | src, |
NvBufSurface * | dst, | ||
NvBufSurfTransformParams * | transform_params | ||
) |
Performs Transformation on batched input images.
Transforms batched input pointed by src pointer. Transformation includes scaling / format conversion croping for both source and destination, and all of the above in combination, flip / rotation is supported on VIC, dst pointer is user allocated. Type of Transformation to be done is set in transform_params In case of destination cropping the memory other than crop location is not touched and may have stale information, its callers responsibility to memset it if required before sending for transformation
Use NvBufSurfTransformSetSessionParams before each call, if user defined session parameters are to be used.
[in] | src | pointer to input batched buffers to be transformed. |
[out] | dst | pointer to where transformed output would be stored. |
[in] | transform_params | pointer to NvBufSurfTransformParams structure. |
NvBufSurfTransform_Error NvBufSurfTransformComposite | ( | NvBufSurface * | src, |
NvBufSurface * | dst, | ||
NvBufSurfTransformCompositeParams * | composite_params | ||
) |
Performs Composition on batched input images.
Composites batched input pointed by src pointer. Compositer scales and stitches batched buffers pointed by src into single dst buffer, the parameters for location to be composited is provided by composite_params Use NvBufSurfTransformSetSessionParams before each call, if user defined session parameters are to be used.
[in] | src | pointer to input batched buffers to be transformed. |
[out] | dst | pointer (single buffer) where composited output would be stored. |
[in] | composite_params | pointer to NvBufSurfTransformCompositeParams structure. |
NvBufSurfTransform_Error NvBufSurfTransformGetSessionParams | ( | NvBufSurfTransformConfigParams * | config_params | ) |
Get current session parameters used by NvBufSurfTransform.
[out] | config_params | pointer(caller allocated), populated with session params used. |
NvBufSurfTransform_Error NvBufSurfTransformSetSessionParams | ( | NvBufSurfTransformConfigParams * | config_params | ) |
Set user defined session parameters to be used, if default session is not to be used by NvBufSurfTransform.
[in] | config_params | pointer, populated with session params to be used. |