TSDuck v3.46-4930
MPEG Transport Stream Toolkit
Loading...
Searching...
No Matches
ts::SectionDemux::Status Struct Reference

#include <tsSectionDemux.h>

Public Member Functions

 Status ()
 Status (const SectionDemux &demux)
void display (Report &report, int level=Severity::Info, const UString &prefix=UString(), bool errors_only=false) const
std::ostream & display (std::ostream &strm, int indent=0, bool errors_only=false) const
bool hasErrors () const
void reset ()

Public Attributes

uint64_t discontinuities
 Number of TS packets discontinuities.
uint64_t inv_sect_index
 Number of invalid section index.
uint64_t inv_sect_length
 Number of invalid section length.
uint64_t inv_sect_version
 Number of invalid section version (version unchanged with content change).
uint64_t invalid_ts
 Number of invalid TS packets.
uint64_t is_next
 Number of sections with "next" flag (not yet applicable).
uint64_t scrambled
 Number of scrambled TS packets (undecoded).
uint64_t truncated_sect
 Number of truncated sections.
uint64_t wrong_crc
 Number of sections with wrong CRC32.

Detailed Description

Demux status information. It contains error counters.

Constructor & Destructor Documentation

◆ Status() [1/2]

ts::SectionDemux::Status::Status ( )

Default constructor.

◆ Status() [2/2]

ts::SectionDemux::Status::Status ( const SectionDemux & demux)

Constructor from the current status of a SectionDemux.

Parameters
[in]demuxA section demux.

Member Function Documentation

◆ reset()

void ts::SectionDemux::Status::reset ( )

Reset the content of the demux status.

◆ hasErrors()

bool ts::SectionDemux::Status::hasErrors ( ) const

Check if any counter is non zero.

Returns
True if any error counter is not zero.

◆ display() [1/2]

std::ostream & ts::SectionDemux::Status::display ( std::ostream & strm,
int indent = 0,
bool errors_only = false ) const

Display the content of a status block.

Parameters
[in,out]strmA standard stream in output mode.
[in]indentLeft indentation size.
[in]errors_onlyIf true, don't report zero counters.
Returns
A reference to the strm object.

◆ display() [2/2]

void ts::SectionDemux::Status::display ( Report & report,
int level = Severity::Info,
const UString & prefix = UString(),
bool errors_only = false ) const

Display the content of a status block.

Parameters
[in,out]reportOutput Report object.
[in]levelSeverity level to report.
[in]prefixPrefix string on each line.
[in]errors_onlyIf true, don't report zero counters.

The documentation for this struct was generated from the following file: