NVIDIA DeepStream SDK API Reference

4.0.2 Release

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
nvbufsurftransform.h
Go to the documentation of this file.
1 
21 #ifndef NVBUFSURFTRANSFORM_H_
22 #define NVBUFSURFTRANSFORM_H_
23 #include <stdio.h>
24 #include <cuda.h>
25 #include <cuda_runtime.h>
26 #include <npp.h>
27 #include "nvbufsurface.h"
28 
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32 
42 typedef enum
43 {
51 
52 
56 typedef enum
57 {
75 
76 
80 typedef enum
81 {
97 
101 typedef enum
102 {
114 
118 typedef enum {
128 
132 typedef enum {
136 
140 typedef struct
141 {
143  uint32_t top;
145  uint32_t left;
147  uint32_t width;
149  uint32_t height;
151 
156 {
160 
162  int32_t gpu_id;
163 
167  cudaStream_t cuda_stream;
168 
170 
175 {
178  uint32_t transform_flag;
190 
195 {
197  uint32_t composite_flag;
199  uint32_t input_buf_count;
205 
215 (NvBufSurfTransformConfigParams *config_params);
216 
226 (NvBufSurfTransformConfigParams *config_params);
227 
249  NvBufSurfTransformParams *transform_params);
250 
267  NvBufSurface *dst, NvBufSurfTransformCompositeParams *composite_params);
268 
269 #ifdef __cplusplus
270 }
271 #endif
272 #endif
uint32_t left
rectangle left.
NvBufSurfTransformRect * dst_comp_rect
destination rectangle coordinates of input buffers for composition.
NvBufSurface Interface
struct _NvBufSurfaceTransformParams NvBufSurfTransformParams
Holds Transform parameters for Transform Call.
transform flag to crop destination rectangle.
uint32_t transform_flag
flag to indicate which of the transform parameters are valid.
NvBufSurfTransform_Error NvBufSurfTransform(NvBufSurface *src, NvBufSurface *dst, NvBufSurfTransformParams *transform_params)
Performs Transformation on batched input images.
NvBufSurfTransform_Transform_Flag
Defines flags to indicate for valid transform.
struct _NvBufSurfTransformCompositeParams NvBufSurfTransformCompositeParams
Holds Composite parameters for Composite Call.
Error in source or destination ROI.
uint32_t composite_flag
flag to indicate which of the composition parameters are valid.
NvBufSurfTransform_Error NvBufSurfTransformComposite(NvBufSurface *src, NvBufSurface *dst, NvBufSurfTransformCompositeParams *composite_params)
Performs Composition on batched input images.
NvBufSurfTransform_Compute compute_mode
Mode of operation, VIC (Jetson) or GPU (iGPU + dGPU) if VIC configured, gpu_id will be ignored...
Use VIC as compute device for Jetson or GPU for x86_64 system.
Unsupported Feature/Format.
uint32_t input_buf_count
number of the input buffers to be composited.
NvBufSurfTransform_Flip transform_flip
flip method.
transform flag to crop source rectangle.
NvBufSurfTransformRect * src_comp_rect
source rectangle coordinates of input buffers for composition.
transform flag to set filter type.
Video flip transpose.
transform flag to set flip method.
Video flip with respect to X-axis.
NvBufSurfTransform_Inter transform_filter
transform filter.
Video flip rotate 180 degree clockwise.
NvBufSurfTransformRect * src_rect
list of source rectangle coordinates for crop operation
uint32_t height
rectangle height.
cudaStream_t cuda_stream
User configure stream to be used, if NULL default stream will be used ignored if VIC is used...
uint32_t top
rectangle top.
Use GPU as compute device.
NvBufSurfTransform_Composite_Flag
Defines flags that specify valid composition operations.
Video flip rotate 270 degree clockwise.
NvBufSurfTransform_Inter
Defines video interpolation methods.
Holds coordinates for a rectangle.
NvBufSurfTransform_Error NvBufSurfTransformSetSessionParams(NvBufSurfTransformConfigParams *config_params)
Set user defined session parameters to be used, if default session is not to be used by NvBufSurfTran...
NvBufSurfTransform_Compute
Defines compute devices used by NvBufSurfTransform.
Hold the information of batched buffers.
Definition: nvbufsurface.h:264
Holds configuration parameters for Transform/Composite Session.
uint32_t width
rectangle width.
GPU-Nearest, VIC-Nearest.
Nearest Interpolation Method.
NvBufSurfTransform_Error NvBufSurfTransformGetSessionParams(NvBufSurfTransformConfigParams *config_params)
Get current session parameters used by NvBufSurfTransform.
Video flip with respect to Y-axis.
GPU-Lanzos, VIC-Smart.
Use VIC as compute device, only applicable for Jetson.
Holds Composite parameters for Composite Call.
GPU-Ignored, VIC-Nicest.
GPU-Super, VIC-10 Tap.
Video flip inverse transpose.
NvBufSurfTransform_Flip
Defines video flip methods.
Video flip rotate 90 degree clockwise.
struct _NvBufSurfTransformConfigParams NvBufSurfTransformConfigParams
Holds configuration parameters for Transform/Composite Session.
Bilinear Interpolation Method.
Holds Transform parameters for Transform Call.
flag to set for composition.
NvBufSurfTransform_Error
Defines Error codes returned by NvBufSurfTransform APIs.
NvBufSurfTransformRect * dst_rect
list of destination rectangle coordinates for crop operation.
int32_t gpu_id
GPU ID to be used for processing.