NVIDIA DeepStream SDK API Reference

7.0 Release
dsexample_lib.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2017-2020 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 
13 #ifndef __DSEXAMPLE_LIB__
14 #define __DSEXAMPLE_LIB__
15 
16 #define MAX_LABEL_SIZE 128
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
20 
21 typedef struct DsExampleCtx DsExampleCtx;
22 
23 // Init parameters structure as input, required for instantiating dsexample_lib
24 typedef struct
25 {
26  // Width at which frame/object will be scaled
28  // height at which frame/object will be scaled
30  // Flag to indicate whether operating on crops of full frame
31  int fullFrame;
33 
34 // Detected/Labelled object structure, stores bounding box info along with label
35 typedef struct
36 {
37  float left;
38  float top;
39  float width;
40  float height;
41  char label[MAX_LABEL_SIZE];
43 
44 // Output data returned after processing
45 typedef struct
46 {
48  DsExampleObject object[4];
50 
51 // Initialize library context
53 
54 // Dequeue processed output
55 DsExampleOutput *DsExampleProcess (DsExampleCtx *ctx, unsigned char *data);
56 
57 // Deinitialize library context
59 
60 #ifdef __cplusplus
61 }
62 #endif
63 
64 #endif
DsExampleCtxInit
DsExampleCtx * DsExampleCtxInit(DsExampleInitParams *init_params)
DsExampleCtx
struct DsExampleCtx DsExampleCtx
Definition: dsexample_lib.h:21
DsExampleInitParams::fullFrame
int fullFrame
Definition: dsexample_lib.h:31
DsExampleProcess
DsExampleOutput * DsExampleProcess(DsExampleCtx *ctx, unsigned char *data)
DsExampleObject::left
float left
Definition: dsexample_lib.h:37
DsExampleObject::top
float top
Definition: dsexample_lib.h:38
DsExampleObject
Definition: dsexample_lib.h:35
DsExampleInitParams::processingHeight
int processingHeight
Definition: dsexample_lib.h:29
DsExampleOutput
Definition: dsexample_lib.h:45
DsExampleOutput::numObjects
int numObjects
Definition: dsexample_lib.h:47
MAX_LABEL_SIZE
#define MAX_LABEL_SIZE
Definition: dsexample_lib.h:16
DsExampleInitParams
Definition: dsexample_lib.h:24
DsExampleObject::height
float height
Definition: dsexample_lib.h:40
DsExampleCtxDeinit
void DsExampleCtxDeinit(DsExampleCtx *ctx)
DsExampleObject::width
float width
Definition: dsexample_lib.h:39
DsExampleInitParams::processingWidth
int processingWidth
Definition: dsexample_lib.h:27