Dirac - A Video Codec

Created by the British Broadcasting Corporation.


picture_decompress.h
Go to the documentation of this file.
1/* ***** BEGIN LICENSE BLOCK *****
2*
3* $Id: picture_decompress.h,v 1.2 2008/04/29 08:51:52 tjdwave Exp $ $Name: Dirac_1_0_2 $
4*
5* Version: MPL 1.1/GPL 2.0/LGPL 2.1
6*
7* The contents of this file are subject to the Mozilla Public License
8* Version 1.1 (the "License"); you may not use this file except in compliance
9* with the License. You may obtain a copy of the License at
10* http://www.mozilla.org/MPL/
11*
12* Software distributed under the License is distributed on an "AS IS" basis,
13* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
14* the specific language governing rights and limitations under the License.
15*
16* The Original Code is BBC Research and Development code.
17*
18* The Initial Developer of the Original Code is the British Broadcasting
19* Corporation.
20* Portions created by the Initial Developer are Copyright (C) 2004.
21* All Rights Reserved.
22*
23* Contributor(s): Thomas Davies (Original Author),
24* Scott R Ladd,
25* Anuradha Suraparaju
26* Andrew Kennedy
27*
28* Alternatively, the contents of this file may be used under the terms of
29* the GNU General Public License Version 2 (the "GPL"), or the GNU Lesser
30* Public License Version 2.1 (the "LGPL"), in which case the provisions of
31* the GPL or the LGPL are applicable instead of those above. If you wish to
32* allow use of your version of this file only under the terms of the either
33* the GPL or LGPL and not to allow others to use your version of this file
34* under the MPL, indicate your decision by deleting the provisions above
35* and replace them with the notice and other provisions required by the GPL
36* or LGPL. If you do not delete the provisions above, a recipient may use
37* your version of this file under the terms of any one of the MPL, the GPL
38* or the LGPL.
39* ***** END LICENSE BLOCK ***** */
40
41
42
43#ifndef _PICTURE_DECOMPRESS_H_
44#define _PICTURE_DECOMPRESS_H_
45
50
51namespace dirac
52{
53 class MvData;
54
56
62 public:
64
73
75
79
81
89 bool Decompress(ParseUnitByteIO& parseunit_byteio,
90 PictureBuffer& my_buffer);
91
93 const PictureParams& GetPicParams() const{ return m_pparams; }
94
95 private:
97
102
104
109
111 void InitCoeffData( CoeffArray& coeff_data, const int xl, const int yl );
112
115
117 void CompDecompress(TransformByteIO *p_transform_byteio,
118 PictureBuffer& my_buffer,int pnum, CompSort cs);
119
121 void DecompressMVData( std::auto_ptr<MvData>& mv_data, PictureByteIO& picture_byteio );
122
123
126
128 void PushPicture(PictureBuffer &my_buffer);
129
130 //Member variables
131
134
137
140
143
146
149
152 };
153
154} // namespace dirac
155
156#endif
ChromaFormat
Definition common_types.h:58
Definition of class SequenceHeaderByteIO.
Definition accessunit_byteio.h:52
CompSort
Types of picture component.
Definition common.h:87
PredMode
Prediction modes for blocks.
Definition common.h:84
Represents a collection of data in a Dirac bytestream that can be parsed as a self-contained unit.
Definition parseunit_byteio.h:73
A compressed picture in Dirac bytestream format.
Definition picture_byteio.h:61
Represents compressed sequence-parameter data used in an AccessUnit.
Definition transform_byteio.h:60
Parameters for initialising picture class objects.
Definition common.h:533
Parameters for the decoding process.
Definition common.h:1549
Class for all the motion vector data.
Definition motion.h:220
Holds pictures both for reference and to overcome reordering delay.
Definition picture_buffer.h:59
A class for wavelet coefficient data.
Definition wavelet_utils.h:623
bool m_use_global
An indicator that is true if we use global motion vectors, false otherwise.
Definition picture_decompress.h:142
void CompDecompress(TransformByteIO *p_transform_byteio, PictureBuffer &my_buffer, int pnum, CompSort cs)
Decodes component data.
void InitCoeffData(CoeffArray &coeff_data, const int xl, const int yl)
Initialise the padded coefficient data for the IDWT and subband decoding.
PictureParams m_pparams
Current Picture Parameters.
Definition picture_decompress.h:151
PictureDecompressor & operator=(const PictureDecompressor &rhs)
Assignment = is private and body-less.
void PushPicture(PictureBuffer &my_buffer)
Add a picture to the picture buffer.
PictureDecompressor(DecoderParams &decp, ChromaFormat cf)
Constructor.
~PictureDecompressor()
Destructor.
void DecompressMVData(std::auto_ptr< MvData > &mv_data, PictureByteIO &picture_byteio)
Decodes the motion data.
void SetMVBlocks()
Set the number of superblocks and blocks.
ChromaFormat m_cformat
Chroma format of the picture being decompressed.
Definition picture_decompress.h:136
bool m_skipped
An indicator which is true if the picture has been skipped, false otherwise.
Definition picture_decompress.h:139
const PictureParams & GetPicParams() const
Returns the picture parameters of the current picture being decoded.
Definition picture_decompress.h:93
bool Decompress(ParseUnitByteIO &parseunit_byteio, PictureBuffer &my_buffer)
Decompress the next picture into the buffer.
bool m_use_block_mv
An indicator that is true if we use block motion vectors, false otherwise.
Definition picture_decompress.h:145
PredMode m_global_pred_mode
Prediction mode to use if we only have global motion vectors.
Definition picture_decompress.h:148
PictureDecompressor(const PictureDecompressor &cpy)
Copy constructor is private and body-less.
DecoderParams & m_decparams
Parameters for the decompression, as provided in constructor.
Definition picture_decompress.h:133
void CleanReferencePictures(PictureBuffer &my_buffer)
Removes all the reference pictures in the retired list.

© 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.