Dirac Stream Parser Class.
More...
#include <dirac_cppparser.h>
This class is a wrapper around the SequenceDecompressor class. The Sequence Decompressor class needs a full picture of data to be available to decompress a picture successfully. So, the DiracParser class uses the InputStreamBuffer class to store data until a chunk is available to be processed and then invokes the SequenceDecompressor functions to process data. A chunk of data can be a start of sequence, a picture or end of sequence data. The istream used to instantiate the SequenceDecompressor object is created using an InputStreamBuffer object which is manipulated the DiracParser. This ensures that data is always available for processing by the SequenceDecompressor object.
◆ DiracParser() [1/2]
dirac::DiracParser::DiracParser |
( |
bool |
verbose = false | ) |
|
Constructor takes
- Parameters
-
verbose | boolean flag. Set to true for verbose output |
◆ ~DiracParser()
dirac::DiracParser::~DiracParser |
( |
| ) |
|
◆ DiracParser() [2/2]
dirac::DiracParser::DiracParser |
( |
const DiracParser & |
dp | ) |
|
|
private |
◆ GetDecoderParams()
const DecoderParams & dirac::DiracParser::GetDecoderParams |
( |
| ) |
const |
◆ GetNextPicture()
const Picture * dirac::DiracParser::GetNextPicture |
( |
| ) |
const |
◆ GetNextPictureParams()
const PictureParams * dirac::DiracParser::GetNextPictureParams |
( |
| ) |
const |
◆ GetParseParams()
const ParseParams & dirac::DiracParser::GetParseParams |
( |
| ) |
const |
◆ GetSourceParams()
const SourceParams & dirac::DiracParser::GetSourceParams |
( |
| ) |
const |
◆ operator=()
◆ Parse()
Parses the data in the input buffer. This function returns one of the following values
STATE_BUFFER : Not enough data in internal buffer to process
STATE_SEQUENCE : Start of sequence detected
STATE_PICTURE_AVAIL : Decoded picture available
STATE_SEQUENCE_END : End of sequence detected
STATE_INVALID : Invalid stream. Stop further processing
◆ SetBuffer()
void dirac::DiracParser::SetBuffer |
( |
char * |
start, |
|
|
char * |
end |
|
) |
| |
SetBuffer takes
- Parameters
-
start | Start of input buffer |
end | End of input buffer |
◆ m_decomp
◆ m_dirac_byte_stream
◆ m_next_state
◆ m_show_pnum
int dirac::DiracParser::m_show_pnum |
|
private |
◆ m_state
◆ m_verbose
bool dirac::DiracParser::m_verbose |
|
private |
The documentation for this class was generated from the following file: