NVIDIA DeepStream SDK API Reference

7.0 Release
includes/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;
201  guint skip_frames;
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;
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;
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;
317  std::string osd_log;
318  std::string uri;
321 
323 {
324  std::string root_key;
325  gboolean app_quit;
328  std::string app_log;
329  std::string uri;
332 
334 {
335  std::string root_key;
336  std::string stream_id;
337  guint interval;
340  std::string inferserver_log;
341  std::string uri;
344 
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
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
INFERSERVER_INTERVAL
@ INFERSERVER_INTERVAL
Definition: includes/nvds_rest_server.h:62
NvDsServerOsdStatus
NvDsServerOsdStatus
Definition: includes/nvds_rest_server.h:165
NvDsServerRoiInfo::stream_id
std::string stream_id
Definition: includes/nvds_rest_server.h:255
NvDsServerStreamInfo::metadata_resolution
std::string metadata_resolution
Definition: includes/nvds_rest_server.h:273
NvDsServerResponseInfo
struct NvDsServerResponseInfo NvDsServerResponseInfo
GET_LIVE_STREAM_INFO_SUCCESS
@ GET_LIVE_STREAM_INFO_SUCCESS
Definition: includes/nvds_rest_server.h:101
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
FORCE_INTRA
@ FORCE_INTRA
Definition: includes/nvds_rest_server.h:37
BITRATE
@ BITRATE
Definition: includes/nvds_rest_server.h:35
NvDsServerRoiInfo::roi_log
std::string roi_log
Definition: includes/nvds_rest_server.h:260
NvDsServerResponseInfo
Definition: includes/nvds_rest_server.h:345
INTERPOLATION_METHOD
@ INTERPOLATION_METHOD
Definition: includes/nvds_rest_server.h:46
STREAM_REMOVE_SUCCESS
@ STREAM_REMOVE_SUCCESS
Definition: includes/nvds_rest_server.h:95
NvDsServerCallbacks::custom_cb_endpt
std::unordered_map< std::string, cb_func > custom_cb_endpt
Definition: includes/nvds_rest_server.h:380
ROI_UPDATE_FAIL
@ ROI_UPDATE_FAIL
Definition: includes/nvds_rest_server.h:108
NvDsServerRoiInfo::roi_flag
NvDsServerRoiPropFlag roi_flag
Definition: includes/nvds_rest_server.h:259
BATCHED_PUSH_TIMEOUT_UPDATE_FAIL
@ BATCHED_PUSH_TIMEOUT_UPDATE_FAIL
Definition: includes/nvds_rest_server.h:148
NvDsServerConvInfo::root_key
std::string root_key
Definition: includes/nvds_rest_server.h:227
FLIP_METHOD_UPDATE_FAIL
@ FLIP_METHOD_UPDATE_FAIL
Definition: includes/nvds_rest_server.h:142
NvDsServerConvInfo::status
NvDsServerConvStatus status
Definition: includes/nvds_rest_server.h:233
NvDsServerMuxInfo::mux_flag
NvDsServerMuxPropFlag mux_flag
Definition: includes/nvds_rest_server.h:246
NvDsServerErrorInfo::code
NvDsServerStatusCode code
Definition: includes/nvds_rest_server.h:193
gst-nvdscustomevent.h
ROI_UPDATE_SUCCESS
@ ROI_UPDATE_SUCCESS
Definition: includes/nvds_rest_server.h:107
SRC_CROP_UPDATE_FAIL
@ SRC_CROP_UPDATE_FAIL
Definition: includes/nvds_rest_server.h:138
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
FORCE_IDR
@ FORCE_IDR
Definition: includes/nvds_rest_server.h:36
NvDsServerOsdInfo::uri
std::string uri
Definition: includes/nvds_rest_server.h:318
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
NvDsServerGetRequestStatus
NvDsServerGetRequestStatus
Definition: includes/nvds_rest_server.h:99
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
INFERSERVER_INTERVAL_UPDATE_FAIL
@ INFERSERVER_INTERVAL_UPDATE_FAIL
Definition: includes/nvds_rest_server.h:162
NvDsServerInferInfo
Definition: includes/nvds_rest_server.h:298
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
NvDsServerConfig::ip
std::string ip
Definition: includes/nvds_rest_server.h:354
NvDsServerStreamInfo
struct NvDsServerStreamInfo NvDsServerStreamInfo
BITRATE_UPDATE_SUCCESS
@ BITRATE_UPDATE_SUCCESS
Definition: includes/nvds_rest_server.h:123
BITRATE_UPDATE_FAIL
@ BITRATE_UPDATE_FAIL
Definition: includes/nvds_rest_server.h:124
NvDsServerMuxStatus
NvDsServerMuxStatus
Definition: includes/nvds_rest_server.h:145
NvDsGetRequestInfo::get_request_flag
NvDsServerGetRequestPropFlag get_request_flag
Definition: includes/nvds_rest_server.h:290
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
NvDsServerRoiInfo::vect
std::vector< RoiDimension > vect
Definition: includes/nvds_rest_server.h:257
SKIP_FRAMES_UPDATE_SUCCESS
@ SKIP_FRAMES_UPDATE_SUCCESS
Definition: includes/nvds_rest_server.h:115
NvDsServerOsdInfo::process_mode
guint process_mode
Definition: includes/nvds_rest_server.h:314
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
NvDsServerResponseInfo::stream_info
Json::Value stream_info
Definition: includes/nvds_rest_server.h:349
NvDsServerInferServerInfo
Definition: includes/nvds_rest_server.h:333
DEST_CROP_UPDATE_SUCCESS
@ DEST_CROP_UPDATE_SUCCESS
Definition: includes/nvds_rest_server.h:135
NvDsServerCallbacks::appinstance_cb
std::function< void(NvDsServerAppInstanceInfo *appinstance_info, void *ctx) > appinstance_cb
Definition: includes/nvds_rest_server.h:377
StatusAccepted
@ StatusAccepted
Definition: includes/nvds_rest_server.h:174
NvDsServerEncPropFlag
NvDsServerEncPropFlag
Definition: includes/nvds_rest_server.h:33
NvDsServerDecInfo::drop_frame_interval
guint drop_frame_interval
Definition: includes/nvds_rest_server.h:200
NvDsServerMuxInfo::err_info
NvDsServerErrorInfo err_info
Definition: includes/nvds_rest_server.h:249
ROI_UPDATE
@ ROI_UPDATE
Definition: includes/nvds_rest_server.h:77
NvDsServerEncInfo::uri
std::string uri
Definition: includes/nvds_rest_server.h:221
NvDsServerConvInfo::flip_method
guint flip_method
Definition: includes/nvds_rest_server.h:231
NvDsServerInferServerPropFlag
NvDsServerInferServerPropFlag
Definition: includes/nvds_rest_server.h:60
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
nvds_rest_server_stop
void nvds_rest_server_stop(NvDsRestServer *ctx)
NvDsServerEncInfo::status
NvDsServerEncStatus status
Definition: includes/nvds_rest_server.h:218
NvDsServerCallbacks
Definition: includes/nvds_rest_server.h:362
StatusNotAcceptable
@ StatusNotAcceptable
Definition: includes/nvds_rest_server.h:179
NvDsServerConfig::port
std::string port
Definition: includes/nvds_rest_server.h:355
NvDsServerGetRequestPropFlag
NvDsServerGetRequestPropFlag
Definition: includes/nvds_rest_server.h:65
SRC_CROP_UPDATE_SUCCESS
@ SRC_CROP_UPDATE_SUCCESS
Definition: includes/nvds_rest_server.h:137
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
NvDsServerRoiInfo
struct NvDsServerRoiInfo NvDsServerRoiInfo
FORCE_INTRA_UPDATE_SUCCESS
@ FORCE_INTRA_UPDATE_SUCCESS
Definition: includes/nvds_rest_server.h:127
NvDsServerEncInfo::root_key
std::string root_key
Definition: includes/nvds_rest_server.h:212
NvDsServerDecInfo::dec_flag
NvDsServerDecPropFlag dec_flag
Definition: includes/nvds_rest_server.h:204
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
StatusUnsupportedMediaType
@ StatusUnsupportedMediaType
Definition: includes/nvds_rest_server.h:185
NvDsServerEncInfo::bitrate
guint bitrate
Definition: includes/nvds_rest_server.h:214
NvDsServerDecInfo::root_key
std::string root_key
Definition: includes/nvds_rest_server.h:198
iequals
bool iequals(const std::string &a, const std::string &b)
gst-nvdscommonconfig.h
NvDsServerDecInfo::low_latency_mode
gboolean low_latency_mode
Definition: includes/nvds_rest_server.h:202
IFRAME_INTERVAL_UPDATE_FAIL
@ IFRAME_INTERVAL_UPDATE_FAIL
Definition: includes/nvds_rest_server.h:130
NvDsServerGetRequestInfo
struct NvDsGetRequestInfo NvDsServerGetRequestInfo
DROP_FRAME_INTERVAL_UPDATE_FAIL
@ DROP_FRAME_INTERVAL_UPDATE_FAIL
Definition: includes/nvds_rest_server.h:114
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
SKIP_FRAMES_UPDATE_FAIL
@ SKIP_FRAMES_UPDATE_FAIL
Definition: includes/nvds_rest_server.h:116
NvDsServerMuxInfo
struct NvDsServerMuxInfo NvDsServerMuxInfo
NvDsServerStreamInfo::uri
std::string uri
Definition: includes/nvds_rest_server.h:281
GET_LIVE_STREAM_INFO
@ GET_LIVE_STREAM_INFO
Definition: includes/nvds_rest_server.h:67
NvDsServerDecInfo
struct NvDsServerDecInfo NvDsServerDecInfo
StatusForbidden
@ StatusForbidden
Definition: includes/nvds_rest_server.h:177
NvDsServerStreamStatus
NvDsServerStreamStatus
Definition: includes/nvds_rest_server.h:91
NvDsServerRoiStatus
NvDsServerRoiStatus
Definition: includes/nvds_rest_server.h:105
BATCHED_PUSH_TIMEOUT_UPDATE_SUCCESS
@ BATCHED_PUSH_TIMEOUT_UPDATE_SUCCESS
Definition: includes/nvds_rest_server.h:147
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
NvDsServerConfig
struct NvDsServerConfig NvDsServerConfig
NvDsServerInferServerInfo::uri
std::string uri
Definition: includes/nvds_rest_server.h:341
NvDsServerAppInstanceStatus
NvDsServerAppInstanceStatus
Definition: includes/nvds_rest_server.h:85
FLIP_METHOD_UPDATE_SUCCESS
@ FLIP_METHOD_UPDATE_SUCCESS
Definition: includes/nvds_rest_server.h:141
NvDsServerOsdInfo::osd_log
std::string osd_log
Definition: includes/nvds_rest_server.h:317
NvDsServerInferInfo
struct NvDsServerInferInfo NvDsServerInferInfo
NvDsServerConfig
Definition: includes/nvds_rest_server.h:352
NvDsServerEncInfo
Definition: includes/nvds_rest_server.h:210
INFER_INTERVAL
@ INFER_INTERVAL
Definition: includes/nvds_rest_server.h:57
NvDsGetRequestInfo::status
NvDsServerGetRequestStatus status
Definition: includes/nvds_rest_server.h:289
NvDsServerInferPropFlag
NvDsServerInferPropFlag
Definition: includes/nvds_rest_server.h:55
PROCESS_MODE
@ PROCESS_MODE
Definition: includes/nvds_rest_server.h:72
NvDsServerAppInstanceFlag
NvDsServerAppInstanceFlag
Definition: includes/nvds_rest_server.h:80
NvDsServerResponseInfo::reason
std::string reason
Definition: includes/nvds_rest_server.h:348
INFERSERVER_INTERVAL_UPDATE_SUCCESS
@ INFERSERVER_INTERVAL_UPDATE_SUCCESS
Definition: includes/nvds_rest_server.h:161
NvDsServerStreamInfo::metadata_framerate
std::string metadata_framerate
Definition: includes/nvds_rest_server.h:275
NvDsServerConvInfo::err_info
NvDsServerErrorInfo err_info
Definition: includes/nvds_rest_server.h:237
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
NvDsServerOsdInfo
Definition: includes/nvds_rest_server.h:310
NvDsServerRoiInfo::roi_count
guint roi_count
Definition: includes/nvds_rest_server.h:256
DEST_CROP
@ DEST_CROP
Definition: includes/nvds_rest_server.h:44
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
SRC_CROP
@ SRC_CROP
Definition: includes/nvds_rest_server.h:43
NvDsServerOsdInfo::root_key
std::string root_key
Definition: includes/nvds_rest_server.h:312
NvDsServerOsdPropFlag
NvDsServerOsdPropFlag
Definition: includes/nvds_rest_server.h:70
QUIT_SUCCESS
@ QUIT_SUCCESS
Definition: includes/nvds_rest_server.h:87
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
FLIP_METHOD
@ FLIP_METHOD
Definition: includes/nvds_rest_server.h:45
NvDsServerMuxInfo::max_latency
guint max_latency
Definition: includes/nvds_rest_server.h:244
GET_LIVE_STREAM_INFO_FAIL
@ GET_LIVE_STREAM_INFO_FAIL
Definition: includes/nvds_rest_server.h:102
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
QUIT_FAIL
@ QUIT_FAIL
Definition: includes/nvds_rest_server.h:88
DROP_FRAME_INTERVAL
@ DROP_FRAME_INTERVAL
Definition: includes/nvds_rest_server.h:28
NvDsServerRoiInfo
Definition: includes/nvds_rest_server.h:252
StatusBadRequest
@ StatusBadRequest
Definition: includes/nvds_rest_server.h:175
NvDsGetRequestInfo::err_info
NvDsServerErrorInfo err_info
Definition: includes/nvds_rest_server.h:295
BATCHED_PUSH_TIMEOUT
@ BATCHED_PUSH_TIMEOUT
Definition: includes/nvds_rest_server.h:51
LOW_LATENCY_MODE_UPDATE_SUCCESS
@ LOW_LATENCY_MODE_UPDATE_SUCCESS
Definition: includes/nvds_rest_server.h:117
NvDsServerStreamInfo
Definition: includes/nvds_rest_server.h:265
SKIP_FRAMES
@ SKIP_FRAMES
Definition: includes/nvds_rest_server.h:29
NvDsGetRequestInfo::get_request_log
std::string get_request_log
Definition: includes/nvds_rest_server.h:291
StatusOk
@ StatusOk
Definition: includes/nvds_rest_server.h:173
NvDsServerConvStatus
NvDsServerConvStatus
Definition: includes/nvds_rest_server.h:133
NvDsServerAppInstanceInfo::status
NvDsServerAppInstanceStatus status
Definition: includes/nvds_rest_server.h:326
NvDsServerRoiInfo::uri
std::string uri
Definition: includes/nvds_rest_server.h:261
NvDsServerEncInfo::iframeinterval
guint iframeinterval
Definition: includes/nvds_rest_server.h:217
LOW_LATENCY_MODE_UPDATE_FAIL
@ LOW_LATENCY_MODE_UPDATE_FAIL
Definition: includes/nvds_rest_server.h:118
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
StatusProxyAuthenticationRequired
@ StatusProxyAuthenticationRequired
Definition: includes/nvds_rest_server.h:180
NvDsServerConvInfo
struct NvDsServerConvInfo NvDsServerConvInfo
NvDsServerErrorInfo
struct NvDsServerErrorInfo NvDsServerErrorInfo
INTERPOLATION_METHOD_UPDATE_SUCCESS
@ INTERPOLATION_METHOD_UPDATE_SUCCESS
Definition: includes/nvds_rest_server.h:139
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
NvDsServerRoiInfo::root_key
std::string root_key
Definition: includes/nvds_rest_server.h:254
PROCESS_MODE_UPDATE_FAIL
@ PROCESS_MODE_UPDATE_FAIL
Definition: includes/nvds_rest_server.h:168
NvDsGetRequestInfo::uri
std::string uri
Definition: includes/nvds_rest_server.h:292
NvDsServerOsdInfo::err_info
NvDsServerErrorInfo err_info
Definition: includes/nvds_rest_server.h:319
IFRAME_INTERVAL
@ IFRAME_INTERVAL
Definition: includes/nvds_rest_server.h:38
NvDsServerEncStatus
NvDsServerEncStatus
Definition: includes/nvds_rest_server.h:121
nvds_rest_server_start
NvDsRestServer * nvds_rest_server_start(NvDsServerConfig *server_config, NvDsServerCallbacks *server_cb)
NvDsServerStreamInfo::metadata_codec
std::string metadata_codec
Definition: includes/nvds_rest_server.h:274
StatusPreconditionFailed
@ StatusPreconditionFailed
Definition: includes/nvds_rest_server.h:182
NvDsServerEncInfo::enc_log
std::string enc_log
Definition: includes/nvds_rest_server.h:220
NvDsServerInferServerInfo
struct NvDsServerInferServerInfo NvDsServerInferServerInfo
INFER_INTERVAL_UPDATE_SUCCESS
@ INFER_INTERVAL_UPDATE_SUCCESS
Definition: includes/nvds_rest_server.h:155
NvDsServerInferInfo::interval
guint interval
Definition: includes/nvds_rest_server.h:302
NvDsServerOsdInfo::osd_flag
NvDsServerOsdPropFlag osd_flag
Definition: includes/nvds_rest_server.h:316
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
StatusUnauthorized
@ StatusUnauthorized
Definition: includes/nvds_rest_server.h:176
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
LOW_LATENCY_MODE
@ LOW_LATENCY_MODE
Definition: includes/nvds_rest_server.h:30
StatusUriTooLong
@ StatusUriTooLong
Definition: includes/nvds_rest_server.h:184
NvDsServerDecPropFlag
NvDsServerDecPropFlag
Definition: includes/nvds_rest_server.h:26
NvDsServerMuxPropFlag
NvDsServerMuxPropFlag
Definition: includes/nvds_rest_server.h:49
STREAM_ADD_SUCCESS
@ STREAM_ADD_SUCCESS
Definition: includes/nvds_rest_server.h:93
StatusInternalServerError
@ StatusInternalServerError
Definition: includes/nvds_rest_server.h:186
NvDsServerConvInfo::conv_log
std::string conv_log
Definition: includes/nvds_rest_server.h:235
NvDsServerConvInfo::uri
std::string uri
Definition: includes/nvds_rest_server.h:236
MAX_LATENCY
@ MAX_LATENCY
Definition: includes/nvds_rest_server.h:52
INFER_INTERVAL_UPDATE_FAIL
@ INFER_INTERVAL_UPDATE_FAIL
Definition: includes/nvds_rest_server.h:156
StatusMethodNotAllowed
@ StatusMethodNotAllowed
Definition: includes/nvds_rest_server.h:178
MAX_LATENCY_UPDATE_SUCCESS
@ MAX_LATENCY_UPDATE_SUCCESS
Definition: includes/nvds_rest_server.h:149
INTERPOLATION_METHOD_UPDATE_FAIL
@ INTERPOLATION_METHOD_UPDATE_FAIL
Definition: includes/nvds_rest_server.h:140
NvDsServerInferInfo::err_info
NvDsServerErrorInfo err_info
Definition: includes/nvds_rest_server.h:307
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
NvDsServerEncInfo
struct NvDsServerEncInfo NvDsServerEncInfo
FORCE_INTRA_UPDATE_FAIL
@ FORCE_INTRA_UPDATE_FAIL
Definition: includes/nvds_rest_server.h:128
StatusPayloadTooLarge
@ StatusPayloadTooLarge
Definition: includes/nvds_rest_server.h:183
FORCE_IDR_UPDATE_FAIL
@ FORCE_IDR_UPDATE_FAIL
Definition: includes/nvds_rest_server.h:126
StatusNotImplemented
@ StatusNotImplemented
Definition: includes/nvds_rest_server.h:187
NvDsServerAppInstanceInfo
struct NvDsServerAppInstanceInfo NvDsServerAppInstanceInfo
STREAM_REMOVE_FAIL
@ STREAM_REMOVE_FAIL
Definition: includes/nvds_rest_server.h:96
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
NvDsServerCallbacks
struct NvDsServerCallbacks NvDsServerCallbacks
NvDsServerConvInfo::conv_flag
NvDsServerConvPropFlag conv_flag
Definition: includes/nvds_rest_server.h:234
IFRAME_INTERVAL_UPDATE_SUCCESS
@ IFRAME_INTERVAL_UPDATE_SUCCESS
Definition: includes/nvds_rest_server.h:129
NvDsServerStreamInfo::status
NvDsServerStreamStatus status
Definition: includes/nvds_rest_server.h:279
NvDsServerOsdInfo
struct NvDsServerOsdInfo NvDsServerOsdInfo
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
QUIT_APP
@ QUIT_APP
Definition: includes/nvds_rest_server.h:82
DEST_CROP_UPDATE_FAIL
@ DEST_CROP_UPDATE_FAIL
Definition: includes/nvds_rest_server.h:136
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
FORCE_IDR_UPDATE_SUCCESS
@ FORCE_IDR_UPDATE_SUCCESS
Definition: includes/nvds_rest_server.h:125
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
DROP_FRAME_INTERVAL_UPDATE_SUCCESS
@ DROP_FRAME_INTERVAL_UPDATE_SUCCESS
Definition: includes/nvds_rest_server.h:113
NvDsServerInferServerInfo::interval
guint interval
Definition: includes/nvds_rest_server.h:337
NvDsServerAppInstanceInfo::appinstance_flag
NvDsServerAppInstanceFlag appinstance_flag
Definition: includes/nvds_rest_server.h:327
NvDsServerCallbacks::mux_cb
std::function< void(NvDsServerMuxInfo *mux_info, void *ctx) > mux_cb
Definition: includes/nvds_rest_server.h:372
STREAM_ADD_FAIL
@ STREAM_ADD_FAIL
Definition: includes/nvds_rest_server.h:94
StatusRequestTimeout
@ StatusRequestTimeout
Definition: includes/nvds_rest_server.h:181
PROCESS_MODE_UPDATE_SUCCESS
@ PROCESS_MODE_UPDATE_SUCCESS
Definition: includes/nvds_rest_server.h:167
MAX_LATENCY_UPDATE_FAIL
@ MAX_LATENCY_UPDATE_FAIL
Definition: includes/nvds_rest_server.h:150