NVIDIA DeepStream SDK API Reference

9.2 Release
9.2/sources/libs/nvds_rest_server/nvds_parse.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2022-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
3  * SPDX-License-Identifier: Apache-2.0
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17 
18 #ifndef _NVDS_PARSE_H_
19 #define _NVDS_PARSE_H_
20 
21 #include <json/json.h>
22 
23 bool nvds_rest_roi_parse (const Json::Value & in, NvDsServerRoiInfo * roi_info);
24 bool nvds_rest_dec_parse (const Json::Value & in, NvDsServerDecInfo * dec_info);
25 bool nvds_rest_enc_parse (const Json::Value & in, NvDsServerEncInfo * enc_info);
26 bool nvds_rest_conv_parse (const Json::Value & in, NvDsServerConvInfo * conv_info);
27 bool nvds_rest_mux_parse (const Json::Value & in, NvDsServerMuxInfo * mux_info);
28 bool nvds_rest_inferserver_parse (const Json::Value & in,
29  NvDsServerInferServerInfo * inferserver_info);
30 bool nvds_rest_stream_parse (const Json::Value & in,
31  NvDsServerStreamInfo * stream_info);
32 bool nvds_rest_model_parse (const Json::Value & in,
33  NvDsServerModelInfo * model_info);
34 bool nvds_rest_model_update_parse (const Json::Value & in,
35  NvDsServerModelInfo * model_info);
36 bool nvds_rest_model_routing_parse (const Json::Value & in,
37  NvDsServerRouteInfo * route_info);
38 /* Response tail shared by this plane's async POSTs (model/load|unload,
39  * model/update, model/routing). Defined in nvds_model_parse.cpp beside the
40  * model_fail / route_fail vocabulary they belong to, so nvds_rest_server.cpp
41  * stays a thin dispatcher and a future endpoint adds its tail to its own
42  * *_parse.cpp instead of to the shared server body. */
44  std::string & log, const char *what);
46  const NvDsServerErrorInfo & err_info, const std::string & log,
47  const char *model_name = nullptr, const char *model_version = nullptr,
48  const char *state = nullptr);
49 bool nvds_rest_infer_parse (const Json::Value & in, NvDsServerInferInfo * infer_info);
50 bool nvds_rest_nvtracker_parse (const Json::Value & in, NvDsServerNvTrackerInfo * trackerInfo);
51 bool nvds_rest_osd_parse (const Json::Value & in, NvDsServerOsdInfo * osd_info);
52 bool nvds_rest_analytics_parse (const Json::Value & in, NvDsServerAnalyticsInfo * analytics_info);
53 bool nvds_rest_app_instance_parse (const Json::Value & in,
54  NvDsServerAppInstanceInfo * appinstance_info);
55 
56 #endif
nvds_rest_osd_parse
bool nvds_rest_osd_parse(const Json::Value &in, NvDsServerOsdInfo *osd_info)
nvds_rest_stream_parse
bool nvds_rest_stream_parse(const Json::Value &in, NvDsServerStreamInfo *stream_info)
nvds_rest_model_update_parse
bool nvds_rest_model_update_parse(const Json::Value &in, NvDsServerModelInfo *model_info)
nvds_rest_model_routing_parse
bool nvds_rest_model_routing_parse(const Json::Value &in, NvDsServerRouteInfo *route_info)
NvDsServerInferInfo
Definition: includes/nvds_rest_server.h:375
NvDsServerStatusCode
NvDsServerStatusCode
Definition: includes/nvds_rest_server.h:245
NvDsServerMuxInfo
Definition: includes/nvds_rest_server.h:315
NvDsServerInferServerInfo
Definition: includes/nvds_rest_server.h:454
nvds_rest_roi_parse
bool nvds_rest_roi_parse(const Json::Value &in, NvDsServerRoiInfo *roi_info)
nvds_rest_model_parse
bool nvds_rest_model_parse(const Json::Value &in, NvDsServerModelInfo *model_info)
nvds_rest_analytics_parse
bool nvds_rest_analytics_parse(const Json::Value &in, NvDsServerAnalyticsInfo *analytics_info)
NvDsServerModelInfo
Definition: sources/libs/nvds_rest_server/nvds_rest_server.h:424
half_float::log
half log(half arg)
Natural logarithm.
Definition: includes/half.hpp:3067
nvds_rest_enc_parse
bool nvds_rest_enc_parse(const Json::Value &in, NvDsServerEncInfo *enc_info)
NvDsServerEncInfo
Definition: includes/nvds_rest_server.h:285
nvds_rest_mux_parse
bool nvds_rest_mux_parse(const Json::Value &in, NvDsServerMuxInfo *mux_info)
nvds_rest_infer_parse
bool nvds_rest_infer_parse(const Json::Value &in, NvDsServerInferInfo *infer_info)
NvDsServerOsdInfo
Definition: includes/nvds_rest_server.h:386
NvDsServerDecInfo
Definition: includes/nvds_rest_server.h:271
nvds_rest_ctl_finish_async_response
NvDsServerStatusCode nvds_rest_ctl_finish_async_response(Json::Value &response, const NvDsServerErrorInfo &err_info, const std::string &log, const char *model_name=nullptr, const char *model_version=nullptr, const char *state=nullptr)
nvds_rest_nvtracker_parse
bool nvds_rest_nvtracker_parse(const Json::Value &in, NvDsServerNvTrackerInfo *trackerInfo)
NvDsServerRoiInfo
Definition: includes/nvds_rest_server.h:327
nvds_rest_app_instance_parse
bool nvds_rest_app_instance_parse(const Json::Value &in, NvDsServerAppInstanceInfo *appinstance_info)
nvds_rest_conv_parse
bool nvds_rest_conv_parse(const Json::Value &in, NvDsServerConvInfo *conv_info)
NvDsServerStreamInfo
Definition: includes/nvds_rest_server.h:340
NvDsServerRouteInfo
Definition: sources/libs/nvds_rest_server/nvds_rest_server.h:475
nvds_rest_inferserver_parse
bool nvds_rest_inferserver_parse(const Json::Value &in, NvDsServerInferServerInfo *inferserver_info)
NvDsServerNvTrackerInfo
Definition: includes/nvds_rest_server.h:466
nvds_rest_ctl_fail_no_handler
void nvds_rest_ctl_fail_no_handler(NvDsServerErrorInfo &err, std::string &log, const char *what)
NvDsServerAppInstanceInfo
Definition: includes/nvds_rest_server.h:443
NvDsServerConvInfo
Definition: includes/nvds_rest_server.h:300
NvDsServerAnalyticsInfo
Definition: includes/nvds_rest_server.h:398
NvDsServerErrorInfo
Definition: includes/nvds_rest_server.h:265
nvds_rest_dec_parse
bool nvds_rest_dec_parse(const Json::Value &in, NvDsServerDecInfo *dec_info)