NVIDIA DeepStream SDK API Reference

4.0.1 Release

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Groups
nvbufsurftransform.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved.
3  *
4  * NVIDIA Corporation and its licensors retain all intellectual property
5  * and proprietary rights in and to this software, related documentation
6  * and any modifications thereto. Any use, reproduction, disclosure or
7  * distribution of this software and related documentation without an express
8  * license agreement from NVIDIA Corporation is strictly prohibited.
9  *
10  */
11 
33 #ifndef NVBUFSURFTRANSFORM_H_
34 #define NVBUFSURFTRANSFORM_H_
35 #include <stdio.h>
36 #include <cuda.h>
37 #include <cuda_runtime.h>
38 #include <npp.h>
39 #include "nvbufsurface.h"
40 
41 #ifdef __cplusplus
42 extern "C" {
43 #endif
44 
54 typedef enum
55 {
64 
65 
69 typedef enum
70 {
88 
89 
93 typedef enum
94 {
110 
114 typedef enum
115 {
127 
131 typedef enum {
141 
145 typedef enum {
149 
153 typedef struct
154 {
156  uint32_t top;
158  uint32_t left;
160  uint32_t width;
162  uint32_t height;
164 
169 {
173 
175  int32_t gpu_id;
176 
179  cudaStream_t cuda_stream;
180 
182 
187 {
189  uint32_t transform_flag;
201 
206 {
208  uint32_t composite_flag;
210  uint32_t input_buf_count;
217 
231 (NvBufSurfTransformConfigParams *config_params);
232 
243 (NvBufSurfTransformConfigParams *config_params);
244 
269  NvBufSurfTransformParams *transform_params);
270 
291  NvBufSurface *dst, NvBufSurfTransformCompositeParams *composite_params);
292 
293 #ifdef __cplusplus
294 }
295 #endif
296 #endif
297 
struct _NvBufSurfTransformConfigParams NvBufSurfTransformConfigParams
Holds configuration parameters for a transform/composite session.
uint32_t left
Holds the rectangle left side.
NvBufSurfTransformRect * dst_comp_rect
Holds destination rectangle coordinates of input buffers for compositing.
Specifies GPU-Cubic, VIC-5 Tap interpolation.
Specifies a runtime execution error.
Specifies VIC as a compute device for Jetson or dGPU for an x86_64 system.
NvBufSurface Interface
Specifies a successful operation.
uint32_t transform_flag
Holds a flag that indicates which transform parameters are valid.
Specifies an error in source or destination ROI.
Specifies rotating 270 degree clockwise.
uint32_t composite_flag
Holds a flag that indicates which composition parameters are valid.
NvBufSurfTransform_Compute compute_mode
Holds the mode of operation: VIC (Jetson) or GPU (iGPU + dGPU) If VIC is configured, gpu_id is ignored.
Specifies GPU-Nearest, VIC-Nearest interpolation.
NvBufSurfTransform_Error
Specifies error codes returned by NvBufSurfTransform functions.
NvBufSurfTransform_Error NvBufSurfTransform(NvBufSurface *src, NvBufSurface *dst, NvBufSurfTransformParams *transform_params)
Performs a transformation on batched input images.
Specifies GPU-Ignored, VIC-Nicest interpolation.
Specifies video flip inverse transpose.
Specifies rotating 90 degrees clockwise.
Specifies GPU-Super, VIC-10 Tap interpolation.
uint32_t input_buf_count
Holds the number of input buffers to be composited.
NvBufSurfTransform_Flip transform_flip
Holds the flip method.
Specifies video flip transpose.
NvBufSurfTransform_Inter
Specifies video interpolation methods.
NvBufSurfTransformRect * src_comp_rect
Holds source rectangle coordinates of input buffers for compositing.
Specifies invalid input parameters.
Specifies a transform to set the filter type.
Specifies Bilinear Interpolation Method interpolation.
Specifies an unsupported feature or format.
NvBufSurfTransform_Inter transform_filter
Holds a transform filter.
Specifies a transform to set the flip method.
Specifies a transform to crop the source rectangle.
NvBufSurfTransformRect * src_rect
Holds a pointer to a list of source rectangle coordinates for a crop operation.
uint32_t height
Holds the rectangle height.
NvBufSurfTransform_Compute
Specifies compute devices used by NvBufSurfTransform.
cudaStream_t cuda_stream
User configure stream to be used.
Specifies GPU-Lanzos, VIC-Smart interpolation.
uint32_t top
Holds the rectangle top.
NvBufSurfTransform_Error NvBufSurfTransformSetSessionParams(NvBufSurfTransformConfigParams *config_params)
Sets user-defined session parameters.
Holds the coordinates of a rectangle.
NvBufSurfTransform_Error NvBufSurfTransformGetSessionParams(NvBufSurfTransformConfigParams *config_params)
Gets the session parameters used by NvBufSurfTransform().
NvBufSurfTransform_Flip
Specifies video flip methods.
NvBufSurfTransform_Transform_Flag
Specifies transform types.
Holds information about batched buffers.
Definition: nvbufsurface.h:283
struct _NvBufSurfTransformCompositeParams NvBufSurfTransformCompositeParams
Holds composite parameters for a composite call.
Holds configuration parameters for a transform/composite session.
uint32_t width
Holds the rectangle width.
Specifies Nearest Interpolation Method interpolation.
Specifies a transform to crop the destination rectangle.
NvBufSurfTransform_Error NvBufSurfTransformComposite(NvBufSurface *src, NvBufSurface *dst, NvBufSurfTransformCompositeParams *composite_params)
Composites batched input images.
Specifies rotating 180 degree clockwise.
Holds composite parameters for a composite call.
Specifies video flip with respect to the Y-axis.
struct _NvBufSurfaceTransformParams NvBufSurfTransformParams
Holds transform parameters for a transform call.
Specifies that the GPU is the compute device.
Holds transform parameters for a transform call.
Specifies no video flip.
Specifies a flag to describe the requested compositing operation.
Specifies that the VIC as a compute device.
NvBufSurfTransformRect * dst_rect
Holds a pointer to list of destination rectangle coordinates for a crop operation.
NvBufSurfTransform_Composite_Flag
Specifies types of composition operations.
Specifies video flip with respect to the X-axis.
int32_t gpu_id
Holds the GPU ID to be used for processing.