Dirac - A Video Codec
Created by the British Broadcasting Corporation.
dirac::FrameSequenceCompressor Class Reference
Compresses a sequence of frames from a stream.
More...
#include <seq_compress.h>
Inheritance diagram for dirac::FrameSequenceCompressor:
[legend]Collaboration diagram for dirac::FrameSequenceCompressor:
[legend]List of all members.Public Member Functions
Protected Member Functions
- virtual int CodedToDisplay (const int pnum)
- Uses the GOP parameters to convert picture numbers in coded order to display order.
- virtual void UpdateCBRModel (EncPicture &my_picture, const PictureByteIO *picture_byteio)
- Update the CBR model based on the data we've compressed.
Detailed Description
This class compresses a sequence of frames, frame by frame. It currently uses GOP parameters set in the encoder parameters in order to define the temporal prediction structure. A version to incorporate non-GOP structures is TBC.
Constructor & Destructor Documentation
|
Creates a sequence compressor that compresses frames i.e. progressive data, and prepares to begin compressing with the first frame.Sets up frame padding in the picture input if necesary - Parameters:
-
pin | an input stream containing a sequence of frames |
encp | parameters for the encoding process |
dirac_byte_stream | Output destination for compressed data |
|
|
Destructor. Must delete IO objects created by constructor. |
Member Function Documentation
virtual int dirac::FrameSequenceCompressor::CodedToDisplay |
( |
const int |
pnum |
) |
[protected, virtual] |
|
|
Uses the GOP parameters to convert picture numbers in coded order to display order. Pure virtual function. The child class will have to define it. - Parameters:
-
pnum | the picture number in coded order |
Implements dirac::SequenceCompressor. |
virtual bool dirac::FrameSequenceCompressor::LoadNextFrame |
( |
|
) |
[virtual] |
|
|
Load one frame of data into the Sequence Compressor. Sets m_all_done to true if no more data is available to be loaded. - Returns:
- true - if frame load succeeded. false - otherwise
Implements dirac::SequenceCompressor. |
virtual void dirac::FrameSequenceCompressor::SetPicTypeAndRefs |
( |
PictureParams & |
pparams |
) |
[virtual] |
|
virtual void dirac::FrameSequenceCompressor::UpdateCBRModel |
( |
EncPicture & |
my_picture, |
|
|
const PictureByteIO * |
picture_byteio |
|
) |
[protected, virtual] |
|
The documentation for this class was generated from the following file:
© 2004 British Broadcasting Corporation.
Dirac code licensed under the Mozilla Public License (MPL) Version 1.1.
HTML documentation generated by Dimitri van Heesch's
excellent Doxygen tool.