srs-control 0.2.2
Loading...
Searching...
No Matches
srs::sink::FrameCountChecker Class Reference

#include <FrameCountChecker.hpp>

Collaboration diagram for srs::sink::FrameCountChecker:

Public Member Functions

 FrameCountChecker (std::size_t n_lines)
 FrameCountChecker (const FrameCountChecker &)=delete
 FrameCountChecker (FrameCountChecker &&) noexcept=delete
FrameCountChecker & operator= (const FrameCountChecker &)=delete
FrameCountChecker & operator= (FrameCountChecker &&) noexcept=delete
 ~FrameCountChecker ()
auto run (const OutputTo< InputType > auto &prev_data_converter, std::size_t line_number=0) -> RunResult
auto get_frame_drop_count () const -> int64_t
void close ()
Public Member Functions inherited from srs::process::SinkTask< DataWriterOption::no_output, std::string_view, int64_t >
 SinkTask (std::string_view name, DataConvertOptions prev_convert, std::size_t n_lines=1)
Public Member Functions inherited from srs::process::BaseTask< std::string_view, int64_t >
 BaseTask (std::string_view name, DataConvertOptions prev_convert, std::size_t n_lines=1)
 ~BaseTask ()
auto get_n_lines () const -> std::size_t
auto get_required_conversion () const -> DataConvertOptions
auto get_name () const -> std::string_view
auto get_name_str () const -> std::string
void set_report (AppReport *task_report)
auto run_once (this auto &&self, const OutputTo< InputType > auto &prev_data_converter, std::size_t line_number=0) -> RunResult

Static Public Attributes

static constexpr auto IsStructType = false
Static Public Attributes inherited from srs::process::SinkTask< DataWriterOption::no_output, std::string_view, int64_t >
static constexpr auto writer_type

Private Member Functions

auto analyze_frame_counter (InputType binary_data) -> RunResult
auto extract_frame_counter (InputType binary_data) -> RunResult
void register_frame_counter (int64_t frame_counter)

Private Attributes

std::atomic< int64_t > last_frame_counter_
std::atomic< int64_t > frame_drop_counter_

Additional Inherited Members

Public Types inherited from srs::process::BaseTask< std::string_view, int64_t >
using InputType
using OutputType
using RunResult
Protected Member Functions inherited from srs::process::BaseTask< std::string_view, int64_t >
auto get_report () -> AppReport *

Detailed Description

Definition at line 14 of file FrameCountChecker.hpp.

Constructor & Destructor Documentation

◆ FrameCountChecker() [1/3]

srs::sink::FrameCountChecker::FrameCountChecker ( std::size_t n_lines)

Definition at line 15 of file FrameCountChecker.cpp.

◆ FrameCountChecker() [2/3]

srs::sink::FrameCountChecker::FrameCountChecker ( const FrameCountChecker & )
delete

◆ FrameCountChecker() [3/3]

srs::sink::FrameCountChecker::FrameCountChecker ( FrameCountChecker && )
deletenoexcept

◆ ~FrameCountChecker()

srs::sink::FrameCountChecker::~FrameCountChecker ( )

Definition at line 74 of file FrameCountChecker.cpp.

Member Function Documentation

◆ analyze_frame_counter()

auto srs::sink::FrameCountChecker::analyze_frame_counter ( InputType binary_data) -> RunResult
private

Definition at line 62 of file FrameCountChecker.cpp.

◆ close()

void srs::sink::FrameCountChecker::close ( )
inline

Definition at line 36 of file FrameCountChecker.hpp.

◆ extract_frame_counter()

auto srs::sink::FrameCountChecker::extract_frame_counter ( InputType binary_data) -> RunResult
private

Definition at line 20 of file FrameCountChecker.cpp.

◆ get_frame_drop_count()

auto srs::sink::FrameCountChecker::get_frame_drop_count ( ) const -> int64_t
inlinenodiscard

Definition at line 34 of file FrameCountChecker.hpp.

◆ operator=() [1/2]

FrameCountChecker & srs::sink::FrameCountChecker::operator= ( const FrameCountChecker & )
delete

◆ operator=() [2/2]

FrameCountChecker & srs::sink::FrameCountChecker::operator= ( FrameCountChecker && )
deletenoexcept

◆ register_frame_counter()

void srs::sink::FrameCountChecker::register_frame_counter ( int64_t frame_counter)
private

Definition at line 40 of file FrameCountChecker.cpp.

◆ run()

auto srs::sink::FrameCountChecker::run ( const OutputTo< InputType > auto & prev_data_converter,
std::size_t line_number = 0 ) -> RunResult
inline

Definition at line 27 of file FrameCountChecker.hpp.

Member Data Documentation

◆ frame_drop_counter_

std::atomic<int64_t> srs::sink::FrameCountChecker::frame_drop_counter_
private

Definition at line 40 of file FrameCountChecker.hpp.

◆ IsStructType

auto srs::sink::FrameCountChecker::IsStructType = false
staticconstexpr

Definition at line 17 of file FrameCountChecker.hpp.

◆ last_frame_counter_

std::atomic<int64_t> srs::sink::FrameCountChecker::last_frame_counter_
private

Definition at line 39 of file FrameCountChecker.hpp.


The documentation for this class was generated from the following files: