|
|
NVIDIA DeepStream SDK API Reference
|
9.1 Release
|
Go to the documentation of this file.
18 #ifndef __NVDSINFER_SERVER_PROTO_UTILS_H__
19 #define __NVDSINFER_SERVER_PROTO_UTILS_H__
26 #include <condition_variable>
32 #include "nvbufsurftransform.h"
33 #include <infer_datatypes.h>
35 #pragma GCC diagnostic push
37 #pragma GCC diagnostic ignored "-Wrestrict"
39 #include "nvdsinferserver_config.pb.h"
40 #include "nvdsinferserver_plugin.pb.h"
41 #pragma GCC diagnostic pop
43 namespace ic = nvdsinferserver::config;
58 const ic::TritonModelRepo& repoA,
const ic::TritonModelRepo& repoB);
61 hasTriton(
const ic::BackendParams& params)
63 return params.has_triton() || params.has_trt_is();
65 inline const ic::TritonParams&
68 if (params.has_triton()) {
69 return params.triton();
71 assert(params.has_trt_is());
72 return params.trt_is();
75 inline ic::TritonParams*
78 if (params.has_triton()) {
79 return params.mutable_triton();
81 assert(params.has_trt_is());
82 return params.mutable_trt_is();
This is a header file for pre-processing cuda kernels with normalization and mean subtraction require...
ic::TritonParams * mutableTriton(ic::BackendParams ¶ms)
InferDataType
Datatype of the tensor buffer.
InferMediaFormat
Image formats.
bool validateProtoConfig(ic::InferenceConfig &c, const std::string &path)
InferTensorOrder
The type of tensor order.
InferDataType dataTypeFromDsProto(ic::TensorDataType dt)
InferMediaFormat mediaFormatFromDsProto(ic::MediaFormat f)
NvBufSurfTransform_Compute
Specifies compute devices used by NvBufSurfTransform.
NvBufSurfTransform_Compute computeHWFromDsProto(ic::FrameScalingHW h)
InferTensorOrder tensorOrderFromDsProto(ic::TensorOrder o)
const ic::TritonParams & getTritonParam(const ic::BackendParams ¶ms)
NvBufSurfTransform_Inter scalingFilterFromDsProto(uint32_t filter)
InferMemType
The memory types of inference buffers.
bool compareModelRepo(const ic::TritonModelRepo &repoA, const ic::TritonModelRepo &repoB)
NvBufSurfTransform_Inter
Specifies video interpolation methods.
InferMemType memTypeFromDsProto(ic::MemoryType t)
bool hasTriton(const ic::BackendParams ¶ms)