NVIDIA DeepStream SDK API Reference

9.0 Release
9.0/sources/apps/apps-common/includes/deepstream_visionencoder.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2026 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 __NVGSTDS_VISIONENCODER_H__
14 #define __NVGSTDS_VISIONENCODER_H__
15 
16 #include <gst/gst.h>
17 
18 #ifdef __cplusplus
19 extern "C"
20 {
21 #endif
22 
23 typedef struct
24 {
25  gboolean enable;
26  gchar *model_variant;
27  guint batch_size;
28  gchar *device;
29  guint min_crop_size;
30  gboolean verbose;
31  guint gpu_id;
32  gchar *backend; // "transformers", "triton", or "tensorrt"
33  gchar *triton_url; // Triton gRPC endpoint (host:port)
34  gchar *triton_model; // Model name in Triton repository
35  guint skip_interval; // Frame skip interval (0=none, 1=every other, 2=every 3rd, etc.)
36  gchar *embedding_classes; // Semicolon-separated list of classes to generate embeddings for
37  gchar *onnx_model; // Path to ONNX model for TensorRT engine building
38  gchar *tensorrt_engine; // Path to TensorRT engine file (for direct TensorRT backend)
40 
41 typedef struct
42 {
43  GstElement *bin;
44  GstElement *queue;
45  GstElement *visionencoder;
47 
50 
51 #ifdef __cplusplus
52 }
53 #endif
54 
55 #endif /* __NVGSTDS_VISIONENCODER_H__ */
NvDsVisionEncoderConfig
Definition: sources/apps/apps-common/includes/deepstream_visionencoder.h:23
create_visionencoder_bin
gboolean create_visionencoder_bin(NvDsVisionEncoderConfig *config, NvDsVisionEncoderBin *bin)
NvDsVisionEncoderBin
Definition: sources/apps/apps-common/includes/deepstream_visionencoder.h:41