Session.h File
Session entry point and RTSP server handle. More...
Included Headers
#include "builder/Node.h"
#include "builder/NodeGroup.h"
#include "pipeline/SessionOptions.h"
#include "pipeline/Run.h"
#include "builder/GraphPrinter.h"
#include "nodes/common/Output.h"
#include "nodes/common/Caps.h"
#include "nodes/common/FileInput.h"
#include "nodes/common/JpegDecode.h"
#include "nodes/common/VideoTrackSelect.h"
#include "nodes/common/Queue.h"
#include "nodes/common/VideoConvert.h"
#include "nodes/common/VideoScale.h"
#include "nodes/io/StillImageInput.h"
#include "nodes/io/Input.h"
#include "nodes/io/RTSPInput.h"
#include "nodes/rtp/H264Depacketize.h"
#include "nodes/sima/H264DecodeSima.h"
#include "nodes/sima/H264EncodeSima.h"
#include "nodes/sima/H264Parse.h"
#include "nodes/sima/H264Packetize.h"
#include <atomic>
#include <functional>
#include <memory>
#include <string>
#include <utility>
#include <vector>
#include <opencv2/core/mat.hpp>
#include <gst/gst.h>
Namespaces Index
| namespace | simaai |
| namespace | neat |
Classes Index
| class | RtspServerHandle |
| class | Session |
|
Build, validate, and run deterministic GStreamer pipelines. More... | |
| struct | BuiltState |
| struct | GroupMeta |
Description
Session entry point and RTSP server handle.
File Listing
The file content with the documentation metadata removed is:
10#include "pipeline/SessionOptions.h"
11#include "pipeline/Run.h"
13#include "nodes/common/Output.h"
14#include "nodes/common/Caps.h"
15#include "nodes/common/FileInput.h"
16#include "nodes/common/JpegDecode.h"
17#include "nodes/common/VideoTrackSelect.h"
18#include "nodes/common/Queue.h"
19#include "nodes/common/VideoConvert.h"
20#include "nodes/common/VideoScale.h"
21#include "nodes/io/StillImageInput.h"
22#include "nodes/io/Input.h"
23#include "nodes/io/RTSPInput.h"
24#include "nodes/rtp/H264Depacketize.h"
25#include "nodes/sima/H264DecodeSima.h"
26#include "nodes/sima/H264EncodeSima.h"
27#include "nodes/sima/H264Parse.h"
28#include "nodes/sima/H264Packetize.h"
40namespace simaai::neat {
42class RtspServerHandle {
44 RtspServerHandle() = default;
47 RtspServerHandle(const RtspServerHandle&) = delete;
48 RtspServerHandle& operator=(const RtspServerHandle&) = delete;
50 RtspServerHandle(RtspServerHandle&&) noexcept;
51 RtspServerHandle& operator=(RtspServerHandle&&) noexcept;
58 stop();
78 using TensorCallback = std::function<bool(const simaai::neat::Tensor&)>;
80 explicit Session(const SessionOptions& opt = {});
98 Sample run(const cv::Mat& input, const RunOptions& opt = {});
99 Sample run(const simaai::neat::Tensor& input, const RunOptions& opt = {});
100 Run build(const cv::Mat& input, RunMode mode = RunMode::Async, const RunOptions& opt = {});
101 Run build(const simaai::neat::Tensor& input, RunMode mode = RunMode::Async,
102 const RunOptions& opt = {});
103 Run build(const Sample& input, RunMode mode = RunMode::Async, const RunOptions& opt = {});
104 SessionReport validate(const ValidateOptions& opt, const cv::Mat& input) const;
107 RtspServerHandle run_rtsp(const RtspServerOptions& opt);
110 SessionReport validate(const ValidateOptions& opt = {}) const;
113 Session& add_output_tensor(const OutputTensorOptions& opt = {});
117 std::string describe_backend(bool insert_boundaries = false) const;
123 void set_tensor_callback(TensorCallback cb);
131 Run build(const RunOptions& opt = {});
133 const std::string& last_pipeline() const {
139 GstElement* pipeline = nullptr;
140 GstElement* sink = nullptr;
156 TensorCallback tensor_cb_;
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.1.