NVIDIA DeepStream SDK API Reference

6.4 Release
includes/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;
200  guint skip_frames;
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;
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;
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;
303  std::string osd_log;
304  std::string uri;
307 
309 {
310  std::string root_key;
311  gboolean app_quit;
314  std::string app_log;
315  std::string uri;
318 
320 {
321  std::string root_key;
322  std::string stream_id;
323  guint interval;
326  std::string inferserver_log;
327  std::string uri;
330 
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
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
INFERSERVER_INTERVAL
@ INFERSERVER_INTERVAL
Definition: includes/nvds_rest_server.h:72
NvDsServerOsdStatus
NvDsServerOsdStatus
Definition: includes/nvds_rest_server.h:164
NvDsServerRoiInfo::stream_id
std::string stream_id
Definition: includes/nvds_rest_server.h:254
NvDsServerStreamInfo::metadata_resolution
std::string metadata_resolution
Definition: includes/nvds_rest_server.h:272
NvDsServerResponseInfo
struct NvDsServerResponseInfo NvDsServerResponseInfo
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
FORCE_INTRA
@ FORCE_INTRA
Definition: includes/nvds_rest_server.h:47
BITRATE
@ BITRATE
Definition: includes/nvds_rest_server.h:45
NvDsServerRoiInfo::roi_log
std::string roi_log
Definition: includes/nvds_rest_server.h:259
NvDsServerResponseInfo
Definition: includes/nvds_rest_server.h:331
INTERPOLATION_METHOD
@ INTERPOLATION_METHOD
Definition: includes/nvds_rest_server.h:56
STREAM_REMOVE_SUCCESS
@ STREAM_REMOVE_SUCCESS
Definition: includes/nvds_rest_server.h:100
NvDsServerCallbacks::custom_cb_endpt
std::unordered_map< std::string, cb_func > custom_cb_endpt
Definition: includes/nvds_rest_server.h:363
ROI_UPDATE_FAIL
@ ROI_UPDATE_FAIL
Definition: includes/nvds_rest_server.h:107
NvDsServerRoiInfo::roi_flag
NvDsServerRoiPropFlag roi_flag
Definition: includes/nvds_rest_server.h:258
BATCHED_PUSH_TIMEOUT_UPDATE_FAIL
@ BATCHED_PUSH_TIMEOUT_UPDATE_FAIL
Definition: includes/nvds_rest_server.h:147
NvDsServerConvInfo::root_key
std::string root_key
Definition: includes/nvds_rest_server.h:226
FLIP_METHOD_UPDATE_FAIL
@ FLIP_METHOD_UPDATE_FAIL
Definition: includes/nvds_rest_server.h:141
NvDsServerConvInfo::status
NvDsServerConvStatus status
Definition: includes/nvds_rest_server.h:232
NvDsServerMuxInfo::mux_flag
NvDsServerMuxPropFlag mux_flag
Definition: includes/nvds_rest_server.h:245
NvDsServerErrorInfo::code
NvDsServerStatusCode code
Definition: includes/nvds_rest_server.h:192
gst-nvdscustomevent.h
ROI_UPDATE_SUCCESS
@ ROI_UPDATE_SUCCESS
Definition: includes/nvds_rest_server.h:106
SRC_CROP_UPDATE_FAIL
@ SRC_CROP_UPDATE_FAIL
Definition: includes/nvds_rest_server.h:137
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
FORCE_IDR
@ FORCE_IDR
Definition: includes/nvds_rest_server.h:46
NvDsServerOsdInfo::uri
std::string uri
Definition: includes/nvds_rest_server.h:304
NvDsServerDecStatus
NvDsServerDecStatus
Definition: includes/nvds_rest_server.h:110
NvDsServerConvInfo::src_crop
std::string src_crop
Definition: includes/nvds_rest_server.h:228
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
INFERSERVER_INTERVAL_UPDATE_FAIL
@ INFERSERVER_INTERVAL_UPDATE_FAIL
Definition: includes/nvds_rest_server.h:161
NvDsServerInferInfo
Definition: includes/nvds_rest_server.h:284
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
NvDsServerConfig::ip
std::string ip
Definition: includes/nvds_rest_server.h:339
NvDsServerStreamInfo
struct NvDsServerStreamInfo NvDsServerStreamInfo
BITRATE_UPDATE_SUCCESS
@ BITRATE_UPDATE_SUCCESS
Definition: includes/nvds_rest_server.h:122
BITRATE_UPDATE_FAIL
@ BITRATE_UPDATE_FAIL
Definition: includes/nvds_rest_server.h:123
NvDsServerMuxStatus
NvDsServerMuxStatus
Definition: includes/nvds_rest_server.h:144
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
NvDsServerRoiInfo::vect
std::vector< RoiDimension > vect
Definition: includes/nvds_rest_server.h:256
SKIP_FRAMES_UPDATE_SUCCESS
@ SKIP_FRAMES_UPDATE_SUCCESS
Definition: includes/nvds_rest_server.h:114
NvDsServerOsdInfo::process_mode
guint process_mode
Definition: includes/nvds_rest_server.h:300
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
NvDsServerInferServerInfo
Definition: includes/nvds_rest_server.h:319
DEST_CROP_UPDATE_SUCCESS
@ DEST_CROP_UPDATE_SUCCESS
Definition: includes/nvds_rest_server.h:134
NvDsServerCallbacks::appinstance_cb
std::function< void(NvDsServerAppInstanceInfo *appinstance_info, void *ctx) > appinstance_cb
Definition: includes/nvds_rest_server.h:362
StatusAccepted
@ StatusAccepted
Definition: includes/nvds_rest_server.h:173
NvDsServerEncPropFlag
NvDsServerEncPropFlag
Definition: includes/nvds_rest_server.h:43
NvDsServerDecInfo::drop_frame_interval
guint drop_frame_interval
Definition: includes/nvds_rest_server.h:199
NvDsServerMuxInfo::err_info
NvDsServerErrorInfo err_info
Definition: includes/nvds_rest_server.h:248
ROI_UPDATE
@ ROI_UPDATE
Definition: includes/nvds_rest_server.h:82
NvDsServerEncInfo::uri
std::string uri
Definition: includes/nvds_rest_server.h:220
NvDsServerConvInfo::flip_method
guint flip_method
Definition: includes/nvds_rest_server.h:230
NvDsServerInferServerPropFlag
NvDsServerInferServerPropFlag
Definition: includes/nvds_rest_server.h:70
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
nvds_rest_server_stop
void nvds_rest_server_stop(NvDsRestServer *ctx)
NvDsServerEncInfo::status
NvDsServerEncStatus status
Definition: includes/nvds_rest_server.h:217
NvDsServerCallbacks
Definition: includes/nvds_rest_server.h:347
StatusNotAcceptable
@ StatusNotAcceptable
Definition: includes/nvds_rest_server.h:178
NvDsServerConfig::port
std::string port
Definition: includes/nvds_rest_server.h:340
SRC_CROP_UPDATE_SUCCESS
@ SRC_CROP_UPDATE_SUCCESS
Definition: includes/nvds_rest_server.h:136
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
NvDsServerRoiInfo
struct NvDsServerRoiInfo NvDsServerRoiInfo
FORCE_INTRA_UPDATE_SUCCESS
@ FORCE_INTRA_UPDATE_SUCCESS
Definition: includes/nvds_rest_server.h:126
NvDsServerEncInfo::root_key
std::string root_key
Definition: includes/nvds_rest_server.h:211
NvDsServerDecInfo::dec_flag
NvDsServerDecPropFlag dec_flag
Definition: includes/nvds_rest_server.h:203
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
StatusUnsupportedMediaType
@ StatusUnsupportedMediaType
Definition: includes/nvds_rest_server.h:184
NvDsServerEncInfo::bitrate
guint bitrate
Definition: includes/nvds_rest_server.h:213
NvDsServerDecInfo::root_key
std::string root_key
Definition: includes/nvds_rest_server.h:197
iequals
bool iequals(const std::string &a, const std::string &b)
NvDsServerDecInfo::low_latency_mode
gboolean low_latency_mode
Definition: includes/nvds_rest_server.h:201
IFRAME_INTERVAL_UPDATE_FAIL
@ IFRAME_INTERVAL_UPDATE_FAIL
Definition: includes/nvds_rest_server.h:129
DROP_FRAME_INTERVAL_UPDATE_FAIL
@ DROP_FRAME_INTERVAL_UPDATE_FAIL
Definition: includes/nvds_rest_server.h:113
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
SKIP_FRAMES_UPDATE_FAIL
@ SKIP_FRAMES_UPDATE_FAIL
Definition: includes/nvds_rest_server.h:115
NvDsServerMuxInfo
struct NvDsServerMuxInfo NvDsServerMuxInfo
NvDsServerStreamInfo::uri
std::string uri
Definition: includes/nvds_rest_server.h:280
NvDsServerDecInfo
struct NvDsServerDecInfo NvDsServerDecInfo
StatusForbidden
@ StatusForbidden
Definition: includes/nvds_rest_server.h:176
NvDsServerStreamStatus
NvDsServerStreamStatus
Definition: includes/nvds_rest_server.h:96
NvDsServerRoiStatus
NvDsServerRoiStatus
Definition: includes/nvds_rest_server.h:104
BATCHED_PUSH_TIMEOUT_UPDATE_SUCCESS
@ BATCHED_PUSH_TIMEOUT_UPDATE_SUCCESS
Definition: includes/nvds_rest_server.h:146
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
NvDsServerConfig
struct NvDsServerConfig NvDsServerConfig
NvDsServerInferServerInfo::uri
std::string uri
Definition: includes/nvds_rest_server.h:327
NvDsServerAppInstanceStatus
NvDsServerAppInstanceStatus
Definition: includes/nvds_rest_server.h:90
FLIP_METHOD_UPDATE_SUCCESS
@ FLIP_METHOD_UPDATE_SUCCESS
Definition: includes/nvds_rest_server.h:140
NvDsServerOsdInfo::osd_log
std::string osd_log
Definition: includes/nvds_rest_server.h:303
NvDsServerInferInfo
struct NvDsServerInferInfo NvDsServerInferInfo
NvDsServerConfig
Definition: includes/nvds_rest_server.h:337
NvDsServerEncInfo
Definition: includes/nvds_rest_server.h:209
INFER_INTERVAL
@ INFER_INTERVAL
Definition: includes/nvds_rest_server.h:67
NvDsServerInferPropFlag
NvDsServerInferPropFlag
Definition: includes/nvds_rest_server.h:65
PROCESS_MODE
@ PROCESS_MODE
Definition: includes/nvds_rest_server.h:77
NvDsServerAppInstanceFlag
NvDsServerAppInstanceFlag
Definition: includes/nvds_rest_server.h:85
NvDsServerResponseInfo::reason
std::string reason
Definition: includes/nvds_rest_server.h:334
INFERSERVER_INTERVAL_UPDATE_SUCCESS
@ INFERSERVER_INTERVAL_UPDATE_SUCCESS
Definition: includes/nvds_rest_server.h:160
NvDsServerStreamInfo::metadata_framerate
std::string metadata_framerate
Definition: includes/nvds_rest_server.h:274
NvDsServerConvInfo::err_info
NvDsServerErrorInfo err_info
Definition: includes/nvds_rest_server.h:236
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
NvDsServerOsdInfo
Definition: includes/nvds_rest_server.h:296
NvDsServerRoiInfo::roi_count
guint roi_count
Definition: includes/nvds_rest_server.h:255
DEST_CROP
@ DEST_CROP
Definition: includes/nvds_rest_server.h:54
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
SRC_CROP
@ SRC_CROP
Definition: includes/nvds_rest_server.h:53
NvDsServerOsdInfo::root_key
std::string root_key
Definition: includes/nvds_rest_server.h:298
NvDsServerOsdPropFlag
NvDsServerOsdPropFlag
Definition: includes/nvds_rest_server.h:75
QUIT_SUCCESS
@ QUIT_SUCCESS
Definition: includes/nvds_rest_server.h:92
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
FLIP_METHOD
@ FLIP_METHOD
Definition: includes/nvds_rest_server.h:55
NvDsServerMuxInfo::max_latency
guint max_latency
Definition: includes/nvds_rest_server.h:243
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
QUIT_FAIL
@ QUIT_FAIL
Definition: includes/nvds_rest_server.h:93
DROP_FRAME_INTERVAL
@ DROP_FRAME_INTERVAL
Definition: includes/nvds_rest_server.h:38
NvDsServerRoiInfo
Definition: includes/nvds_rest_server.h:251
StatusBadRequest
@ StatusBadRequest
Definition: includes/nvds_rest_server.h:174
BATCHED_PUSH_TIMEOUT
@ BATCHED_PUSH_TIMEOUT
Definition: includes/nvds_rest_server.h:61
LOW_LATENCY_MODE_UPDATE_SUCCESS
@ LOW_LATENCY_MODE_UPDATE_SUCCESS
Definition: includes/nvds_rest_server.h:116
NvDsServerStreamInfo
Definition: includes/nvds_rest_server.h:264
SKIP_FRAMES
@ SKIP_FRAMES
Definition: includes/nvds_rest_server.h:39
StatusOk
@ StatusOk
Definition: includes/nvds_rest_server.h:172
NvDsServerConvStatus
NvDsServerConvStatus
Definition: includes/nvds_rest_server.h:132
NvDsServerAppInstanceInfo::status
NvDsServerAppInstanceStatus status
Definition: includes/nvds_rest_server.h:312
NvDsServerRoiInfo::uri
std::string uri
Definition: includes/nvds_rest_server.h:260
NvDsServerEncInfo::iframeinterval
guint iframeinterval
Definition: includes/nvds_rest_server.h:216
LOW_LATENCY_MODE_UPDATE_FAIL
@ LOW_LATENCY_MODE_UPDATE_FAIL
Definition: includes/nvds_rest_server.h:117
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
StatusProxyAuthenticationRequired
@ StatusProxyAuthenticationRequired
Definition: includes/nvds_rest_server.h:179
NvDsServerConvInfo
struct NvDsServerConvInfo NvDsServerConvInfo
NvDsServerErrorInfo
struct NvDsServerErrorInfo NvDsServerErrorInfo
INTERPOLATION_METHOD_UPDATE_SUCCESS
@ INTERPOLATION_METHOD_UPDATE_SUCCESS
Definition: includes/nvds_rest_server.h:138
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
NvDsServerRoiInfo::root_key
std::string root_key
Definition: includes/nvds_rest_server.h:253
PROCESS_MODE_UPDATE_FAIL
@ PROCESS_MODE_UPDATE_FAIL
Definition: includes/nvds_rest_server.h:167
NvDsServerOsdInfo::err_info
NvDsServerErrorInfo err_info
Definition: includes/nvds_rest_server.h:305
IFRAME_INTERVAL
@ IFRAME_INTERVAL
Definition: includes/nvds_rest_server.h:48
NvDsServerEncStatus
NvDsServerEncStatus
Definition: includes/nvds_rest_server.h:120
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:273
StatusPreconditionFailed
@ StatusPreconditionFailed
Definition: includes/nvds_rest_server.h:181
NvDsServerEncInfo::enc_log
std::string enc_log
Definition: includes/nvds_rest_server.h:219
NvDsServerInferServerInfo
struct NvDsServerInferServerInfo NvDsServerInferServerInfo
INFER_INTERVAL_UPDATE_SUCCESS
@ INFER_INTERVAL_UPDATE_SUCCESS
Definition: includes/nvds_rest_server.h:154
NvDsServerInferInfo::interval
guint interval
Definition: includes/nvds_rest_server.h:288
NvDsServerOsdInfo::osd_flag
NvDsServerOsdPropFlag osd_flag
Definition: includes/nvds_rest_server.h:302
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
StatusUnauthorized
@ StatusUnauthorized
Definition: includes/nvds_rest_server.h:175
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
LOW_LATENCY_MODE
@ LOW_LATENCY_MODE
Definition: includes/nvds_rest_server.h:40
StatusUriTooLong
@ StatusUriTooLong
Definition: includes/nvds_rest_server.h:183
NvDsServerDecPropFlag
NvDsServerDecPropFlag
Definition: includes/nvds_rest_server.h:36
NvDsServerMuxPropFlag
NvDsServerMuxPropFlag
Definition: includes/nvds_rest_server.h:59
STREAM_ADD_SUCCESS
@ STREAM_ADD_SUCCESS
Definition: includes/nvds_rest_server.h:98
StatusInternalServerError
@ StatusInternalServerError
Definition: includes/nvds_rest_server.h:185
NvDsServerConvInfo::conv_log
std::string conv_log
Definition: includes/nvds_rest_server.h:234
NvDsServerConvInfo::uri
std::string uri
Definition: includes/nvds_rest_server.h:235
MAX_LATENCY
@ MAX_LATENCY
Definition: includes/nvds_rest_server.h:62
INFER_INTERVAL_UPDATE_FAIL
@ INFER_INTERVAL_UPDATE_FAIL
Definition: includes/nvds_rest_server.h:155
StatusMethodNotAllowed
@ StatusMethodNotAllowed
Definition: includes/nvds_rest_server.h:177
MAX_LATENCY_UPDATE_SUCCESS
@ MAX_LATENCY_UPDATE_SUCCESS
Definition: includes/nvds_rest_server.h:148
INTERPOLATION_METHOD_UPDATE_FAIL
@ INTERPOLATION_METHOD_UPDATE_FAIL
Definition: includes/nvds_rest_server.h:139
NvDsServerInferInfo::err_info
NvDsServerErrorInfo err_info
Definition: includes/nvds_rest_server.h:293
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
NvDsServerEncInfo
struct NvDsServerEncInfo NvDsServerEncInfo
FORCE_INTRA_UPDATE_FAIL
@ FORCE_INTRA_UPDATE_FAIL
Definition: includes/nvds_rest_server.h:127
StatusPayloadTooLarge
@ StatusPayloadTooLarge
Definition: includes/nvds_rest_server.h:182
FORCE_IDR_UPDATE_FAIL
@ FORCE_IDR_UPDATE_FAIL
Definition: includes/nvds_rest_server.h:125
StatusNotImplemented
@ StatusNotImplemented
Definition: includes/nvds_rest_server.h:186
NvDsServerAppInstanceInfo
struct NvDsServerAppInstanceInfo NvDsServerAppInstanceInfo
STREAM_REMOVE_FAIL
@ STREAM_REMOVE_FAIL
Definition: includes/nvds_rest_server.h:101
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
NvDsServerCallbacks
struct NvDsServerCallbacks NvDsServerCallbacks
NvDsServerConvInfo::conv_flag
NvDsServerConvPropFlag conv_flag
Definition: includes/nvds_rest_server.h:233
IFRAME_INTERVAL_UPDATE_SUCCESS
@ IFRAME_INTERVAL_UPDATE_SUCCESS
Definition: includes/nvds_rest_server.h:128
NvDsServerStreamInfo::status
NvDsServerStreamStatus status
Definition: includes/nvds_rest_server.h:278
NvDsServerOsdInfo
struct NvDsServerOsdInfo NvDsServerOsdInfo
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
QUIT_APP
@ QUIT_APP
Definition: includes/nvds_rest_server.h:87
DEST_CROP_UPDATE_FAIL
@ DEST_CROP_UPDATE_FAIL
Definition: includes/nvds_rest_server.h:135
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
FORCE_IDR_UPDATE_SUCCESS
@ FORCE_IDR_UPDATE_SUCCESS
Definition: includes/nvds_rest_server.h:124
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
DROP_FRAME_INTERVAL_UPDATE_SUCCESS
@ DROP_FRAME_INTERVAL_UPDATE_SUCCESS
Definition: includes/nvds_rest_server.h:112
NvDsServerInferServerInfo::interval
guint interval
Definition: includes/nvds_rest_server.h:323
NvDsServerAppInstanceInfo::appinstance_flag
NvDsServerAppInstanceFlag appinstance_flag
Definition: includes/nvds_rest_server.h:313
NvDsServerCallbacks::mux_cb
std::function< void(NvDsServerMuxInfo *mux_info, void *ctx) > mux_cb
Definition: includes/nvds_rest_server.h:357
STREAM_ADD_FAIL
@ STREAM_ADD_FAIL
Definition: includes/nvds_rest_server.h:99
StatusRequestTimeout
@ StatusRequestTimeout
Definition: includes/nvds_rest_server.h:180
PROCESS_MODE_UPDATE_SUCCESS
@ PROCESS_MODE_UPDATE_SUCCESS
Definition: includes/nvds_rest_server.h:166
MAX_LATENCY_UPDATE_FAIL
@ MAX_LATENCY_UPDATE_FAIL
Definition: includes/nvds_rest_server.h:149