NVIDIA DeepStream SDK API Reference

5.0 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 {
52 
53 
57 typedef enum
58 {
76 
77 
81 typedef enum
82 {
98 
102 typedef enum
103 {
115 
119 typedef enum {
129 
133 typedef enum {
137 
141 typedef struct
142 {
144  uint32_t top;
146  uint32_t left;
148  uint32_t width;
150  uint32_t height;
152 
157 {
161 
163  int32_t gpu_id;
164 
167  cudaStream_t cuda_stream;
168 
170 
175 {
177  uint32_t transform_flag;
189 
194 {
196  uint32_t composite_flag;
198  uint32_t input_buf_count;
205 
219 (NvBufSurfTransformConfigParams *config_params);
220 
231 (NvBufSurfTransformConfigParams *config_params);
232 
257  NvBufSurfTransformParams *transform_params);
258 
279  NvBufSurface *dst, NvBufSurfTransformCompositeParams *composite_params);
280 
281 #ifdef __cplusplus
282 }
283 #endif
284 #endif
uint32_t left
Holds the rectangle left side.
NvBufSurfTransformRect * dst_comp_rect
Holds destination rectangle coordinates of input buffers for compositing.
NvBufSurface Interface
struct _NvBufSurfaceTransformParams NvBufSurfTransformParams
Holds transform parameters for a transform call.
Specifies a transform to crop the destination rectangle.
uint32_t transform_flag
Holds a flag that indicates which transform parameters are valid.
NvBufSurfTransform_Error NvBufSurfTransform(NvBufSurface *src, NvBufSurface *dst, NvBufSurfTransformParams *transform_params)
Performs a transformation on batched input images.
NvBufSurfTransform_Transform_Flag
Specifies transform types.
struct _NvBufSurfTransformCompositeParams NvBufSurfTransformCompositeParams
Holds composite parameters for a composite call.
Specifies an error in source or destination ROI.
uint32_t composite_flag
Holds a flag that indicates which composition parameters are valid.
NvBufSurfTransform_Error NvBufSurfTransformComposite(NvBufSurface *src, NvBufSurface *dst, NvBufSurfTransformCompositeParams *composite_params)
Composites batched input images.
NvBufSurfTransform_Compute compute_mode
Holds the mode of operation: VIC (Jetson) or GPU (iGPU + dGPU) If VIC is configured, gpu_id is ignored.
Specifies VIC as a compute device for Jetson or dGPU for an x86_64 system.
Specifies an unsupported feature or format.
uint32_t input_buf_count
Holds the number of input buffers to be composited.
NvBufSurfTransform_Flip transform_flip
Holds the flip method.
Specifies a transform to crop the source rectangle.
NvBufSurfTransformRect * src_comp_rect
Holds source rectangle coordinates of input buffers for compositing.
Specifies a transform to set the filter type.
Specifies video flip transpose.
Specifies a transform to set the flip method.
Specifies video flip with respect to the X-axis.
NvBufSurfTransform_Inter transform_filter
Holds a transform filter.
Specifies rotating 180 degree clockwise.
NvBufSurfTransformRect * src_rect
Holds a pointer to a list of source rectangle coordinates for a crop operation.
uint32_t height
Holds the rectangle height.
cudaStream_t cuda_stream
User configure stream to be used.
uint32_t top
Holds the rectangle top.
Specifies no video flip.
Specifies that the GPU is the compute device.
NvBufSurfTransform_Composite_Flag
Specifies types of composition operations.
Specifies rotating 270 degree clockwise.
NvBufSurfTransform_Inter
Specifies video interpolation methods.
Holds the coordinates of a rectangle.
NvBufSurfTransform_Error NvBufSurfTransformSetSessionParams(NvBufSurfTransformConfigParams *config_params)
Sets user-defined session parameters.
NvBufSurfTransform_Compute
Specifies compute devices used by NvBufSurfTransform.
Holds information about batched buffers.
Definition: nvbufsurface.h:278
Holds configuration parameters for a transform/composite session.
uint32_t width
Holds the rectangle width.
Specifies a successful operation.
Specifies invalid input parameters.
Specifies GPU-Nearest, VIC-Nearest interpolation.
Specifies Nearest Interpolation Method interpolation.
NvBufSurfTransform_Error NvBufSurfTransformGetSessionParams(NvBufSurfTransformConfigParams *config_params)
Gets the session parameters used by NvBufSurfTransform().
Specifies video flip with respect to the Y-axis.
Specifies GPU-Lanzos, VIC-Smart interpolation.
Specifies that the VIC as a compute device.
Holds composite parameters for a composite call.
Specifies GPU-Ignored, VIC-Nicest interpolation.
Specifies GPU-Super, VIC-10 Tap interpolation.
Specifies video flip inverse transpose.
Specifies a runtime execution error.
NvBufSurfTransform_Flip
Specifies video flip methods.
Specifies rotating 90 degrees clockwise.
Specifies GPU-Cubic, VIC-5 Tap interpolation.
struct _NvBufSurfTransformConfigParams NvBufSurfTransformConfigParams
Holds configuration parameters for a transform/composite session.
Specifies Bilinear Interpolation Method interpolation.
Holds transform parameters for a transform call.
Specifies a flag to describe the requested compositing operation.
NvBufSurfTransform_Error
Specifies error codes returned by NvBufSurfTransform functions.
NvBufSurfTransformRect * dst_rect
Holds a pointer to list of destination rectangle coordinates for a crop operation.
int32_t gpu_id
Holds the GPU ID to be used for processing.