Created by the British Broadcasting Corporation.
Parameters for initialising picture class objects.
#include <common.h>
Public Member Functions | |
| PictureParams () | |
| Default constructor. More... | |
| PictureParams (const ChromaFormat &cf, int xlen, int ylen, unsigned int luma_depth, unsigned int chroma_depth) | |
| Constructor. More... | |
| PictureParams (const ChromaFormat &cf, const PictureSort &fs) | |
| Constructor. More... | |
| PictureParams (const SourceParams &sparams) | |
| Constructor. More... | |
| const ChromaFormat & | CFormat () const |
| Returns the chroma format of the picture. More... | |
| int | Xl () const |
| Returns the picture width. More... | |
| int | Yl () const |
| Returns the picture height. More... | |
| int | ChromaXl () const |
| Returns the chroma width of the picture. More... | |
| int | ChromaYl () const |
| Returns the chroma height of the picture. More... | |
| unsigned int | LumaDepth () const |
| Returns the luma depth. More... | |
| unsigned int | ChromaDepth () const |
| Returns the chroma depth. More... | |
| const PictureSort & | PicSort () const |
| Returns the type of the picture. More... | |
| int | PictureNum () const |
| Returns the number of the picture (in time order) More... | |
| int | RetiredPictureNum () const |
| Returns the retired reference picture number. More... | |
| bool | IsBPicture () const |
| Returns whether the picture is bi-directionally predicted by checking references. More... | |
| int | ExpiryTime () const |
| Returns the number of pictures after the current picture number after which the picture can be discarded. More... | |
| bool | Output () const |
| Returns an indication of whether the picture has been output yet. More... | |
| const std::vector< int > & | Refs () const |
| Returns a const C++ reference to the set of reference picture numbers (will be empty if the picture is an I picture) More... | |
| std::vector< int > & | Refs () |
| Returns non-const C++ referece to the vector of reference pictures, to allow them to be set. More... | |
| unsigned int | NumRefs () const |
| Return the number of reference pictures. More... | |
| PictureType | GetPictureType () const |
| Returns type of picture (see enum) More... | |
| ReferenceType | GetReferenceType () const |
| Returns reference picture type (see enum) More... | |
| bool | UsingAC () const |
| Returns true is entropy coding using Arithmetic coding. More... | |
| void | SetPicSort (const PictureSort &ps) |
| Sets the type of picture. More... | |
| void | SetPictureType (const PictureType ftype) |
| Sets the picture to be Intra/Inter. More... | |
| void | SetReferenceType (const ReferenceType rtype) |
| Sets the picture to be a reference or not. More... | |
| void | SetPictureNum (const int fn) |
| Sets the picture number. More... | |
| void | SetExpiryTime (const int expt) |
| Sets how long the picture will stay in the buffer (encoder only) More... | |
| void | SetAsOutput () |
| Sets a flag to indicate that the picture has been output. More... | |
| void | SetCFormat (ChromaFormat cf) |
| Sets the chroma format. More... | |
| void | SetXl (int xlen) |
| Sets the picture width. More... | |
| void | SetYl (int ylen) |
| Sets the picture height. More... | |
| void | SetLumaDepth (unsigned int luma_depth) |
| Set Luma Depth. More... | |
| void | SetChromaDepth (unsigned int chroma_depth) |
| Set Chroma Depth. More... | |
| void | SetRetiredPictureNum (int retd_fnum) |
| Sets the retired reference picture number. More... | |
| void | SetUsingAC (bool using_ac) |
| Sets the arithmetic coding flag. More... | |
Private Attributes | |
| ChromaFormat | m_cformat |
| The chroma format. More... | |
| PictureSort | m_psort |
| The picture sort. More... | |
| std::vector< int > | m_refs |
| The set of picture numbers of reference pictures. More... | |
| int | m_expiry_time |
| The number of pictures, after the current picture number, after the (de)coding of which the picture can be deleted. More... | |
| int | m_fnum |
| The picture number, in temporal order. More... | |
| PictureType | m_picture_type |
| Picture type. More... | |
| ReferenceType | m_reference_type |
| Reference type. More... | |
| bool | m_output |
| True if the picture has been output, false if not. More... | |
| int | m_retd_fnum |
| The picture number of the retired picture. More... | |
| int | m_xl |
| Picture luma width. More... | |
| int | m_yl |
| Picture luma height. More... | |
| int | m_cxl |
| Picture chroma width. More... | |
| int | m_cyl |
| Picture chroma height. More... | |
| unsigned int | m_luma_depth |
| Luma depth - number of bits required for lumz. More... | |
| unsigned int | m_chroma_depth |
| chroma depth - number of bits required for luma More... | |
| bool | m_using_ac |
| arithmetic coding flag More... | |
| dirac::PictureParams::PictureParams | ( | ) |
| dirac::PictureParams::PictureParams | ( | const ChromaFormat & | cf, |
| int | xlen, | ||
| int | ylen, | ||
| unsigned int | luma_depth, | ||
| unsigned int | chroma_depth | ||
| ) |
| dirac::PictureParams::PictureParams | ( | const ChromaFormat & | cf, |
| const PictureSort & | fs | ||
| ) |
Picture chroma format and picture sort are set.
| dirac::PictureParams::PictureParams | ( | const SourceParams & | sparams | ) |
Constructor. Parameters are derived from the source parameters
|
inline |
References m_cformat.
|
inline |
References m_chroma_depth.
|
inline |
References m_cxl.
|
inline |
References m_cyl.
|
inline |
References m_expiry_time.
|
inline |
References m_picture_type.
|
inline |
References m_reference_type.
| bool dirac::PictureParams::IsBPicture | ( | ) | const |
|
inline |
References m_luma_depth.
|
inline |
References m_refs.
|
inline |
References m_output.
|
inline |
References m_psort.
|
inline |
References m_fnum.
|
inline |
References m_refs.
|
inline |
References m_refs.
|
inline |
References m_retd_fnum.
|
inline |
References m_output.
|
inline |
References m_cformat.
|
inline |
References m_chroma_depth.
|
inline |
References m_expiry_time.
|
inline |
References m_luma_depth.
| void dirac::PictureParams::SetPicSort | ( | const PictureSort & | ps | ) |
Referenced by dirac::Picture::SetPictureSort().
|
inline |
References m_fnum.
| void dirac::PictureParams::SetPictureType | ( | const PictureType | ftype | ) |
Referenced by dirac::Picture::SetPictureType().
| void dirac::PictureParams::SetReferenceType | ( | const ReferenceType | rtype | ) |
Referenced by dirac::Picture::SetReferenceType().
|
inline |
References m_retd_fnum.
|
inline |
References m_using_ac.
| void dirac::PictureParams::SetXl | ( | int | xlen | ) |
| void dirac::PictureParams::SetYl | ( | int | ylen | ) |
|
inline |
References m_using_ac.
|
inline |
References m_xl.
|
inline |
References m_yl.
|
private |
Referenced by CFormat(), and SetCFormat().
|
private |
Referenced by ChromaDepth(), and SetChromaDepth().
|
private |
Referenced by ChromaXl().
|
private |
Referenced by ChromaYl().
|
private |
Referenced by ExpiryTime(), and SetExpiryTime().
|
private |
Referenced by PictureNum(), and SetPictureNum().
|
private |
Referenced by LumaDepth(), and SetLumaDepth().
|
private |
Referenced by Output(), and SetAsOutput().
|
private |
Referenced by GetPictureType().
|
private |
Referenced by PicSort().
|
private |
Referenced by GetReferenceType().
|
mutableprivate |
Referenced by RetiredPictureNum(), and SetRetiredPictureNum().
|
private |
Referenced by SetUsingAC(), and UsingAC().
|
private |
Referenced by Xl().
|
private |
Referenced by Yl().
© 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.