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

Demux status information. More...

#include <tsSectionDemux.h>

Public Member Functions

 Status ()
 Default constructor.
 
 Status (const SectionDemux &demux)
 Constructor from the current status of a SectionDemux.
 
void display (Report &report, int level=Severity::Info, const UString &prefix=UString(), bool errors_only=false) const
 Display the content of a status block.
 
std::ostream & display (std::ostream &strm, int indent=0, bool errors_only=false) const
 Display the content of a status block.
 
bool hasErrors () const
 Check if any counter is non zero.
 
void reset ()
 Reset the content of the demux status.
 

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()

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

Constructor from the current status of a SectionDemux.

Parameters
[in]demuxA section demux.

Member Function Documentation

◆ 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: