NVIDIA DeepStream SDK API Reference

7.0 Release
nvdspreprocess_lib.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2021 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
3  * SPDX-License-Identifier: LicenseRef-NvidiaProprietary
4  *
5  * NVIDIA CORPORATION, its affiliates and licensors retain all intellectual
6  * property and proprietary rights in and to this material, related
7  * documentation and any modifications thereto. Any use, reproduction,
8  * disclosure or distribution of this material and related documentation
9  * without an express license agreement from NVIDIA CORPORATION or
10  * its affiliates is strictly prohibited.
11  */
12 
28 #ifndef __NVDSPREPROCESS_LIB__
29 #define __NVDSPREPROCESS_LIB__
30 
31 #include "nvbufsurface.h"
32 #include "nvbufsurftransform.h"
33 #include "nvdspreprocess_interface.h"
34 
36 #define _PATH_MAX 4096
37 
39 #define NVDSPREPROCESS_USER_CONFIGS_PIXEL_NORMALIZATION_FACTOR "pixel-normalization-factor"
40 
42 #define NVDSPREPROCESS_USER_CONFIGS_MEAN_FILE "mean-file"
43 
45 #define NVDSPREPROCESS_USER_CONFIGS_OFFSETS "offsets"
46 
50 extern "C"
52  NvBufSurface *out_surf,
53  CustomTransformParams &params);
54 
58 extern "C"
60  NvBufSurface *out_surf,
61  CustomTransformParams &params);
62 
66 extern "C"
68  CustomTensorParams &tensorParam, NvDsPreProcessAcquirer *acquirer);
69 
73 extern "C"
75 
79 extern "C"
80 void deInitLib(CustomCtx *ctx);
81 
82 #endif
CustomInitParams
Custom Initialization parameter for custom library.
Definition: gst-plugins/gst-nvdspreprocess/include/nvdspreprocess_interface.h:184
initLib
CustomCtx * initLib(CustomInitParams initparams)
custom library initialization function
NvBufSurface
Holds information about batched buffers.
Definition: nvbufsurface.h:509
NvDsPreProcessBatch
Holds information about the batch of frames to be inferred.
Definition: gst-plugins/gst-nvdspreprocess/include/nvdspreprocess_interface.h:247
NvDsPreProcessStatus
NvDsPreProcessStatus
Enum for the status codes returned by NvDsPreProcessImpl.
Definition: gst-plugins/gst-nvdspreprocess/include/nvdspreprocess_interface.h:49
CustomTransformParams
custom transformation parameter for calling nvbufsurftransform api for scaling and converting the ROI...
Definition: gst-plugins/gst-nvdspreprocess/include/nvdspreprocess_interface.h:116
CustomAsyncTransformation
NvDsPreProcessStatus CustomAsyncTransformation(NvBufSurface *in_surf, NvBufSurface *out_surf, CustomTransformParams &params)
Custom Asynchronus group transformation function.
CustomTensorPreparation
NvDsPreProcessStatus CustomTensorPreparation(CustomCtx *ctx, NvDsPreProcessBatch *batch, NvDsPreProcessCustomBuf *&buf, CustomTensorParams &tensorParam, NvDsPreProcessAcquirer *acquirer)
Custom tensor preparation function for NCHW/NHWC network order.
deInitLib
void deInitLib(CustomCtx *ctx)
custom library deinitialization function
CustomTensorParams
Tensor params passed to custom library for tensor preparation.
Definition: gst-plugins/gst-nvdspreprocess/include/nvdspreprocess_interface.h:173
NvDsPreProcessCustomBuf
Custom Buffer passed to the custom lib for preparing tensor.
Definition: gst-plugins/gst-nvdspreprocess/include/nvdspreprocess_interface.h:199
NvDsPreProcessAcquirer
class for acquiring and releasing a buffer from tensor pool by custom lib.
Definition: gst-plugins/gst-nvdspreprocess/include/nvdspreprocess_interface.h:209
CustomCtx
struct CustomCtx CustomCtx
Context for custom library.
Definition: gst-plugins/gst-nvdspreprocess/include/nvdspreprocess_interface.h:44
nvbufsurftransform.h
nvbufsurface.h
CustomTransformation
NvDsPreProcessStatus CustomTransformation(NvBufSurface *in_surf, NvBufSurface *out_surf, CustomTransformParams &params)
Custom transformation function for group.