#include <seq_decompress.h>
Public Member Functions | |
SequenceDecompressor (std::istream *ip, bool verbosity) | |
Constructor. | |
~SequenceDecompressor () | |
Destructor. | |
Frame & | DecompressNextFrame (bool skip=false) |
Decompress the next frame in sequence. | |
bool | ReadNextFrameHeader () |
Reads the header data associated with decompressing the frame. | |
Frame & | GetNextFrame () |
Get the next frame available for display. | |
const FrameParams & | GetNextFrameParams () const |
Get the next frame parameters. | |
bool | Finished () |
Determine if decompression is complete. | |
SeqParams & | GetSeqParams () |
Interrogates for decompression parameters. |
This class decompresses a sequence of frames, frame by frame.
Definition at line 63 of file seq_decompress.h.
|
Constructor. Initializes the decompressor with an input stream and level of output detail.
Definition at line 54 of file seq_decompress.cpp. References dirac::SeqParams::CFormat(), dirac::CodecParams::ChromaBParams(), dirac::CodecParams::LumaBParams(), dirac::DecoderParams::SetBitsIn(), dirac::CodecParams::SetVerbose(), dirac::CodecParams::SetXNumMB(), dirac::CodecParams::SetYNumMB(), dirac::OLBParams::Xbsep(), dirac::SeqParams::Xl(), dirac::CodecParams::XNumMB(), dirac::OLBParams::Ybsep(), and dirac::SeqParams::Yl(). |
|
Destructor. Closes files and releases resources. Definition at line 148 of file seq_decompress.cpp. |
|
Decompress the next frame in sequence. This function decodes the next frame in coding order and returns the next frame in display order. In general these will differ, and because of re-ordering there is a delay which needs to be imposed. This creates problems at the start and at the end of the sequence which must be dealt with. At the start we just keep outputting frame 0. At the end you will need to loop for longer to get all the frames out. It's up to the calling function to do something with the decoded frames as they come out -- write them to screen or to file, as required.
Definition at line 165 of file seq_decompress.cpp. References dirac::FrameBuffer::Clean(), dirac::FrameDecompressor::Decompress(), and dirac::FrameBuffer::GetFrame(). Referenced by dirac::DiracParser::GetLastFrame(), and dirac::DiracParser::Parse(). |
|
Determine if decompression is complete. Indicates whether or not the last frame in the sequence has been decompressed.
Definition at line 112 of file seq_decompress.h. |
|
Interrogates for decompression parameters. Returns the parameters used for this decompression run.
Definition at line 120 of file seq_decompress.h. Referenced by dirac::DiracParser::GetSeqParams(). |