Zao SDK for Jetson / libzao-endpoint API リファレンス 1.5.0.0 (2024-09-25)
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
15 public:
23 VideoStatEntry() noexcept {}
24
44 VideoStatEntry(std::uint32_t nal, std::uint32_t byte, std::uint32_t rst_cnt,
45 std::uint8_t rst_st, std::uint32_t stop_cnt,
46 std::uint8_t stop_st, std::uint32_t tgt_kbps) noexcept
47 : nal_(nal),
48 byte_(byte),
49 rst_cnt_(rst_cnt),
50 rst_st_(rst_st),
51 stop_cnt_(stop_cnt),
52 stop_st_(stop_st),
53 tgt_kbps_(tgt_kbps) {}
58 std::uint32_t nal_ = 0;
63 std::uint32_t byte_ = 0;
68 std::uint32_t rst_cnt_ = 0;
73 std::uint8_t rst_st_ = 0;
78 std::uint32_t stop_cnt_ = 0;
83 std::uint8_t stop_st_ = 0;
88 std::uint32_t tgt_kbps_ = 0;
89};
90
95class VideoStat {
96 public:
104 VideoStat() noexcept {}
105
113 VideoStat(const VideoStatEntry& video_stat) noexcept {
114 SetVideoStat(video_stat);
115 }
116
124 void SetVideoStat(const VideoStatEntry& video_stat) noexcept {
125 video_stat_ = video_stat;
126 }
127
132 VideoStatEntry GetVideoStat() const noexcept { return video_stat_; }
133
134 private:
139 VideoStatEntry video_stat_;
140};
141
142} // namespace monitor
143} // namespace endpoint
144} // namespace zao
145
146#endif // ZAO_ENDPOINT_MONITOR_VIDEO_STAT_HPP_
Video Statistics フォーマット
Definition VideoStat.hpp:95
void SetVideoStat(const VideoStatEntry &video_stat) noexcept
VideoStatEntry 構造体を設定する.
Definition VideoStat.hpp:124
VideoStat() noexcept
VideoStat オブジェクトをデフォルト構築する.
Definition VideoStat.hpp:104
VideoStatEntry GetVideoStat() const noexcept
VideoStatEntry 構造体を取得する.
Definition VideoStat.hpp:132
VideoStat(const VideoStatEntry &video_stat) noexcept
VideoStat オブジェクトを初期値付きで構築する.
Definition VideoStat.hpp:113
Zao製品共通の名前空間
Definition FactoryInterface.hpp:11
Video Statistics 設定フォーマット
Definition VideoStat.hpp:14
std::uint8_t rst_st_
reset_stream の状態(0/1)
Definition VideoStat.hpp:73
VideoStatEntry() noexcept
VideoStatEntry オブジェクトをデフォルト構築する.
Definition VideoStat.hpp:23
std::uint32_t stop_cnt_
stop_supply_of_stream が 1 になった回数
Definition VideoStat.hpp:78
std::uint32_t tgt_kbps_
ターゲットビットレート
Definition VideoStat.hpp:88
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:44
std::uint8_t stop_st_
stop_supply_of_stream の状態(0/1)
Definition VideoStat.hpp:83
std::uint32_t byte_
RASCOW2 にプッシュしたバイト数
Definition VideoStat.hpp:63
std::uint32_t nal_
RASCOW2 にプッシュした数
Definition VideoStat.hpp:58
std::uint32_t rst_cnt_
reset_stream が 1 になった回数
Definition VideoStat.hpp:68