NVIDIA DeepStream SDK API Reference
8.0 Release
cuda/dsexample_lib/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
27
int
processingWidth;
28
// height at which frame/object will be scaled
29
int
processingHeight;
30
// Flag to indicate whether operating on crops of full frame
31
int
fullFrame;
32
}
DsExampleInitParams
;
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
];
42
}
DsExampleObject
;
43
44
// Output data returned after processing
45
typedef
struct
46
{
47
int
numObjects;
48
DsExampleObject
object
[4];
49
}
DsExampleOutput
;
50
51
// Initialize library context
52
DsExampleCtx
*
DsExampleCtxInit
(
DsExampleInitParams
*init_params);
53
54
// Dequeue processed output
55
DsExampleOutput
*
DsExampleProcess
(
DsExampleCtx
*ctx,
unsigned
char
*data);
56
57
// Deinitialize library context
58
void
DsExampleCtxDeinit
(
DsExampleCtx
*ctx);
59
60
#ifdef __cplusplus
61
}
62
#endif
63
64
#endif
MAX_LABEL_SIZE
#define MAX_LABEL_SIZE
Definition:
cuda/dsexample_lib/dsexample_lib.h:16
DsExampleObject
Definition:
dsexample_lib/dsexample_lib.h:35
DsExampleCtx
struct DsExampleCtx DsExampleCtx
Definition:
dsexample_lib/dsexample_lib.h:21
DsExampleCtxDeinit
void DsExampleCtxDeinit(DsExampleCtx *ctx)
DsExampleOutput
Definition:
dsexample_lib/dsexample_lib.h:45
DsExampleProcess
DsExampleOutput * DsExampleProcess(DsExampleCtx *ctx, unsigned char *data)
DsExampleInitParams
Definition:
dsexample_lib/dsexample_lib.h:24
DsExampleCtxInit
DsExampleCtx * DsExampleCtxInit(DsExampleInitParams *init_params)
Privacy Policy
|
Manage My Privacy
|
Do Not Sell or Share My Data
|
Terms of Service
|
Accessibility
|
Corporate Policies
|
Product Security
|
Contact
© 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
NVIDIA Confidential | Subject to Change | For test and development only.
Tue Sep 9 2025 11:36:23 | PR-09318-R32