Zao SDK for Jetson / libzao-endpoint API リファレンス 1.2.0.0 (2023-10-30)
Loading...
Searching...
No Matches
VideoStat.hpp
1#ifndef ZAO_ENDPOINT_MONITOR_VIDEO_STAT_HPP_
2#define ZAO_ENDPOINT_MONITOR_VIDEO_STAT_HPP_
3
4#include <vector>
5
6namespace zao {
7namespace endpoint {
8namespace monitor {
9
14 public:
19 VideoStatEntry() noexcept {}
20
32 VideoStatEntry(std::uint32_t nal, std::uint32_t byte, std::uint32_t rst_cnt,
33 std::uint8_t rst_st, std::uint32_t stop_cnt,
34 std::uint8_t stop_st, std::uint32_t tgt_kbps) noexcept
35 : nal_(nal),
36 byte_(byte),
37 rst_cnt_(rst_cnt),
38 rst_st_(rst_st),
39 stop_cnt_(stop_cnt),
40 stop_st_(stop_st),
41 tgt_kbps_(tgt_kbps) {}
45 std::uint32_t nal_ = 0;
49 std::uint32_t byte_ = 0;
53 std::uint32_t rst_cnt_ = 0;
57 std::uint8_t rst_st_ = 0;
61 std::uint32_t stop_cnt_ = 0;
65 std::uint8_t stop_st_ = 0;
69 std::uint32_t tgt_kbps_ = 0;
70};
71
75class VideoStat {
76 public:
81 VideoStat() noexcept {}
82
87 VideoStat(const VideoStatEntry& video_stat) noexcept {
88 SetVideoStat(video_stat);
89 }
90
96 void SetVideoStat(const VideoStatEntry& video_stat) noexcept {
97 video_stat_ = video_stat;
98 }
99
103 VideoStatEntry GetVideoStat() const noexcept { return video_stat_; }
104
105 private:
109 VideoStatEntry video_stat_;
110};
111
112} // namespace monitor
113} // namespace endpoint
114} // namespace zao
115
116#endif // ZAO_ENDPOINT_MONITOR_VIDEO_STAT_HPP_
Video Statistics フォーマット
Definition VideoStat.hpp:75
void SetVideoStat(const VideoStatEntry &video_stat) noexcept
VideoStatEntry 構造体を設定する.
Definition VideoStat.hpp:96
VideoStat() noexcept
VideoStat オブジェクトをデフォルト構築する.
Definition VideoStat.hpp:81
VideoStatEntry GetVideoStat() const noexcept
VideoStatEntry 構造体を取得する.
Definition VideoStat.hpp:103
VideoStat(const VideoStatEntry &video_stat) noexcept
VideoStat オブジェクトを初期値付きで構築する.
Definition VideoStat.hpp:87
Zao製品共通の名前空間
Definition FactoryInterface.hpp:11
Video Statistics 設定フォーマット
Definition VideoStat.hpp:13
std::uint8_t rst_st_
reset_stream の状態(0/1)
Definition VideoStat.hpp:57
VideoStatEntry() noexcept
VideoStatEntry オブジェクトをデフォルト構築する.
Definition VideoStat.hpp:19
std::uint32_t stop_cnt_
stop_supply_of_stream が 1 になった回数
Definition VideoStat.hpp:61
std::uint32_t tgt_kbps_
ターゲットビットレート
Definition VideoStat.hpp:69
VideoStatEntry(std::uint32_t nal, std::uint32_t byte, std::uint32_t rst_cnt, std::uint8_t rst_st, std::uint32_t stop_cnt, std::uint8_t stop_st, std::uint32_t tgt_kbps) noexcept
VideoStatEntry オブジェクトを初期値付きで構築する.
Definition VideoStat.hpp:32
std::uint8_t stop_st_
stop_supply_of_stream の状態(0/1)
Definition VideoStat.hpp:65
std::uint32_t byte_
RASCOW2 にプッシュしたバイト数
Definition VideoStat.hpp:49
std::uint32_t nal_
RASCOW2 にプッシュした数
Definition VideoStat.hpp:45
std::uint32_t rst_cnt_
reset_stream が 1 になった回数
Definition VideoStat.hpp:53