NVIDIA DeepStream SDK API Reference

6.4 Release
libs/nvds_rest_server/nvds_rest_server.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2022-2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
3  * SPDX-License-Identifier: MIT
4  *
5  * Permission is hereby granted, free of charge, to any person obtaining a
6  * copy of this software and associated documentation files (the "Software"),
7  * to deal in the Software without restriction, including without limitation
8  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
9  * and/or sell copies of the Software, and to permit persons to whom the
10  * Software is furnished to do so, subject to the following conditions:
11  *
12  * The above copyright notice and this permission notice shall be included in
13  * all copies or substantial portions of the Software.
14  *
15  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18  * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21  * DEALINGS IN THE SOFTWARE.
22  */
23 
24 #ifndef _NVDS_SERVER_H_
25 #define _NVDS_SERVER_H_
26 
27 #include <string>
28 #include <unordered_map>
29 #include <vector>
30 #include <functional>
31 #include "gst-nvdscustomevent.h"
32 #include <json/json.h>
33 #define UNKNOWN_STRING "unknown"
34 #define EMPTY_STRING ""
35 
36 typedef enum
37 {
39  SKIP_FRAMES = 1 << 1,
40  LOW_LATENCY_MODE = 1 << 2,
42 
43 typedef enum
44 {
45  BITRATE = 1 << 0,
46  FORCE_IDR = 1 << 1,
47  FORCE_INTRA = 1 << 2,
48  IFRAME_INTERVAL = 1 << 3,
50 
51 typedef enum
52 {
53  SRC_CROP = 1 << 0,
54  DEST_CROP = 1 << 1,
55  FLIP_METHOD = 1 << 2,
58 
59 typedef enum
60 {
62  MAX_LATENCY = 1 << 1,
64 
65 typedef enum
66 {
67  INFER_INTERVAL = 1 << 0,
69 
70 typedef enum
71 {
74 
75 typedef enum
76 {
77  PROCESS_MODE = 1 << 0,
79 
80 typedef enum
81 {
82  ROI_UPDATE = 1 << 0,
84 
85 typedef enum
86 {
87  QUIT_APP = 1 << 0,
89 
90 typedef enum
91 {
95 
96 typedef enum
97 {
103 
104 typedef enum
105 {
109 
110 typedef enum
111 {
119 
120 typedef enum
121 {
131 
132 typedef enum
133 {
143 
144 typedef enum
145 {
151 
152 typedef enum
153 {
157 
158 typedef enum
159 {
163 
164 typedef enum
165 {
169 
170 typedef enum
171 {
172  StatusOk = 0, // HTTP error code : 200
173  StatusAccepted, // HTTP error code : 202
174  StatusBadRequest, // HTTP error code : 400
175  StatusUnauthorized, // HTTP error code : 401
176  StatusForbidden, // HTTP error code : 403
177  StatusMethodNotAllowed, // HTTP error code : 405
178  StatusNotAcceptable, // HTTP error code : 406
179  StatusProxyAuthenticationRequired, // HTTP error code : 407
180  StatusRequestTimeout, // HTTP error code : 408
181  StatusPreconditionFailed, // HTTP error code : 412
182  StatusPayloadTooLarge, // HTTP error code : 413
183  StatusUriTooLong, // HTTP error code : 414
184  StatusUnsupportedMediaType, // HTTP error code : 415
185  StatusInternalServerError, // HTTP error code : 500
186  StatusNotImplemented // HTTP error code : 501
188 
189 typedef struct NvDsServerErrorInfo
190 {
191  std::pair < int, std::string > err_log;
194 
195 typedef struct NvDsServerDecInfo
196 {
197  std::string root_key;
198  std::string stream_id;
199  guint drop_frame_interval;
200  guint skip_frames;
201  gboolean low_latency_mode;
204  std::string dec_log;
205  std::string uri;
208 
209 typedef struct NvDsServerEncInfo
210 {
211  std::string root_key;
212  std::string stream_id;
213  guint bitrate;
214  gboolean force_idr;
215  gboolean force_intra;
216  guint iframeinterval;
219  std::string enc_log;
220  std::string uri;
223 
224 typedef struct NvDsServerConvInfo
225 {
226  std::string root_key;
227  std::string stream_id;
228  std::string src_crop;
229  std::string dest_crop;
230  guint flip_method;
231  guint interpolation_method;
234  std::string conv_log;
235  std::string uri;
238 
239 typedef struct NvDsServerMuxInfo
240 {
241  std::string root_key;
243  guint max_latency;
246  std::string mux_log;
247  std::string uri;
250 
251 typedef struct NvDsServerRoiInfo
252 {
253  std::string root_key;
254  std::string stream_id;
255  guint roi_count;
256  std::vector < RoiDimension > vect;
259  std::string roi_log;
260  std::string uri;
263 
264 typedef struct NvDsServerStreamInfo
265 {
266  std::string key;
267  std::string value_camera_id;
268  std::string value_camera_name;
269  std::string value_camera_url;
270  std::string value_change;
271 
272  std::string metadata_resolution;
273  std::string metadata_codec;
274  std::string metadata_framerate;
275 
276  std::string headers_source;
277  std::string headers_created_at;
279  std::string stream_log;
280  std::string uri;
283 
284 typedef struct NvDsServerInferInfo
285 {
286  std::string root_key;
287  std::string stream_id;
288  guint interval;
291  std::string infer_log;
292  std::string uri;
295 
296 typedef struct NvDsServerOsdInfo
297 {
298  std::string root_key;
299  std::string stream_id;
300  guint process_mode;
303  std::string osd_log;
304  std::string uri;
307 
308 typedef struct NvDsServerAppInstanceInfo
309 {
310  std::string root_key;
311  gboolean app_quit;
314  std::string app_log;
315  std::string uri;
318 
319 typedef struct NvDsServerInferServerInfo
320 {
321  std::string root_key;
322  std::string stream_id;
323  guint interval;
326  std::string inferserver_log;
327  std::string uri;
330 
331 typedef struct NvDsServerResponseInfo
332 {
333  std::string status;
334  std::string reason;
336 
337 typedef struct NvDsServerConfig
338 {
339  std::string ip;
340  std::string port;
342 
343 using cb_func = std::function < NvDsServerStatusCode (const Json::Value & req_info,
344  const Json::Value & in,
345  Json::Value & out, struct mg_connection * conn, void *ctx)>;
346 
347 typedef struct NvDsServerCallbacks
348 {
349  std::function < void (NvDsServerRoiInfo * roi_info, void *ctx) > roi_cb;
350  std::function < void (NvDsServerDecInfo * dec_info, void *ctx) > dec_cb;
351  std::function < void (NvDsServerEncInfo * enc_info, void *ctx) > enc_cb;
352  std::function < void (NvDsServerStreamInfo * stream_info,
353  void *ctx) > stream_cb;
354  std::function < void (NvDsServerInferInfo * infer_info,
355  void *ctx) > infer_cb;
356  std::function < void (NvDsServerConvInfo * conv_info, void *ctx) > conv_cb;
357  std::function < void (NvDsServerMuxInfo * mux_info, void *ctx) > mux_cb;
358  std::function < void (NvDsServerInferServerInfo * inferserver_info,
359  void *ctx) > inferserver_cb;
360  std::function < void (NvDsServerOsdInfo * osd_info, void *ctx) > osd_cb;
361  std::function < void (NvDsServerAppInstanceInfo * appinstance_info,
362  void *ctx) > appinstance_cb;
363  std::unordered_map <std::string, cb_func> custom_cb_endpt;
365 
366 class NvDsRestServer;
367 NvDsRestServer* nvds_rest_server_start (NvDsServerConfig * server_config, NvDsServerCallbacks * server_cb);
368 void nvds_rest_server_stop (NvDsRestServer *ctx);
369 bool iequals (const std::string & a, const std::string & b);
370 
371 #endif
StatusOk
@ StatusOk
Definition: libs/nvds_rest_server/nvds_rest_server.h:172
NvDsServerDecInfo
struct NvDsServerDecInfo NvDsServerDecInfo
NvDsServerConvInfo::dest_crop
std::string dest_crop
Definition: includes/nvds_rest_server.h:229
NvDsServerMuxInfo::uri
std::string uri
Definition: includes/nvds_rest_server.h:247
DEST_CROP
@ DEST_CROP
Definition: libs/nvds_rest_server/nvds_rest_server.h:54
NvDsServerOsdStatus
NvDsServerOsdStatus
Definition: includes/nvds_rest_server.h:164
StatusNotImplemented
@ StatusNotImplemented
Definition: libs/nvds_rest_server/nvds_rest_server.h:186
NvDsServerRoiInfo::stream_id
std::string stream_id
Definition: includes/nvds_rest_server.h:254
NvDsServerResponseInfo
struct NvDsServerResponseInfo NvDsServerResponseInfo
NvDsServerStreamInfo::metadata_resolution
std::string metadata_resolution
Definition: includes/nvds_rest_server.h:272
NvDsServerInferInfo
struct NvDsServerInferInfo NvDsServerInferInfo
BITRATE_UPDATE_SUCCESS
@ BITRATE_UPDATE_SUCCESS
Definition: libs/nvds_rest_server/nvds_rest_server.h:122
NvDsServerConvPropFlag
NvDsServerConvPropFlag
Definition: libs/nvds_rest_server/nvds_rest_server.h:51
INFER_INTERVAL
@ INFER_INTERVAL
Definition: libs/nvds_rest_server/nvds_rest_server.h:67
NvDsServerMuxInfo::root_key
std::string root_key
Definition: includes/nvds_rest_server.h:241
NvDsServerInferInfo::infer_flag
NvDsServerInferPropFlag infer_flag
Definition: includes/nvds_rest_server.h:290
StatusNotAcceptable
@ StatusNotAcceptable
Definition: libs/nvds_rest_server/nvds_rest_server.h:178
NvDsServerRoiInfo::roi_log
std::string roi_log
Definition: includes/nvds_rest_server.h:259
NvDsServerResponseInfo
Definition: includes/nvds_rest_server.h:331
NvDsServerCallbacks::custom_cb_endpt
std::unordered_map< std::string, cb_func > custom_cb_endpt
Definition: includes/nvds_rest_server.h:363
STREAM_ADD_SUCCESS
@ STREAM_ADD_SUCCESS
Definition: libs/nvds_rest_server/nvds_rest_server.h:98
DROP_FRAME_INTERVAL
@ DROP_FRAME_INTERVAL
Definition: libs/nvds_rest_server/nvds_rest_server.h:38
NvDsServerRoiInfo::roi_flag
NvDsServerRoiPropFlag roi_flag
Definition: includes/nvds_rest_server.h:258
StatusUnsupportedMediaType
@ StatusUnsupportedMediaType
Definition: libs/nvds_rest_server/nvds_rest_server.h:184
StatusAccepted
@ StatusAccepted
Definition: libs/nvds_rest_server/nvds_rest_server.h:173
NvDsServerConvInfo::root_key
std::string root_key
Definition: includes/nvds_rest_server.h:226
SRC_CROP
@ SRC_CROP
Definition: libs/nvds_rest_server/nvds_rest_server.h:53
NvDsServerConvInfo::status
NvDsServerConvStatus status
Definition: includes/nvds_rest_server.h:232
NvDsServerMuxInfo::mux_flag
NvDsServerMuxPropFlag mux_flag
Definition: includes/nvds_rest_server.h:245
NvDsServerStreamInfo
struct NvDsServerStreamInfo NvDsServerStreamInfo
NvDsServerErrorInfo::code
NvDsServerStatusCode code
Definition: includes/nvds_rest_server.h:192
FLIP_METHOD
@ FLIP_METHOD
Definition: libs/nvds_rest_server/nvds_rest_server.h:55
NvDsServerConvInfo::stream_id
std::string stream_id
Definition: includes/nvds_rest_server.h:227
NvDsServerOsdInfo::status
NvDsServerOsdStatus status
Definition: includes/nvds_rest_server.h:301
NvDsServerErrorInfo::err_log
std::pair< int, std::string > err_log
Definition: includes/nvds_rest_server.h:191
BITRATE_UPDATE_FAIL
@ BITRATE_UPDATE_FAIL
Definition: libs/nvds_rest_server/nvds_rest_server.h:123
LOW_LATENCY_MODE_UPDATE_FAIL
@ LOW_LATENCY_MODE_UPDATE_FAIL
Definition: libs/nvds_rest_server/nvds_rest_server.h:117
NvDsServerOsdInfo::uri
std::string uri
Definition: includes/nvds_rest_server.h:304
INTERPOLATION_METHOD_UPDATE_FAIL
@ INTERPOLATION_METHOD_UPDATE_FAIL
Definition: libs/nvds_rest_server/nvds_rest_server.h:139
NvDsServerDecStatus
NvDsServerDecStatus
Definition: includes/nvds_rest_server.h:110
NvDsServerConvInfo::src_crop
std::string src_crop
Definition: includes/nvds_rest_server.h:228
StatusMethodNotAllowed
@ StatusMethodNotAllowed
Definition: libs/nvds_rest_server/nvds_rest_server.h:177
INFERSERVER_INTERVAL_UPDATE_SUCCESS
@ INFERSERVER_INTERVAL_UPDATE_SUCCESS
Definition: libs/nvds_rest_server/nvds_rest_server.h:160
ROI_UPDATE_FAIL
@ ROI_UPDATE_FAIL
Definition: libs/nvds_rest_server/nvds_rest_server.h:107
NvDsServerConfig
struct NvDsServerConfig NvDsServerConfig
STREAM_REMOVE_SUCCESS
@ STREAM_REMOVE_SUCCESS
Definition: libs/nvds_rest_server/nvds_rest_server.h:100
NvDsServerDecInfo::err_info
NvDsServerErrorInfo err_info
Definition: includes/nvds_rest_server.h:206
NvDsServerRoiInfo::err_info
NvDsServerErrorInfo err_info
Definition: includes/nvds_rest_server.h:261
NvDsServerEncInfo::force_intra
gboolean force_intra
Definition: includes/nvds_rest_server.h:215
NvDsServerStreamInfo::value_camera_name
std::string value_camera_name
Definition: includes/nvds_rest_server.h:268
NvDsServerInferInfo
Definition: includes/nvds_rest_server.h:284
FORCE_IDR_UPDATE_FAIL
@ FORCE_IDR_UPDATE_FAIL
Definition: libs/nvds_rest_server/nvds_rest_server.h:125
PROCESS_MODE
@ PROCESS_MODE
Definition: libs/nvds_rest_server/nvds_rest_server.h:77
StatusProxyAuthenticationRequired
@ StatusProxyAuthenticationRequired
Definition: libs/nvds_rest_server/nvds_rest_server.h:179
NvDsServerDecInfo::skip_frames
guint skip_frames
Definition: includes/nvds_rest_server.h:200
NvDsServerInferServerInfo::inferserver_flag
NvDsServerInferServerPropFlag inferserver_flag
Definition: includes/nvds_rest_server.h:325
DEST_CROP_UPDATE_SUCCESS
@ DEST_CROP_UPDATE_SUCCESS
Definition: libs/nvds_rest_server/nvds_rest_server.h:134
NvDsServerConfig::ip
std::string ip
Definition: includes/nvds_rest_server.h:339
NvDsServerMuxStatus
NvDsServerMuxStatus
Definition: includes/nvds_rest_server.h:144
DEST_CROP_UPDATE_FAIL
@ DEST_CROP_UPDATE_FAIL
Definition: libs/nvds_rest_server/nvds_rest_server.h:135
NvDsServerCallbacks::osd_cb
std::function< void(NvDsServerOsdInfo *osd_info, void *ctx) > osd_cb
Definition: includes/nvds_rest_server.h:360
NvDsServerStreamInfo::headers_source
std::string headers_source
Definition: includes/nvds_rest_server.h:276
NvDsServerCallbacks
struct NvDsServerCallbacks NvDsServerCallbacks
NvDsServerRoiInfo::vect
std::vector< RoiDimension > vect
Definition: includes/nvds_rest_server.h:256
NvDsServerOsdInfo::process_mode
guint process_mode
Definition: includes/nvds_rest_server.h:300
SRC_CROP_UPDATE_SUCCESS
@ SRC_CROP_UPDATE_SUCCESS
Definition: libs/nvds_rest_server/nvds_rest_server.h:136
NvDsServerStatusCode
NvDsServerStatusCode
Definition: libs/nvds_rest_server/nvds_rest_server.h:170
StatusPreconditionFailed
@ StatusPreconditionFailed
Definition: libs/nvds_rest_server/nvds_rest_server.h:181
NvDsServerCallbacks::enc_cb
std::function< void(NvDsServerEncInfo *enc_info, void *ctx) > enc_cb
Definition: includes/nvds_rest_server.h:351
NvDsServerStatusCode
NvDsServerStatusCode
Definition: includes/nvds_rest_server.h:170
NvDsServerMuxInfo
Definition: includes/nvds_rest_server.h:239
NvDsServerRoiStatus
NvDsServerRoiStatus
Definition: libs/nvds_rest_server/nvds_rest_server.h:104
QUIT_APP
@ QUIT_APP
Definition: libs/nvds_rest_server/nvds_rest_server.h:87
NvDsServerInferServerInfo
Definition: includes/nvds_rest_server.h:319
NvDsServerAppInstanceInfo
struct NvDsServerAppInstanceInfo NvDsServerAppInstanceInfo
NvDsServerCallbacks::appinstance_cb
std::function< void(NvDsServerAppInstanceInfo *appinstance_info, void *ctx) > appinstance_cb
Definition: includes/nvds_rest_server.h:362
FORCE_IDR_UPDATE_SUCCESS
@ FORCE_IDR_UPDATE_SUCCESS
Definition: libs/nvds_rest_server/nvds_rest_server.h:124
ROI_UPDATE
@ ROI_UPDATE
Definition: libs/nvds_rest_server/nvds_rest_server.h:82
StatusInternalServerError
@ StatusInternalServerError
Definition: libs/nvds_rest_server/nvds_rest_server.h:185
NvDsServerEncPropFlag
NvDsServerEncPropFlag
Definition: includes/nvds_rest_server.h:43
NvDsServerDecInfo::drop_frame_interval
guint drop_frame_interval
Definition: includes/nvds_rest_server.h:199
STREAM_ADD_FAIL
@ STREAM_ADD_FAIL
Definition: libs/nvds_rest_server/nvds_rest_server.h:99
NvDsServerMuxInfo::err_info
NvDsServerErrorInfo err_info
Definition: includes/nvds_rest_server.h:248
iequals
bool iequals(const std::string &a, const std::string &b)
NvDsServerEncInfo::uri
std::string uri
Definition: includes/nvds_rest_server.h:220
StatusUriTooLong
@ StatusUriTooLong
Definition: libs/nvds_rest_server/nvds_rest_server.h:183
NvDsServerConvInfo::flip_method
guint flip_method
Definition: includes/nvds_rest_server.h:230
NvDsServerOsdInfo
struct NvDsServerOsdInfo NvDsServerOsdInfo
StatusPayloadTooLarge
@ StatusPayloadTooLarge
Definition: libs/nvds_rest_server/nvds_rest_server.h:182
NvDsServerInferServerPropFlag
NvDsServerInferServerPropFlag
Definition: includes/nvds_rest_server.h:70
NvDsServerRoiPropFlag
NvDsServerRoiPropFlag
Definition: libs/nvds_rest_server/nvds_rest_server.h:80
NvDsServerCallbacks::conv_cb
std::function< void(NvDsServerConvInfo *conv_info, void *ctx) > conv_cb
Definition: includes/nvds_rest_server.h:356
NvDsServerDecInfo::stream_id
std::string stream_id
Definition: includes/nvds_rest_server.h:198
BATCHED_PUSH_TIMEOUT
@ BATCHED_PUSH_TIMEOUT
Definition: libs/nvds_rest_server/nvds_rest_server.h:61
NvDsServerEncInfo::status
NvDsServerEncStatus status
Definition: includes/nvds_rest_server.h:217
IFRAME_INTERVAL_UPDATE_FAIL
@ IFRAME_INTERVAL_UPDATE_FAIL
Definition: libs/nvds_rest_server/nvds_rest_server.h:129
NvDsServerCallbacks
Definition: includes/nvds_rest_server.h:347
BATCHED_PUSH_TIMEOUT_UPDATE_SUCCESS
@ BATCHED_PUSH_TIMEOUT_UPDATE_SUCCESS
Definition: libs/nvds_rest_server/nvds_rest_server.h:146
NvDsServerConfig::port
std::string port
Definition: includes/nvds_rest_server.h:340
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:316
NvDsServerInferInfo::infer_log
std::string infer_log
Definition: includes/nvds_rest_server.h:291
NvDsServerCallbacks::inferserver_cb
std::function< void(NvDsServerInferServerInfo *inferserver_info, void *ctx) > inferserver_cb
Definition: includes/nvds_rest_server.h:359
NvDsServerOsdInfo::stream_id
std::string stream_id
Definition: includes/nvds_rest_server.h:299
NvDsServerInferServerInfo::status
NvDsServerInferServerStatus status
Definition: includes/nvds_rest_server.h:324
NvDsServerEncInfo::root_key
std::string root_key
Definition: includes/nvds_rest_server.h:211
FORCE_INTRA
@ FORCE_INTRA
Definition: libs/nvds_rest_server/nvds_rest_server.h:47
SKIP_FRAMES
@ SKIP_FRAMES
Definition: libs/nvds_rest_server/nvds_rest_server.h:39
NvDsServerDecInfo::dec_flag
NvDsServerDecPropFlag dec_flag
Definition: includes/nvds_rest_server.h:203
FLIP_METHOD_UPDATE_SUCCESS
@ FLIP_METHOD_UPDATE_SUCCESS
Definition: libs/nvds_rest_server/nvds_rest_server.h:140
NvDsServerCallbacks::dec_cb
std::function< void(NvDsServerDecInfo *dec_info, void *ctx) > dec_cb
Definition: includes/nvds_rest_server.h:350
NvDsServerStreamInfo::value_camera_url
std::string value_camera_url
Definition: includes/nvds_rest_server.h:269
NvDsServerInferServerStatus
NvDsServerInferServerStatus
Definition: includes/nvds_rest_server.h:158
NvDsServerEncInfo::bitrate
guint bitrate
Definition: includes/nvds_rest_server.h:213
NvDsServerMuxStatus
NvDsServerMuxStatus
Definition: libs/nvds_rest_server/nvds_rest_server.h:144
NvDsServerDecInfo::root_key
std::string root_key
Definition: includes/nvds_rest_server.h:197
NvDsServerOsdPropFlag
NvDsServerOsdPropFlag
Definition: libs/nvds_rest_server/nvds_rest_server.h:75
FORCE_INTRA_UPDATE_FAIL
@ FORCE_INTRA_UPDATE_FAIL
Definition: libs/nvds_rest_server/nvds_rest_server.h:127
INTERPOLATION_METHOD
@ INTERPOLATION_METHOD
Definition: libs/nvds_rest_server/nvds_rest_server.h:56
NvDsServerDecInfo::low_latency_mode
gboolean low_latency_mode
Definition: includes/nvds_rest_server.h:201
NvDsServerAppInstanceInfo::root_key
std::string root_key
Definition: includes/nvds_rest_server.h:310
NvDsServerInferInfo::status
NvDsServerInferStatus status
Definition: includes/nvds_rest_server.h:289
BITRATE
@ BITRATE
Definition: libs/nvds_rest_server/nvds_rest_server.h:45
NvDsServerStreamInfo::uri
std::string uri
Definition: includes/nvds_rest_server.h:280
NvDsServerStreamStatus
NvDsServerStreamStatus
Definition: includes/nvds_rest_server.h:96
NvDsServerStreamStatus
NvDsServerStreamStatus
Definition: libs/nvds_rest_server/nvds_rest_server.h:96
SRC_CROP_UPDATE_FAIL
@ SRC_CROP_UPDATE_FAIL
Definition: libs/nvds_rest_server/nvds_rest_server.h:137
NvDsServerRoiStatus
NvDsServerRoiStatus
Definition: includes/nvds_rest_server.h:104
NvDsServerDecInfo::uri
std::string uri
Definition: includes/nvds_rest_server.h:205
NvDsServerInferServerInfo::err_info
NvDsServerErrorInfo err_info
Definition: includes/nvds_rest_server.h:328
NvDsServerInferServerInfo::uri
std::string uri
Definition: includes/nvds_rest_server.h:327
NvDsServerAppInstanceStatus
NvDsServerAppInstanceStatus
Definition: includes/nvds_rest_server.h:90
NvDsServerInferStatus
NvDsServerInferStatus
Definition: libs/nvds_rest_server/nvds_rest_server.h:152
NvDsServerOsdInfo::osd_log
std::string osd_log
Definition: includes/nvds_rest_server.h:303
NvDsServerConvInfo
struct NvDsServerConvInfo NvDsServerConvInfo
NvDsServerConfig
Definition: includes/nvds_rest_server.h:337
NvDsServerEncInfo
Definition: includes/nvds_rest_server.h:209
NvDsServerInferPropFlag
NvDsServerInferPropFlag
Definition: includes/nvds_rest_server.h:65
MAX_LATENCY_UPDATE_SUCCESS
@ MAX_LATENCY_UPDATE_SUCCESS
Definition: libs/nvds_rest_server/nvds_rest_server.h:148
INFERSERVER_INTERVAL_UPDATE_FAIL
@ INFERSERVER_INTERVAL_UPDATE_FAIL
Definition: libs/nvds_rest_server/nvds_rest_server.h:161
NvDsServerAppInstanceFlag
NvDsServerAppInstanceFlag
Definition: includes/nvds_rest_server.h:85
NvDsServerResponseInfo::reason
std::string reason
Definition: includes/nvds_rest_server.h:334
NvDsServerStreamInfo::metadata_framerate
std::string metadata_framerate
Definition: includes/nvds_rest_server.h:274
MAX_LATENCY
@ MAX_LATENCY
Definition: libs/nvds_rest_server/nvds_rest_server.h:62
StatusBadRequest
@ StatusBadRequest
Definition: libs/nvds_rest_server/nvds_rest_server.h:174
NvDsServerConvInfo::err_info
NvDsServerErrorInfo err_info
Definition: includes/nvds_rest_server.h:236
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:353
NvDsServerCallbacks::roi_cb
std::function< void(NvDsServerRoiInfo *roi_info, void *ctx) > roi_cb
Definition: includes/nvds_rest_server.h:349
NvDsServerConvStatus
NvDsServerConvStatus
Definition: libs/nvds_rest_server/nvds_rest_server.h:132
NvDsServerOsdStatus
NvDsServerOsdStatus
Definition: libs/nvds_rest_server/nvds_rest_server.h:164
NvDsServerOsdInfo
Definition: includes/nvds_rest_server.h:296
NvDsServerRoiInfo::roi_count
guint roi_count
Definition: includes/nvds_rest_server.h:255
NvDsServerResponseInfo::status
std::string status
Definition: includes/nvds_rest_server.h:333
NvDsServerRoiInfo::status
NvDsServerRoiStatus status
Definition: includes/nvds_rest_server.h:257
NvDsServerDecInfo
Definition: includes/nvds_rest_server.h:195
LOW_LATENCY_MODE_UPDATE_SUCCESS
@ LOW_LATENCY_MODE_UPDATE_SUCCESS
Definition: libs/nvds_rest_server/nvds_rest_server.h:116
NvDsServerOsdInfo::root_key
std::string root_key
Definition: includes/nvds_rest_server.h:298
INTERPOLATION_METHOD_UPDATE_SUCCESS
@ INTERPOLATION_METHOD_UPDATE_SUCCESS
Definition: libs/nvds_rest_server/nvds_rest_server.h:138
NvDsServerOsdPropFlag
NvDsServerOsdPropFlag
Definition: includes/nvds_rest_server.h:75
NvDsServerDecStatus
NvDsServerDecStatus
Definition: libs/nvds_rest_server/nvds_rest_server.h:110
NvDsServerRoiPropFlag
NvDsServerRoiPropFlag
Definition: includes/nvds_rest_server.h:80
NvDsServerEncInfo::stream_id
std::string stream_id
Definition: includes/nvds_rest_server.h:212
NvDsServerConvPropFlag
NvDsServerConvPropFlag
Definition: includes/nvds_rest_server.h:51
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:345
NvDsServerMuxInfo
struct NvDsServerMuxInfo NvDsServerMuxInfo
NvDsServerMuxInfo::max_latency
guint max_latency
Definition: includes/nvds_rest_server.h:243
QUIT_SUCCESS
@ QUIT_SUCCESS
Definition: libs/nvds_rest_server/nvds_rest_server.h:92
NvDsServerAppInstanceInfo::app_quit
gboolean app_quit
Definition: includes/nvds_rest_server.h:311
NvDsServerStreamInfo::stream_log
std::string stream_log
Definition: includes/nvds_rest_server.h:279
NvDsServerRoiInfo
Definition: includes/nvds_rest_server.h:251
DROP_FRAME_INTERVAL_UPDATE_SUCCESS
@ DROP_FRAME_INTERVAL_UPDATE_SUCCESS
Definition: libs/nvds_rest_server/nvds_rest_server.h:112
PROCESS_MODE_UPDATE_FAIL
@ PROCESS_MODE_UPDATE_FAIL
Definition: libs/nvds_rest_server/nvds_rest_server.h:167
StatusUnauthorized
@ StatusUnauthorized
Definition: libs/nvds_rest_server/nvds_rest_server.h:175
NvDsServerStreamInfo
Definition: includes/nvds_rest_server.h:264
STREAM_REMOVE_FAIL
@ STREAM_REMOVE_FAIL
Definition: libs/nvds_rest_server/nvds_rest_server.h:101
NvDsServerEncStatus
NvDsServerEncStatus
Definition: libs/nvds_rest_server/nvds_rest_server.h:120
NvDsServerConvStatus
NvDsServerConvStatus
Definition: includes/nvds_rest_server.h:132
NvDsServerAppInstanceInfo::status
NvDsServerAppInstanceStatus status
Definition: includes/nvds_rest_server.h:312
NvDsServerEncPropFlag
NvDsServerEncPropFlag
Definition: libs/nvds_rest_server/nvds_rest_server.h:43
NvDsServerAppInstanceFlag
NvDsServerAppInstanceFlag
Definition: libs/nvds_rest_server/nvds_rest_server.h:85
NvDsServerRoiInfo::uri
std::string uri
Definition: includes/nvds_rest_server.h:260
NvDsServerErrorInfo
struct NvDsServerErrorInfo NvDsServerErrorInfo
NvDsServerEncInfo::iframeinterval
guint iframeinterval
Definition: includes/nvds_rest_server.h:216
NvDsServerDecInfo::status
NvDsServerDecStatus status
Definition: includes/nvds_rest_server.h:202
NvDsServerMuxInfo::mux_log
std::string mux_log
Definition: includes/nvds_rest_server.h:246
QUIT_FAIL
@ QUIT_FAIL
Definition: libs/nvds_rest_server/nvds_rest_server.h:93
SKIP_FRAMES_UPDATE_SUCCESS
@ SKIP_FRAMES_UPDATE_SUCCESS
Definition: libs/nvds_rest_server/nvds_rest_server.h:114
NvDsServerEncInfo
struct NvDsServerEncInfo NvDsServerEncInfo
NvDsServerConvInfo::interpolation_method
guint interpolation_method
Definition: includes/nvds_rest_server.h:231
NvDsServerDecInfo::dec_log
std::string dec_log
Definition: includes/nvds_rest_server.h:204
NvDsServerInferServerInfo::root_key
std::string root_key
Definition: includes/nvds_rest_server.h:321
StatusRequestTimeout
@ StatusRequestTimeout
Definition: libs/nvds_rest_server/nvds_rest_server.h:180
NvDsServerRoiInfo::root_key
std::string root_key
Definition: includes/nvds_rest_server.h:253
DROP_FRAME_INTERVAL_UPDATE_FAIL
@ DROP_FRAME_INTERVAL_UPDATE_FAIL
Definition: libs/nvds_rest_server/nvds_rest_server.h:113
NvDsServerInferServerStatus
NvDsServerInferServerStatus
Definition: libs/nvds_rest_server/nvds_rest_server.h:158
NvDsServerOsdInfo::err_info
NvDsServerErrorInfo err_info
Definition: includes/nvds_rest_server.h:305
NvDsServerEncStatus
NvDsServerEncStatus
Definition: includes/nvds_rest_server.h:120
NvDsServerRoiInfo
struct NvDsServerRoiInfo NvDsServerRoiInfo
INFER_INTERVAL_UPDATE_FAIL
@ INFER_INTERVAL_UPDATE_FAIL
Definition: libs/nvds_rest_server/nvds_rest_server.h:155
NvDsServerStreamInfo::metadata_codec
std::string metadata_codec
Definition: includes/nvds_rest_server.h:273
FLIP_METHOD_UPDATE_FAIL
@ FLIP_METHOD_UPDATE_FAIL
Definition: libs/nvds_rest_server/nvds_rest_server.h:141
NvDsServerEncInfo::enc_log
std::string enc_log
Definition: includes/nvds_rest_server.h:219
NvDsServerInferInfo::interval
guint interval
Definition: includes/nvds_rest_server.h:288
NvDsServerOsdInfo::osd_flag
NvDsServerOsdPropFlag osd_flag
Definition: includes/nvds_rest_server.h:302
INFERSERVER_INTERVAL
@ INFERSERVER_INTERVAL
Definition: libs/nvds_rest_server/nvds_rest_server.h:72
NvDsServerEncInfo::enc_flag
NvDsServerEncPropFlag enc_flag
Definition: includes/nvds_rest_server.h:218
NvDsServerAppInstanceInfo::app_log
std::string app_log
Definition: includes/nvds_rest_server.h:314
INFER_INTERVAL_UPDATE_SUCCESS
@ INFER_INTERVAL_UPDATE_SUCCESS
Definition: libs/nvds_rest_server/nvds_rest_server.h:154
NvDsServerMuxInfo::batched_push_timeout
gint batched_push_timeout
Definition: includes/nvds_rest_server.h:242
NvDsServerInferInfo::root_key
std::string root_key
Definition: includes/nvds_rest_server.h:286
NvDsServerDecPropFlag
NvDsServerDecPropFlag
Definition: includes/nvds_rest_server.h:36
NvDsServerMuxPropFlag
NvDsServerMuxPropFlag
Definition: includes/nvds_rest_server.h:59
BATCHED_PUSH_TIMEOUT_UPDATE_FAIL
@ BATCHED_PUSH_TIMEOUT_UPDATE_FAIL
Definition: libs/nvds_rest_server/nvds_rest_server.h:147
NvDsServerMuxPropFlag
NvDsServerMuxPropFlag
Definition: libs/nvds_rest_server/nvds_rest_server.h:59
NvDsServerAppInstanceStatus
NvDsServerAppInstanceStatus
Definition: libs/nvds_rest_server/nvds_rest_server.h:90
NvDsServerConvInfo::conv_log
std::string conv_log
Definition: includes/nvds_rest_server.h:234
NvDsServerInferServerPropFlag
NvDsServerInferServerPropFlag
Definition: libs/nvds_rest_server/nvds_rest_server.h:70
IFRAME_INTERVAL_UPDATE_SUCCESS
@ IFRAME_INTERVAL_UPDATE_SUCCESS
Definition: libs/nvds_rest_server/nvds_rest_server.h:128
NvDsServerConvInfo::uri
std::string uri
Definition: includes/nvds_rest_server.h:235
NvDsServerInferInfo::err_info
NvDsServerErrorInfo err_info
Definition: includes/nvds_rest_server.h:293
FORCE_IDR
@ FORCE_IDR
Definition: libs/nvds_rest_server/nvds_rest_server.h:46
NvDsServerAppInstanceInfo
Definition: includes/nvds_rest_server.h:308
NvDsServerAppInstanceInfo::uri
std::string uri
Definition: includes/nvds_rest_server.h:315
NvDsServerInferInfo::uri
std::string uri
Definition: includes/nvds_rest_server.h:292
NvDsServerEncInfo::err_info
NvDsServerErrorInfo err_info
Definition: includes/nvds_rest_server.h:221
NvDsServerStreamInfo::key
std::string key
Definition: includes/nvds_rest_server.h:266
NvDsServerConvInfo
Definition: includes/nvds_rest_server.h:224
NvDsServerStreamInfo::value_camera_id
std::string value_camera_id
Definition: includes/nvds_rest_server.h:267
PROCESS_MODE_UPDATE_SUCCESS
@ PROCESS_MODE_UPDATE_SUCCESS
Definition: libs/nvds_rest_server/nvds_rest_server.h:166
MAX_LATENCY_UPDATE_FAIL
@ MAX_LATENCY_UPDATE_FAIL
Definition: libs/nvds_rest_server/nvds_rest_server.h:149
NvDsServerInferPropFlag
NvDsServerInferPropFlag
Definition: libs/nvds_rest_server/nvds_rest_server.h:65
SKIP_FRAMES_UPDATE_FAIL
@ SKIP_FRAMES_UPDATE_FAIL
Definition: libs/nvds_rest_server/nvds_rest_server.h:115
NvDsServerStreamInfo::value_change
std::string value_change
Definition: includes/nvds_rest_server.h:270
NvDsServerMuxInfo::status
NvDsServerMuxStatus status
Definition: includes/nvds_rest_server.h:244
NvDsServerInferServerInfo::stream_id
std::string stream_id
Definition: includes/nvds_rest_server.h:322
FORCE_INTRA_UPDATE_SUCCESS
@ FORCE_INTRA_UPDATE_SUCCESS
Definition: libs/nvds_rest_server/nvds_rest_server.h:126
LOW_LATENCY_MODE
@ LOW_LATENCY_MODE
Definition: libs/nvds_rest_server/nvds_rest_server.h:40
NvDsServerConvInfo::conv_flag
NvDsServerConvPropFlag conv_flag
Definition: includes/nvds_rest_server.h:233
NvDsServerStreamInfo::status
NvDsServerStreamStatus status
Definition: includes/nvds_rest_server.h:278
NvDsServerInferInfo::stream_id
std::string stream_id
Definition: includes/nvds_rest_server.h:287
NvDsServerStreamInfo::headers_created_at
std::string headers_created_at
Definition: includes/nvds_rest_server.h:277
NvDsServerEncInfo::force_idr
gboolean force_idr
Definition: includes/nvds_rest_server.h:214
NvDsServerInferStatus
NvDsServerInferStatus
Definition: includes/nvds_rest_server.h:152
NvDsServerCallbacks::infer_cb
std::function< void(NvDsServerInferInfo *infer_info, void *ctx) > infer_cb
Definition: includes/nvds_rest_server.h:355
NvDsServerErrorInfo
Definition: includes/nvds_rest_server.h:189
NvDsServerInferServerInfo::inferserver_log
std::string inferserver_log
Definition: includes/nvds_rest_server.h:326
NvDsServerStreamInfo::err_info
NvDsServerErrorInfo err_info
Definition: includes/nvds_rest_server.h:281
NvDsServerInferServerInfo::interval
guint interval
Definition: includes/nvds_rest_server.h:323
NvDsServerDecPropFlag
NvDsServerDecPropFlag
Definition: libs/nvds_rest_server/nvds_rest_server.h:36
NvDsServerAppInstanceInfo::appinstance_flag
NvDsServerAppInstanceFlag appinstance_flag
Definition: includes/nvds_rest_server.h:313
NvDsServerInferServerInfo
struct NvDsServerInferServerInfo NvDsServerInferServerInfo
NvDsServerCallbacks::mux_cb
std::function< void(NvDsServerMuxInfo *mux_info, void *ctx) > mux_cb
Definition: includes/nvds_rest_server.h:357
ROI_UPDATE_SUCCESS
@ ROI_UPDATE_SUCCESS
Definition: libs/nvds_rest_server/nvds_rest_server.h:106
StatusForbidden
@ StatusForbidden
Definition: libs/nvds_rest_server/nvds_rest_server.h:176
IFRAME_INTERVAL
@ IFRAME_INTERVAL
Definition: libs/nvds_rest_server/nvds_rest_server.h:48