Created by the British Broadcasting Corporation.
A class for encapsulating all the data relating to a picture. More...
#include <picture.h>
Public Member Functions | |
Picture (const PictureParams &pp) | |
Constructor. | |
Picture (const Picture &cpy) | |
Copy constructor. Private as not currently used [may want to implement reference counting later.]. | |
virtual | ~Picture () |
Destructor. | |
Picture & | operator= (const Picture &rhs) |
Assignment =. Private as not currently used [may want to implement reference counting later.]. | |
void | Fill (ValueType val) |
Picture Fill. | |
PictureParams & | GetPparams () const |
Gets the picture parameters. | |
void | SetPictureSort (const PictureSort ps) |
Sets the picture sort. | |
void | SetPictureType (const PictureType ftype) |
Sets the picture type. | |
void | SetReferenceType (const ReferenceType rtype) |
Sets the picture type. | |
void | ReconfigPicture (const PictureParams &pp) |
Reconfigures to the new parameters. | |
PicArray & | Data (CompSort cs) |
Returns a given component. | |
const PicArray & | Data (CompSort cs) const |
Returns a given component. | |
PicArray & | UpData (CompSort cs) |
Returns a given upconverted component. | |
const PicArray & | UpData (CompSort cs) const |
Returns a given upconverted component. | |
const CoeffArray & | WltData (CompSort c) const |
Returns the wavelet coefficient data. | |
CoeffArray & | WltData (CompSort c) |
Returns the wavelet coefficient data. | |
void | InitWltData (const int transform_depth) |
Initialises the wavelet coefficient data arrays;. | |
void | Clip () |
Clip the data to prevent overshoot. | |
void | ClipUpData () |
Clip the upconverted data to prevent overshoot. |
Protected Member Functions | |
virtual void | Init () |
Initialises the picture once the picture parameters have been set. | |
virtual void | ClearData () |
Delete all the data. | |
void | ClipComponent (PicArray &pic_data, CompSort cs) const |
Clip an individual component. |
Protected Attributes | |
PictureParams | m_pparams |
PicArray * | m_pic_data [3] |
PicArray * | m_up_pic_data [3] |
CoeffArray | m_wlt_data [3] |
A class for encapsulating all the data relating to a picture - all the component data, including upconverted data.
dirac::Picture::Picture | ( | const PictureParams & | pp | ) |
Constructor initialises the picture parameters and the data
Referenced by operator=(), and Picture().
|
virtual |
|
protectedvirtual |
Reimplemented in dirac::EncPicture.
void dirac::Picture::Clip | ( | ) |
Clips the data to lie between 0 and (1<<video_depth)-1
void dirac::Picture::ClipUpData | ( | ) |
Clips the upconverted data to lie between 0 and (1<<video_depth)-1
References m_pic_data.
References m_pic_data.
void dirac::Picture::Fill | ( | ValueType | val | ) |
Initialise contents of picture with value provided
|
inline |
References m_pparams.
|
protectedvirtual |
void dirac::Picture::InitWltData | ( | const int | transform_depth | ) |
void dirac::Picture::ReconfigPicture | ( | const PictureParams & | pp | ) |
|
inline |
References m_pparams.
|
inline |
References m_pparams.
|
inline |
References m_pparams.
|
inline |
References m_wlt_data.
|
inline |
References m_wlt_data.
|
mutableprotected |
Referenced by GetPparams(), SetPictureSort(), SetPictureType(), and SetReferenceType().
|
mutableprotected |
|
protected |
© 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.