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 /*
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 
21 #ifndef NVBUFSURFTRANSFORM_H_
22 #define NVBUFSURFTRANSFORM_H_
23 #include <cuda.h>
24 #include <cuda_runtime.h>
25 #include "nvbufsurface.h"
26 
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30 
40 typedef enum
41 {
50 
51 
55 typedef enum
56 {
74 
75 
79 typedef enum
80 {
96 
100 typedef enum
101 {
113 
117 typedef enum {
127 
131 typedef enum {
135 
139 typedef struct
140 {
142  uint32_t top;
144  uint32_t left;
146  uint32_t width;
148  uint32_t height;
150 
155 {
159 
161  int32_t gpu_id;
162 
165  cudaStream_t cuda_stream;
166 
168 
173 {
175  uint32_t transform_flag;
187 
192 {
194  uint32_t composite_flag;
196  uint32_t input_buf_count;
203 
217 (NvBufSurfTransformConfigParams *config_params);
218 
229 (NvBufSurfTransformConfigParams *config_params);
230 
255  NvBufSurfTransformParams *transform_params);
256 
277  NvBufSurface *dst, NvBufSurfTransformCompositeParams *composite_params);
279 #ifdef __cplusplus
280 }
281 #endif
282 #endif
NvBufSurfTransform_Error NvBufSurfTransformSetSessionParams(NvBufSurfTransformConfigParams *config_params)
Sets user-defined session parameters.
uint32_t left
Holds the rectangle left side.
Specifies video flip inverse transpose.
NvBufSurfTransformRect * dst_comp_rect
Holds destination rectangle coordinates of input buffers for compositing.
NvBufSurfTransform_Composite_Flag
Specifies types of composition operations.
NvBufSurface Interface
Specifies invalid input parameters.
Specifies GPU-Super, VIC-10 Tap interpolation.
uint32_t transform_flag
Holds a flag that indicates which transform parameters are valid.
NvBufSurfTransform_Error NvBufSurfTransformComposite(NvBufSurface *src, NvBufSurface *dst, NvBufSurfTransformCompositeParams *composite_params)
Composites batched input images.
uint32_t composite_flag
Holds a flag that indicates which composition parameters are valid.
struct _NvBufSurfTransformCompositeParams NvBufSurfTransformCompositeParams
Holds composite parameters for a composite call.
NvBufSurfTransform_Compute compute_mode
Holds the mode of operation: VIC (Jetson) or GPU (iGPU + dGPU) If VIC is configured, gpu_id is ignored.
Specifies an unsupported feature or format.
NvBufSurfTransform_Error NvBufSurfTransform(NvBufSurface *src, NvBufSurface *dst, NvBufSurfTransformParams *transform_params)
Performs a transformation on batched input images.
Specifies no video flip.
NvBufSurfTransform_Compute
Specifies compute devices used by NvBufSurfTransform.
Specifies GPU-Cubic, VIC-5 Tap interpolation.
Specifies GPU-Nearest, VIC-Nearest interpolation.
Specifies Nearest Interpolation Method interpolation.
Specifies GPU-Lanzos, VIC-Smart interpolation.
uint32_t input_buf_count
Holds the number of input buffers to be composited.
NvBufSurfTransform_Flip transform_flip
Holds the flip method.
struct _NvBufSurfTransformConfigParams NvBufSurfTransformConfigParams
Holds configuration parameters for a transform/composite session.
Specifies that the GPU is the compute device.
NvBufSurfTransformRect * src_comp_rect
Holds source rectangle coordinates of input buffers for compositing.
Specifies a runtime execution error.
Specifies that the VIC as a compute device.
Specifies video flip transpose.
struct _NvBufSurfaceTransformParams NvBufSurfTransformParams
Holds transform parameters for a transform call.
NvBufSurfTransform_Inter transform_filter
Holds a transform filter.
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.
Holds the coordinates of a rectangle.
NvBufSurfTransform_Error
Specifies error codes returned by NvBufSurfTransform functions.
Holds information about batched buffers.
Definition: nvbufsurface.h:284
Specifies an error in source or destination ROI.
Specifies rotating 90 degrees clockwise.
Holds configuration parameters for a transform/composite session.
Specifies a flag to describe the requested compositing operation.
uint32_t width
Holds the rectangle width.
Specifies video flip with respect to the Y-axis.
Specifies GPU-Ignored, VIC-Nicest interpolation.
Specifies VIC as a compute device for Jetson or dGPU for an x86_64 system.
Holds composite parameters for a composite call.
Specifies a transform to crop the destination rectangle.
NvBufSurfTransform_Transform_Flag
Specifies transform types.
Specifies a transform to set the flip method.
Holds transform parameters for a transform call.
NvBufSurfTransform_Inter
Specifies video interpolation methods.
Specifies a transform to crop the source rectangle.
Specifies rotating 180 degree clockwise.
Specifies a successful operation.
Specifies rotating 270 degree clockwise.
NvBufSurfTransform_Error NvBufSurfTransformGetSessionParams(NvBufSurfTransformConfigParams *config_params)
Gets the session parameters used by NvBufSurfTransform().
Specifies a transform to set the filter type.
Specifies video flip with respect to the X-axis.
NvBufSurfTransformRect * dst_rect
Holds a pointer to list of destination rectangle coordinates for a crop operation.
Specifies Bilinear Interpolation Method interpolation.
NvBufSurfTransform_Flip
Specifies video flip methods.
int32_t gpu_id
Holds the GPU ID to be used for processing.