NVIDIA DeepStream SDK API Reference

7.0 Release
libs/nvds_rest_server/nvds_rest_server.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2022-2024 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 _NVDS_SERVER_H_
14 #define _NVDS_SERVER_H_
15 
16 #include <string>
17 #include <unordered_map>
18 #include <vector>
19 #include <functional>
20 #include "gst-nvdscustomevent.h"
21 #include "gst-nvdscommonconfig.h"
22 #include <json/json.h>
23 #define UNKNOWN_STRING "unknown"
24 #define EMPTY_STRING ""
25 
26 typedef enum
27 {
29  SKIP_FRAMES = 1 << 1,
30  LOW_LATENCY_MODE = 1 << 2,
32 
33 typedef enum
34 {
35  BITRATE = 1 << 0,
36  FORCE_IDR = 1 << 1,
37  FORCE_INTRA = 1 << 2,
38  IFRAME_INTERVAL = 1 << 3,
40 
41 typedef enum
42 {
43  SRC_CROP = 1 << 0,
44  DEST_CROP = 1 << 1,
45  FLIP_METHOD = 1 << 2,
48 
49 typedef enum
50 {
52  MAX_LATENCY = 1 << 1,
54 
55 typedef enum
56 {
57  INFER_INTERVAL = 1 << 0,
59 
60 typedef enum
61 {
64 
65 typedef enum
66 {
69 
70 typedef enum
71 {
72  PROCESS_MODE = 1 << 0,
74 
75 typedef enum
76 {
77  ROI_UPDATE = 1 << 0,
79 
80 typedef enum
81 {
82  QUIT_APP = 1 << 0,
84 
85 typedef enum
86 {
90 
91 typedef enum
92 {
98 
99 typedef enum
100 {
104 
105 typedef enum
106 {
110 
111 typedef enum
112 {
120 
121 typedef enum
122 {
132 
133 typedef enum
134 {
144 
145 typedef enum
146 {
152 
153 typedef enum
154 {
158 
159 typedef enum
160 {
164 
165 typedef enum
166 {
170 
171 typedef enum
172 {
173  StatusOk = 0, // HTTP error code : 200
174  StatusAccepted, // HTTP error code : 202
175  StatusBadRequest, // HTTP error code : 400
176  StatusUnauthorized, // HTTP error code : 401
177  StatusForbidden, // HTTP error code : 403
178  StatusMethodNotAllowed, // HTTP error code : 405
179  StatusNotAcceptable, // HTTP error code : 406
180  StatusProxyAuthenticationRequired, // HTTP error code : 407
181  StatusRequestTimeout, // HTTP error code : 408
182  StatusPreconditionFailed, // HTTP error code : 412
183  StatusPayloadTooLarge, // HTTP error code : 413
184  StatusUriTooLong, // HTTP error code : 414
185  StatusUnsupportedMediaType, // HTTP error code : 415
186  StatusInternalServerError, // HTTP error code : 500
187  StatusNotImplemented // HTTP error code : 501
189 
190 typedef struct NvDsServerErrorInfo
191 {
192  std::pair < int, std::string > err_log;
195 
196 typedef struct NvDsServerDecInfo
197 {
198  std::string root_key;
199  std::string stream_id;
200  guint drop_frame_interval;
201  guint skip_frames;
202  gboolean low_latency_mode;
205  std::string dec_log;
206  std::string uri;
209 
210 typedef struct NvDsServerEncInfo
211 {
212  std::string root_key;
213  std::string stream_id;
214  guint bitrate;
215  gboolean force_idr;
216  gboolean force_intra;
217  guint iframeinterval;
220  std::string enc_log;
221  std::string uri;
224 
225 typedef struct NvDsServerConvInfo
226 {
227  std::string root_key;
228  std::string stream_id;
229  std::string src_crop;
230  std::string dest_crop;
231  guint flip_method;
232  guint interpolation_method;
235  std::string conv_log;
236  std::string uri;
239 
240 typedef struct NvDsServerMuxInfo
241 {
242  std::string root_key;
244  guint max_latency;
247  std::string mux_log;
248  std::string uri;
251 
252 typedef struct NvDsServerRoiInfo
253 {
254  std::string root_key;
255  std::string stream_id;
256  guint roi_count;
257  std::vector < RoiDimension > vect;
260  std::string roi_log;
261  std::string uri;
264 
265 typedef struct NvDsServerStreamInfo
266 {
267  std::string key;
268  std::string value_camera_id;
269  std::string value_camera_name;
270  std::string value_camera_url;
271  std::string value_change;
272 
273  std::string metadata_resolution;
274  std::string metadata_codec;
275  std::string metadata_framerate;
276 
277  std::string headers_source;
278  std::string headers_created_at;
280  std::string stream_log;
281  std::string uri;
284 
285 typedef struct NvDsGetRequestInfo
286 {
287  std::string root_key;
288  std::string stream_id;
291  std::string get_request_log;
292  std::string uri;
293  Json::Value stream_info;
294  std::vector<NvDsSensorInfo*> sensorInfo_vec;
297 
298 typedef struct NvDsServerInferInfo
299 {
300  std::string root_key;
301  std::string stream_id;
302  guint interval;
305  std::string infer_log;
306  std::string uri;
309 
310 typedef struct NvDsServerOsdInfo
311 {
312  std::string root_key;
313  std::string stream_id;
314  guint process_mode;
317  std::string osd_log;
318  std::string uri;
321 
322 typedef struct NvDsServerAppInstanceInfo
323 {
324  std::string root_key;
325  gboolean app_quit;
328  std::string app_log;
329  std::string uri;
332 
333 typedef struct NvDsServerInferServerInfo
334 {
335  std::string root_key;
336  std::string stream_id;
337  guint interval;
340  std::string inferserver_log;
341  std::string uri;
344 
345 typedef struct NvDsServerResponseInfo
346 {
347  std::string status;
348  std::string reason;
349  Json::Value stream_info;
351 
352 typedef struct NvDsServerConfig
353 {
354  std::string ip;
355  std::string port;
357 
358 using cb_func = std::function < NvDsServerStatusCode (const Json::Value & req_info,
359  const Json::Value & in,
360  Json::Value & out, struct mg_connection * conn, void *ctx)>;
361 
362 typedef struct NvDsServerCallbacks
363 {
364  std::function < void (NvDsServerRoiInfo * roi_info, void *ctx) > roi_cb;
365  std::function < void (NvDsServerDecInfo * dec_info, void *ctx) > dec_cb;
366  std::function < void (NvDsServerEncInfo * enc_info, void *ctx) > enc_cb;
367  std::function < void (NvDsServerStreamInfo * stream_info,
368  void *ctx) > stream_cb;
369  std::function < void (NvDsServerInferInfo * infer_info,
370  void *ctx) > infer_cb;
371  std::function < void (NvDsServerConvInfo * conv_info, void *ctx) > conv_cb;
372  std::function < void (NvDsServerMuxInfo * mux_info, void *ctx) > mux_cb;
373  std::function < void (NvDsServerInferServerInfo * inferserver_info,
374  void *ctx) > inferserver_cb;
375  std::function < void (NvDsServerOsdInfo * osd_info, void *ctx) > osd_cb;
376  std::function < void (NvDsServerAppInstanceInfo * appinstance_info,
377  void *ctx) > appinstance_cb;
378  std::function < void (NvDsServerGetRequestInfo * get_request_info,
379  void *ctx) > get_request_cb;
380  std::unordered_map <std::string, cb_func> custom_cb_endpt;
382 
383 class NvDsRestServer;
384 NvDsRestServer* nvds_rest_server_start (NvDsServerConfig * server_config, NvDsServerCallbacks * server_cb);
385 void nvds_rest_server_stop (NvDsRestServer *ctx);
386 bool iequals (const std::string & a, const std::string & b);
387 
388 #endif
StatusOk
@ StatusOk
Definition: libs/nvds_rest_server/nvds_rest_server.h:173
NvDsServerDecInfo
struct NvDsServerDecInfo NvDsServerDecInfo
NvDsServerConvInfo::dest_crop
std::string dest_crop
Definition: includes/nvds_rest_server.h:230
NvDsServerMuxInfo::uri
std::string uri
Definition: includes/nvds_rest_server.h:248
DEST_CROP
@ DEST_CROP
Definition: libs/nvds_rest_server/nvds_rest_server.h:44
NvDsServerOsdStatus
NvDsServerOsdStatus
Definition: includes/nvds_rest_server.h:165
NvDsServerGetRequestStatus
NvDsServerGetRequestStatus
Definition: libs/nvds_rest_server/nvds_rest_server.h:99
StatusNotImplemented
@ StatusNotImplemented
Definition: libs/nvds_rest_server/nvds_rest_server.h:187
NvDsServerRoiInfo::stream_id
std::string stream_id
Definition: includes/nvds_rest_server.h:255
NvDsServerResponseInfo
struct NvDsServerResponseInfo NvDsServerResponseInfo
NvDsServerStreamInfo::metadata_resolution
std::string metadata_resolution
Definition: includes/nvds_rest_server.h:273
NvDsServerInferInfo
struct NvDsServerInferInfo NvDsServerInferInfo
BITRATE_UPDATE_SUCCESS
@ BITRATE_UPDATE_SUCCESS
Definition: libs/nvds_rest_server/nvds_rest_server.h:123
NvDsServerConvPropFlag
NvDsServerConvPropFlag
Definition: libs/nvds_rest_server/nvds_rest_server.h:41
INFER_INTERVAL
@ INFER_INTERVAL
Definition: libs/nvds_rest_server/nvds_rest_server.h:57
NvDsServerMuxInfo::root_key
std::string root_key
Definition: includes/nvds_rest_server.h:242
NvDsServerInferInfo::infer_flag
NvDsServerInferPropFlag infer_flag
Definition: includes/nvds_rest_server.h:304
StatusNotAcceptable
@ StatusNotAcceptable
Definition: libs/nvds_rest_server/nvds_rest_server.h:179
NvDsServerRoiInfo::roi_log
std::string roi_log
Definition: includes/nvds_rest_server.h:260
NvDsServerResponseInfo
Definition: includes/nvds_rest_server.h:345
NvDsServerCallbacks::custom_cb_endpt
std::unordered_map< std::string, cb_func > custom_cb_endpt
Definition: includes/nvds_rest_server.h:380
STREAM_ADD_SUCCESS
@ STREAM_ADD_SUCCESS
Definition: libs/nvds_rest_server/nvds_rest_server.h:93
DROP_FRAME_INTERVAL
@ DROP_FRAME_INTERVAL
Definition: libs/nvds_rest_server/nvds_rest_server.h:28
NvDsServerRoiInfo::roi_flag
NvDsServerRoiPropFlag roi_flag
Definition: includes/nvds_rest_server.h:259
StatusUnsupportedMediaType
@ StatusUnsupportedMediaType
Definition: libs/nvds_rest_server/nvds_rest_server.h:185
StatusAccepted
@ StatusAccepted
Definition: libs/nvds_rest_server/nvds_rest_server.h:174
NvDsServerConvInfo::root_key
std::string root_key
Definition: includes/nvds_rest_server.h:227
SRC_CROP
@ SRC_CROP
Definition: libs/nvds_rest_server/nvds_rest_server.h:43
NvDsServerConvInfo::status
NvDsServerConvStatus status
Definition: includes/nvds_rest_server.h:233
NvDsServerMuxInfo::mux_flag
NvDsServerMuxPropFlag mux_flag
Definition: includes/nvds_rest_server.h:246
NvDsServerStreamInfo
struct NvDsServerStreamInfo NvDsServerStreamInfo
NvDsServerErrorInfo::code
NvDsServerStatusCode code
Definition: includes/nvds_rest_server.h:193
FLIP_METHOD
@ FLIP_METHOD
Definition: libs/nvds_rest_server/nvds_rest_server.h:45
NvDsServerConvInfo::stream_id
std::string stream_id
Definition: includes/nvds_rest_server.h:228
NvDsServerOsdInfo::status
NvDsServerOsdStatus status
Definition: includes/nvds_rest_server.h:315
NvDsServerErrorInfo::err_log
std::pair< int, std::string > err_log
Definition: includes/nvds_rest_server.h:192
BITRATE_UPDATE_FAIL
@ BITRATE_UPDATE_FAIL
Definition: libs/nvds_rest_server/nvds_rest_server.h:124
LOW_LATENCY_MODE_UPDATE_FAIL
@ LOW_LATENCY_MODE_UPDATE_FAIL
Definition: libs/nvds_rest_server/nvds_rest_server.h:118
NvDsServerOsdInfo::uri
std::string uri
Definition: includes/nvds_rest_server.h:318
INTERPOLATION_METHOD_UPDATE_FAIL
@ INTERPOLATION_METHOD_UPDATE_FAIL
Definition: libs/nvds_rest_server/nvds_rest_server.h:140
NvDsServerDecStatus
NvDsServerDecStatus
Definition: includes/nvds_rest_server.h:111
NvDsServerConvInfo::src_crop
std::string src_crop
Definition: includes/nvds_rest_server.h:229
NvDsGetRequestInfo::stream_info
Json::Value stream_info
Definition: includes/nvds_rest_server.h:293
StatusMethodNotAllowed
@ StatusMethodNotAllowed
Definition: libs/nvds_rest_server/nvds_rest_server.h:178
INFERSERVER_INTERVAL_UPDATE_SUCCESS
@ INFERSERVER_INTERVAL_UPDATE_SUCCESS
Definition: libs/nvds_rest_server/nvds_rest_server.h:161
ROI_UPDATE_FAIL
@ ROI_UPDATE_FAIL
Definition: libs/nvds_rest_server/nvds_rest_server.h:108
NvDsServerConfig
struct NvDsServerConfig NvDsServerConfig
NvDsServerGetRequestStatus
NvDsServerGetRequestStatus
Definition: includes/nvds_rest_server.h:99
STREAM_REMOVE_SUCCESS
@ STREAM_REMOVE_SUCCESS
Definition: libs/nvds_rest_server/nvds_rest_server.h:95
NvDsServerDecInfo::err_info
NvDsServerErrorInfo err_info
Definition: includes/nvds_rest_server.h:207
NvDsServerRoiInfo::err_info
NvDsServerErrorInfo err_info
Definition: includes/nvds_rest_server.h:262
NvDsServerEncInfo::force_intra
gboolean force_intra
Definition: includes/nvds_rest_server.h:216
NvDsServerStreamInfo::value_camera_name
std::string value_camera_name
Definition: includes/nvds_rest_server.h:269
NvDsServerInferInfo
Definition: includes/nvds_rest_server.h:298
FORCE_IDR_UPDATE_FAIL
@ FORCE_IDR_UPDATE_FAIL
Definition: libs/nvds_rest_server/nvds_rest_server.h:126
PROCESS_MODE
@ PROCESS_MODE
Definition: libs/nvds_rest_server/nvds_rest_server.h:72
StatusProxyAuthenticationRequired
@ StatusProxyAuthenticationRequired
Definition: libs/nvds_rest_server/nvds_rest_server.h:180
NvDsServerDecInfo::skip_frames
guint skip_frames
Definition: includes/nvds_rest_server.h:201
NvDsServerInferServerInfo::inferserver_flag
NvDsServerInferServerPropFlag inferserver_flag
Definition: includes/nvds_rest_server.h:339
DEST_CROP_UPDATE_SUCCESS
@ DEST_CROP_UPDATE_SUCCESS
Definition: libs/nvds_rest_server/nvds_rest_server.h:135
NvDsServerConfig::ip
std::string ip
Definition: includes/nvds_rest_server.h:354
NvDsServerMuxStatus
NvDsServerMuxStatus
Definition: includes/nvds_rest_server.h:145
NvDsGetRequestInfo::get_request_flag
NvDsServerGetRequestPropFlag get_request_flag
Definition: includes/nvds_rest_server.h:290
DEST_CROP_UPDATE_FAIL
@ DEST_CROP_UPDATE_FAIL
Definition: libs/nvds_rest_server/nvds_rest_server.h:136
NvDsServerCallbacks::osd_cb
std::function< void(NvDsServerOsdInfo *osd_info, void *ctx) > osd_cb
Definition: includes/nvds_rest_server.h:375
NvDsServerStreamInfo::headers_source
std::string headers_source
Definition: includes/nvds_rest_server.h:277
NvDsServerCallbacks
struct NvDsServerCallbacks NvDsServerCallbacks
NvDsServerRoiInfo::vect
std::vector< RoiDimension > vect
Definition: includes/nvds_rest_server.h:257
NvDsServerOsdInfo::process_mode
guint process_mode
Definition: includes/nvds_rest_server.h:314
SRC_CROP_UPDATE_SUCCESS
@ SRC_CROP_UPDATE_SUCCESS
Definition: libs/nvds_rest_server/nvds_rest_server.h:137
NvDsServerStatusCode
NvDsServerStatusCode
Definition: libs/nvds_rest_server/nvds_rest_server.h:171
StatusPreconditionFailed
@ StatusPreconditionFailed
Definition: libs/nvds_rest_server/nvds_rest_server.h:182
NvDsGetRequestInfo::sensorInfo_vec
std::vector< NvDsSensorInfo * > sensorInfo_vec
Definition: includes/nvds_rest_server.h:294
NvDsServerCallbacks::enc_cb
std::function< void(NvDsServerEncInfo *enc_info, void *ctx) > enc_cb
Definition: includes/nvds_rest_server.h:366
NvDsServerStatusCode
NvDsServerStatusCode
Definition: includes/nvds_rest_server.h:171
NvDsServerMuxInfo
Definition: includes/nvds_rest_server.h:240
NvDsServerRoiStatus
NvDsServerRoiStatus
Definition: libs/nvds_rest_server/nvds_rest_server.h:105
NvDsServerResponseInfo::stream_info
Json::Value stream_info
Definition: includes/nvds_rest_server.h:349
QUIT_APP
@ QUIT_APP
Definition: libs/nvds_rest_server/nvds_rest_server.h:82
NvDsServerInferServerInfo
Definition: includes/nvds_rest_server.h:333
NvDsServerAppInstanceInfo
struct NvDsServerAppInstanceInfo NvDsServerAppInstanceInfo
NvDsServerCallbacks::appinstance_cb
std::function< void(NvDsServerAppInstanceInfo *appinstance_info, void *ctx) > appinstance_cb
Definition: includes/nvds_rest_server.h:377
FORCE_IDR_UPDATE_SUCCESS
@ FORCE_IDR_UPDATE_SUCCESS
Definition: libs/nvds_rest_server/nvds_rest_server.h:125
ROI_UPDATE
@ ROI_UPDATE
Definition: libs/nvds_rest_server/nvds_rest_server.h:77
StatusInternalServerError
@ StatusInternalServerError
Definition: libs/nvds_rest_server/nvds_rest_server.h:186
NvDsServerEncPropFlag
NvDsServerEncPropFlag
Definition: includes/nvds_rest_server.h:33
NvDsServerDecInfo::drop_frame_interval
guint drop_frame_interval
Definition: includes/nvds_rest_server.h:200
NvDsServerGetRequestPropFlag
NvDsServerGetRequestPropFlag
Definition: libs/nvds_rest_server/nvds_rest_server.h:65
STREAM_ADD_FAIL
@ STREAM_ADD_FAIL
Definition: libs/nvds_rest_server/nvds_rest_server.h:94
NvDsServerMuxInfo::err_info
NvDsServerErrorInfo err_info
Definition: includes/nvds_rest_server.h:249
iequals
bool iequals(const std::string &a, const std::string &b)
NvDsServerEncInfo::uri
std::string uri
Definition: includes/nvds_rest_server.h:221
StatusUriTooLong
@ StatusUriTooLong
Definition: libs/nvds_rest_server/nvds_rest_server.h:184
NvDsServerConvInfo::flip_method
guint flip_method
Definition: includes/nvds_rest_server.h:231
NvDsServerOsdInfo
struct NvDsServerOsdInfo NvDsServerOsdInfo
StatusPayloadTooLarge
@ StatusPayloadTooLarge
Definition: libs/nvds_rest_server/nvds_rest_server.h:183
NvDsServerInferServerPropFlag
NvDsServerInferServerPropFlag
Definition: includes/nvds_rest_server.h:60
NvDsServerRoiPropFlag
NvDsServerRoiPropFlag
Definition: libs/nvds_rest_server/nvds_rest_server.h:75
NvDsServerCallbacks::conv_cb
std::function< void(NvDsServerConvInfo *conv_info, void *ctx) > conv_cb
Definition: includes/nvds_rest_server.h:371
NvDsServerDecInfo::stream_id
std::string stream_id
Definition: includes/nvds_rest_server.h:199
BATCHED_PUSH_TIMEOUT
@ BATCHED_PUSH_TIMEOUT
Definition: libs/nvds_rest_server/nvds_rest_server.h:51
NvDsServerEncInfo::status
NvDsServerEncStatus status
Definition: includes/nvds_rest_server.h:218
IFRAME_INTERVAL_UPDATE_FAIL
@ IFRAME_INTERVAL_UPDATE_FAIL
Definition: libs/nvds_rest_server/nvds_rest_server.h:130
NvDsServerCallbacks
Definition: includes/nvds_rest_server.h:362
BATCHED_PUSH_TIMEOUT_UPDATE_SUCCESS
@ BATCHED_PUSH_TIMEOUT_UPDATE_SUCCESS
Definition: libs/nvds_rest_server/nvds_rest_server.h:147
NvDsServerConfig::port
std::string port
Definition: includes/nvds_rest_server.h:355
NvDsServerGetRequestPropFlag
NvDsServerGetRequestPropFlag
Definition: includes/nvds_rest_server.h:65
nvds_rest_server_start
NvDsRestServer * nvds_rest_server_start(NvDsServerConfig *server_config, NvDsServerCallbacks *server_cb)
NvDsServerAppInstanceInfo::err_info
NvDsServerErrorInfo err_info
Definition: includes/nvds_rest_server.h:330
NvDsServerInferInfo::infer_log
std::string infer_log
Definition: includes/nvds_rest_server.h:305
NvDsServerCallbacks::inferserver_cb
std::function< void(NvDsServerInferServerInfo *inferserver_info, void *ctx) > inferserver_cb
Definition: includes/nvds_rest_server.h:374
NvDsServerOsdInfo::stream_id
std::string stream_id
Definition: includes/nvds_rest_server.h:313
NvDsServerInferServerInfo::status
NvDsServerInferServerStatus status
Definition: includes/nvds_rest_server.h:338
NvDsServerEncInfo::root_key
std::string root_key
Definition: includes/nvds_rest_server.h:212
FORCE_INTRA
@ FORCE_INTRA
Definition: libs/nvds_rest_server/nvds_rest_server.h:37
SKIP_FRAMES
@ SKIP_FRAMES
Definition: libs/nvds_rest_server/nvds_rest_server.h:29
NvDsServerDecInfo::dec_flag
NvDsServerDecPropFlag dec_flag
Definition: includes/nvds_rest_server.h:204
FLIP_METHOD_UPDATE_SUCCESS
@ FLIP_METHOD_UPDATE_SUCCESS
Definition: libs/nvds_rest_server/nvds_rest_server.h:141
NvDsServerCallbacks::dec_cb
std::function< void(NvDsServerDecInfo *dec_info, void *ctx) > dec_cb
Definition: includes/nvds_rest_server.h:365
NvDsServerStreamInfo::value_camera_url
std::string value_camera_url
Definition: includes/nvds_rest_server.h:270
NvDsServerInferServerStatus
NvDsServerInferServerStatus
Definition: includes/nvds_rest_server.h:159
NvDsServerEncInfo::bitrate
guint bitrate
Definition: includes/nvds_rest_server.h:214
NvDsServerMuxStatus
NvDsServerMuxStatus
Definition: libs/nvds_rest_server/nvds_rest_server.h:145
NvDsServerDecInfo::root_key
std::string root_key
Definition: includes/nvds_rest_server.h:198
NvDsServerOsdPropFlag
NvDsServerOsdPropFlag
Definition: libs/nvds_rest_server/nvds_rest_server.h:70
FORCE_INTRA_UPDATE_FAIL
@ FORCE_INTRA_UPDATE_FAIL
Definition: libs/nvds_rest_server/nvds_rest_server.h:128
INTERPOLATION_METHOD
@ INTERPOLATION_METHOD
Definition: libs/nvds_rest_server/nvds_rest_server.h:46
NvDsServerDecInfo::low_latency_mode
gboolean low_latency_mode
Definition: includes/nvds_rest_server.h:202
NvDsServerAppInstanceInfo::root_key
std::string root_key
Definition: includes/nvds_rest_server.h:324
NvDsServerInferInfo::status
NvDsServerInferStatus status
Definition: includes/nvds_rest_server.h:303
BITRATE
@ BITRATE
Definition: libs/nvds_rest_server/nvds_rest_server.h:35
NvDsServerGetRequestInfo
struct NvDsGetRequestInfo NvDsServerGetRequestInfo
NvDsServerStreamInfo::uri
std::string uri
Definition: includes/nvds_rest_server.h:281
NvDsServerStreamStatus
NvDsServerStreamStatus
Definition: includes/nvds_rest_server.h:91
NvDsServerStreamStatus
NvDsServerStreamStatus
Definition: libs/nvds_rest_server/nvds_rest_server.h:91
SRC_CROP_UPDATE_FAIL
@ SRC_CROP_UPDATE_FAIL
Definition: libs/nvds_rest_server/nvds_rest_server.h:138
NvDsServerRoiStatus
NvDsServerRoiStatus
Definition: includes/nvds_rest_server.h:105
NvDsServerDecInfo::uri
std::string uri
Definition: includes/nvds_rest_server.h:206
NvDsGetRequestInfo
Definition: includes/nvds_rest_server.h:285
NvDsServerInferServerInfo::err_info
NvDsServerErrorInfo err_info
Definition: includes/nvds_rest_server.h:342
NvDsServerInferServerInfo::uri
std::string uri
Definition: includes/nvds_rest_server.h:341
NvDsServerAppInstanceStatus
NvDsServerAppInstanceStatus
Definition: includes/nvds_rest_server.h:85
NvDsServerInferStatus
NvDsServerInferStatus
Definition: libs/nvds_rest_server/nvds_rest_server.h:153
NvDsServerOsdInfo::osd_log
std::string osd_log
Definition: includes/nvds_rest_server.h:317
NvDsServerConvInfo
struct NvDsServerConvInfo NvDsServerConvInfo
NvDsServerConfig
Definition: includes/nvds_rest_server.h:352
NvDsServerEncInfo
Definition: includes/nvds_rest_server.h:210
NvDsGetRequestInfo::status
NvDsServerGetRequestStatus status
Definition: includes/nvds_rest_server.h:289
NvDsServerInferPropFlag
NvDsServerInferPropFlag
Definition: includes/nvds_rest_server.h:55
MAX_LATENCY_UPDATE_SUCCESS
@ MAX_LATENCY_UPDATE_SUCCESS
Definition: libs/nvds_rest_server/nvds_rest_server.h:149
INFERSERVER_INTERVAL_UPDATE_FAIL
@ INFERSERVER_INTERVAL_UPDATE_FAIL
Definition: libs/nvds_rest_server/nvds_rest_server.h:162
NvDsServerAppInstanceFlag
NvDsServerAppInstanceFlag
Definition: includes/nvds_rest_server.h:80
NvDsServerResponseInfo::reason
std::string reason
Definition: includes/nvds_rest_server.h:348
NvDsServerStreamInfo::metadata_framerate
std::string metadata_framerate
Definition: includes/nvds_rest_server.h:275
MAX_LATENCY
@ MAX_LATENCY
Definition: libs/nvds_rest_server/nvds_rest_server.h:52
StatusBadRequest
@ StatusBadRequest
Definition: libs/nvds_rest_server/nvds_rest_server.h:175
NvDsServerConvInfo::err_info
NvDsServerErrorInfo err_info
Definition: includes/nvds_rest_server.h:237
nvds_rest_server_stop
void nvds_rest_server_stop(NvDsRestServer *ctx)
NvDsServerCallbacks::stream_cb
std::function< void(NvDsServerStreamInfo *stream_info, void *ctx) > stream_cb
Definition: includes/nvds_rest_server.h:368
NvDsServerCallbacks::roi_cb
std::function< void(NvDsServerRoiInfo *roi_info, void *ctx) > roi_cb
Definition: includes/nvds_rest_server.h:364
NvDsServerConvStatus
NvDsServerConvStatus
Definition: libs/nvds_rest_server/nvds_rest_server.h:133
NvDsServerOsdStatus
NvDsServerOsdStatus
Definition: libs/nvds_rest_server/nvds_rest_server.h:165
NvDsServerOsdInfo
Definition: includes/nvds_rest_server.h:310
NvDsServerRoiInfo::roi_count
guint roi_count
Definition: includes/nvds_rest_server.h:256
NvDsServerResponseInfo::status
std::string status
Definition: includes/nvds_rest_server.h:347
NvDsServerRoiInfo::status
NvDsServerRoiStatus status
Definition: includes/nvds_rest_server.h:258
NvDsServerDecInfo
Definition: includes/nvds_rest_server.h:196
LOW_LATENCY_MODE_UPDATE_SUCCESS
@ LOW_LATENCY_MODE_UPDATE_SUCCESS
Definition: libs/nvds_rest_server/nvds_rest_server.h:117
NvDsServerOsdInfo::root_key
std::string root_key
Definition: includes/nvds_rest_server.h:312
INTERPOLATION_METHOD_UPDATE_SUCCESS
@ INTERPOLATION_METHOD_UPDATE_SUCCESS
Definition: libs/nvds_rest_server/nvds_rest_server.h:139
NvDsServerOsdPropFlag
NvDsServerOsdPropFlag
Definition: includes/nvds_rest_server.h:70
NvDsServerDecStatus
NvDsServerDecStatus
Definition: libs/nvds_rest_server/nvds_rest_server.h:111
NvDsServerRoiPropFlag
NvDsServerRoiPropFlag
Definition: includes/nvds_rest_server.h:75
NvDsServerEncInfo::stream_id
std::string stream_id
Definition: includes/nvds_rest_server.h:213
NvDsServerConvPropFlag
NvDsServerConvPropFlag
Definition: includes/nvds_rest_server.h:41
cb_func
std::function< NvDsServerStatusCode(const Json::Value &req_info, const Json::Value &in, Json::Value &out, struct mg_connection *conn, void *ctx)> cb_func
Definition: includes/nvds_rest_server.h:360
NvDsServerMuxInfo
struct NvDsServerMuxInfo NvDsServerMuxInfo
NvDsServerMuxInfo::max_latency
guint max_latency
Definition: includes/nvds_rest_server.h:244
QUIT_SUCCESS
@ QUIT_SUCCESS
Definition: libs/nvds_rest_server/nvds_rest_server.h:87
NvDsServerAppInstanceInfo::app_quit
gboolean app_quit
Definition: includes/nvds_rest_server.h:325
NvDsServerStreamInfo::stream_log
std::string stream_log
Definition: includes/nvds_rest_server.h:280
NvDsServerRoiInfo
Definition: includes/nvds_rest_server.h:252
DROP_FRAME_INTERVAL_UPDATE_SUCCESS
@ DROP_FRAME_INTERVAL_UPDATE_SUCCESS
Definition: libs/nvds_rest_server/nvds_rest_server.h:113
NvDsGetRequestInfo::err_info
NvDsServerErrorInfo err_info
Definition: includes/nvds_rest_server.h:295
PROCESS_MODE_UPDATE_FAIL
@ PROCESS_MODE_UPDATE_FAIL
Definition: libs/nvds_rest_server/nvds_rest_server.h:168
StatusUnauthorized
@ StatusUnauthorized
Definition: libs/nvds_rest_server/nvds_rest_server.h:176
GET_LIVE_STREAM_INFO_FAIL
@ GET_LIVE_STREAM_INFO_FAIL
Definition: libs/nvds_rest_server/nvds_rest_server.h:102
NvDsServerStreamInfo
Definition: includes/nvds_rest_server.h:265
STREAM_REMOVE_FAIL
@ STREAM_REMOVE_FAIL
Definition: libs/nvds_rest_server/nvds_rest_server.h:96
NvDsGetRequestInfo::get_request_log
std::string get_request_log
Definition: includes/nvds_rest_server.h:291
NvDsServerEncStatus
NvDsServerEncStatus
Definition: libs/nvds_rest_server/nvds_rest_server.h:121
NvDsServerConvStatus
NvDsServerConvStatus
Definition: includes/nvds_rest_server.h:133
NvDsServerAppInstanceInfo::status
NvDsServerAppInstanceStatus status
Definition: includes/nvds_rest_server.h:326
NvDsServerEncPropFlag
NvDsServerEncPropFlag
Definition: libs/nvds_rest_server/nvds_rest_server.h:33
NvDsServerAppInstanceFlag
NvDsServerAppInstanceFlag
Definition: libs/nvds_rest_server/nvds_rest_server.h:80
NvDsServerRoiInfo::uri
std::string uri
Definition: includes/nvds_rest_server.h:261
NvDsServerErrorInfo
struct NvDsServerErrorInfo NvDsServerErrorInfo
NvDsServerEncInfo::iframeinterval
guint iframeinterval
Definition: includes/nvds_rest_server.h:217
NvDsServerCallbacks::get_request_cb
std::function< void(NvDsServerGetRequestInfo *get_request_info, void *ctx) > get_request_cb
Definition: includes/nvds_rest_server.h:379
NvDsServerDecInfo::status
NvDsServerDecStatus status
Definition: includes/nvds_rest_server.h:203
NvDsGetRequestInfo::root_key
std::string root_key
Definition: includes/nvds_rest_server.h:287
NvDsServerMuxInfo::mux_log
std::string mux_log
Definition: includes/nvds_rest_server.h:247
QUIT_FAIL
@ QUIT_FAIL
Definition: libs/nvds_rest_server/nvds_rest_server.h:88
SKIP_FRAMES_UPDATE_SUCCESS
@ SKIP_FRAMES_UPDATE_SUCCESS
Definition: libs/nvds_rest_server/nvds_rest_server.h:115
NvDsServerEncInfo
struct NvDsServerEncInfo NvDsServerEncInfo
NvDsServerConvInfo::interpolation_method
guint interpolation_method
Definition: includes/nvds_rest_server.h:232
NvDsServerDecInfo::dec_log
std::string dec_log
Definition: includes/nvds_rest_server.h:205
NvDsServerInferServerInfo::root_key
std::string root_key
Definition: includes/nvds_rest_server.h:335
StatusRequestTimeout
@ StatusRequestTimeout
Definition: libs/nvds_rest_server/nvds_rest_server.h:181
NvDsServerRoiInfo::root_key
std::string root_key
Definition: includes/nvds_rest_server.h:254
DROP_FRAME_INTERVAL_UPDATE_FAIL
@ DROP_FRAME_INTERVAL_UPDATE_FAIL
Definition: libs/nvds_rest_server/nvds_rest_server.h:114
NvDsGetRequestInfo::uri
std::string uri
Definition: includes/nvds_rest_server.h:292
NvDsServerInferServerStatus
NvDsServerInferServerStatus
Definition: libs/nvds_rest_server/nvds_rest_server.h:159
NvDsServerOsdInfo::err_info
NvDsServerErrorInfo err_info
Definition: includes/nvds_rest_server.h:319
NvDsServerEncStatus
NvDsServerEncStatus
Definition: includes/nvds_rest_server.h:121
NvDsServerRoiInfo
struct NvDsServerRoiInfo NvDsServerRoiInfo
INFER_INTERVAL_UPDATE_FAIL
@ INFER_INTERVAL_UPDATE_FAIL
Definition: libs/nvds_rest_server/nvds_rest_server.h:156
NvDsServerStreamInfo::metadata_codec
std::string metadata_codec
Definition: includes/nvds_rest_server.h:274
FLIP_METHOD_UPDATE_FAIL
@ FLIP_METHOD_UPDATE_FAIL
Definition: libs/nvds_rest_server/nvds_rest_server.h:142
NvDsServerEncInfo::enc_log
std::string enc_log
Definition: includes/nvds_rest_server.h:220
NvDsServerInferInfo::interval
guint interval
Definition: includes/nvds_rest_server.h:302
NvDsServerOsdInfo::osd_flag
NvDsServerOsdPropFlag osd_flag
Definition: includes/nvds_rest_server.h:316
INFERSERVER_INTERVAL
@ INFERSERVER_INTERVAL
Definition: libs/nvds_rest_server/nvds_rest_server.h:62
NvDsServerEncInfo::enc_flag
NvDsServerEncPropFlag enc_flag
Definition: includes/nvds_rest_server.h:219
NvDsServerAppInstanceInfo::app_log
std::string app_log
Definition: includes/nvds_rest_server.h:328
INFER_INTERVAL_UPDATE_SUCCESS
@ INFER_INTERVAL_UPDATE_SUCCESS
Definition: libs/nvds_rest_server/nvds_rest_server.h:155
NvDsServerMuxInfo::batched_push_timeout
gint batched_push_timeout
Definition: includes/nvds_rest_server.h:243
NvDsServerInferInfo::root_key
std::string root_key
Definition: includes/nvds_rest_server.h:300
NvDsServerDecPropFlag
NvDsServerDecPropFlag
Definition: includes/nvds_rest_server.h:26
NvDsServerMuxPropFlag
NvDsServerMuxPropFlag
Definition: includes/nvds_rest_server.h:49
BATCHED_PUSH_TIMEOUT_UPDATE_FAIL
@ BATCHED_PUSH_TIMEOUT_UPDATE_FAIL
Definition: libs/nvds_rest_server/nvds_rest_server.h:148
NvDsServerMuxPropFlag
NvDsServerMuxPropFlag
Definition: libs/nvds_rest_server/nvds_rest_server.h:49
NvDsServerAppInstanceStatus
NvDsServerAppInstanceStatus
Definition: libs/nvds_rest_server/nvds_rest_server.h:85
NvDsServerConvInfo::conv_log
std::string conv_log
Definition: includes/nvds_rest_server.h:235
NvDsServerInferServerPropFlag
NvDsServerInferServerPropFlag
Definition: libs/nvds_rest_server/nvds_rest_server.h:60
IFRAME_INTERVAL_UPDATE_SUCCESS
@ IFRAME_INTERVAL_UPDATE_SUCCESS
Definition: libs/nvds_rest_server/nvds_rest_server.h:129
NvDsServerConvInfo::uri
std::string uri
Definition: includes/nvds_rest_server.h:236
NvDsServerInferInfo::err_info
NvDsServerErrorInfo err_info
Definition: includes/nvds_rest_server.h:307
FORCE_IDR
@ FORCE_IDR
Definition: libs/nvds_rest_server/nvds_rest_server.h:36
NvDsServerAppInstanceInfo
Definition: includes/nvds_rest_server.h:322
NvDsServerAppInstanceInfo::uri
std::string uri
Definition: includes/nvds_rest_server.h:329
NvDsServerInferInfo::uri
std::string uri
Definition: includes/nvds_rest_server.h:306
NvDsServerEncInfo::err_info
NvDsServerErrorInfo err_info
Definition: includes/nvds_rest_server.h:222
NvDsServerStreamInfo::key
std::string key
Definition: includes/nvds_rest_server.h:267
NvDsServerConvInfo
Definition: includes/nvds_rest_server.h:225
NvDsServerStreamInfo::value_camera_id
std::string value_camera_id
Definition: includes/nvds_rest_server.h:268
PROCESS_MODE_UPDATE_SUCCESS
@ PROCESS_MODE_UPDATE_SUCCESS
Definition: libs/nvds_rest_server/nvds_rest_server.h:167
MAX_LATENCY_UPDATE_FAIL
@ MAX_LATENCY_UPDATE_FAIL
Definition: libs/nvds_rest_server/nvds_rest_server.h:150
NvDsServerInferPropFlag
NvDsServerInferPropFlag
Definition: libs/nvds_rest_server/nvds_rest_server.h:55
SKIP_FRAMES_UPDATE_FAIL
@ SKIP_FRAMES_UPDATE_FAIL
Definition: libs/nvds_rest_server/nvds_rest_server.h:116
NvDsServerStreamInfo::value_change
std::string value_change
Definition: includes/nvds_rest_server.h:271
NvDsServerMuxInfo::status
NvDsServerMuxStatus status
Definition: includes/nvds_rest_server.h:245
NvDsServerInferServerInfo::stream_id
std::string stream_id
Definition: includes/nvds_rest_server.h:336
FORCE_INTRA_UPDATE_SUCCESS
@ FORCE_INTRA_UPDATE_SUCCESS
Definition: libs/nvds_rest_server/nvds_rest_server.h:127
LOW_LATENCY_MODE
@ LOW_LATENCY_MODE
Definition: libs/nvds_rest_server/nvds_rest_server.h:30
NvDsServerConvInfo::conv_flag
NvDsServerConvPropFlag conv_flag
Definition: includes/nvds_rest_server.h:234
NvDsServerStreamInfo::status
NvDsServerStreamStatus status
Definition: includes/nvds_rest_server.h:279
NvDsServerInferInfo::stream_id
std::string stream_id
Definition: includes/nvds_rest_server.h:301
NvDsServerStreamInfo::headers_created_at
std::string headers_created_at
Definition: includes/nvds_rest_server.h:278
NvDsServerEncInfo::force_idr
gboolean force_idr
Definition: includes/nvds_rest_server.h:215
NvDsServerInferStatus
NvDsServerInferStatus
Definition: includes/nvds_rest_server.h:153
NvDsServerCallbacks::infer_cb
std::function< void(NvDsServerInferInfo *infer_info, void *ctx) > infer_cb
Definition: includes/nvds_rest_server.h:370
NvDsGetRequestInfo::stream_id
std::string stream_id
Definition: includes/nvds_rest_server.h:288
NvDsServerErrorInfo
Definition: includes/nvds_rest_server.h:190
NvDsServerInferServerInfo::inferserver_log
std::string inferserver_log
Definition: includes/nvds_rest_server.h:340
NvDsServerStreamInfo::err_info
NvDsServerErrorInfo err_info
Definition: includes/nvds_rest_server.h:282
NvDsServerInferServerInfo::interval
guint interval
Definition: includes/nvds_rest_server.h:337
NvDsServerDecPropFlag
NvDsServerDecPropFlag
Definition: libs/nvds_rest_server/nvds_rest_server.h:26
NvDsServerAppInstanceInfo::appinstance_flag
NvDsServerAppInstanceFlag appinstance_flag
Definition: includes/nvds_rest_server.h:327
NvDsServerInferServerInfo
struct NvDsServerInferServerInfo NvDsServerInferServerInfo
NvDsServerCallbacks::mux_cb
std::function< void(NvDsServerMuxInfo *mux_info, void *ctx) > mux_cb
Definition: includes/nvds_rest_server.h:372
ROI_UPDATE_SUCCESS
@ ROI_UPDATE_SUCCESS
Definition: libs/nvds_rest_server/nvds_rest_server.h:107
GET_LIVE_STREAM_INFO
@ GET_LIVE_STREAM_INFO
Definition: libs/nvds_rest_server/nvds_rest_server.h:67
GET_LIVE_STREAM_INFO_SUCCESS
@ GET_LIVE_STREAM_INFO_SUCCESS
Definition: libs/nvds_rest_server/nvds_rest_server.h:101
StatusForbidden
@ StatusForbidden
Definition: libs/nvds_rest_server/nvds_rest_server.h:177
IFRAME_INTERVAL
@ IFRAME_INTERVAL
Definition: libs/nvds_rest_server/nvds_rest_server.h:38