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 
47 #include <libdirac_common/common.h>
50 
51 namespace 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 
114  void CleanReferencePictures( PictureBuffer& my_buffer );
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 
125  void SetMVBlocks();
126 
128  void PushPicture(PictureBuffer &my_buffer);
129 
130  //Member variables
131 
134 
137 
139  bool m_skipped;
140 
143 
146 
149 
152  };
153 
154 } // namespace dirac
155 
156 #endif
dirac::PictureDecompressor::m_cformat
ChromaFormat m_cformat
Chroma format of the picture being decompressed.
Definition: picture_decompress.h:136
transform_byteio.h
dirac::TransformByteIO
Represents compressed sequence-parameter data used in an AccessUnit.
Definition: transform_byteio.h:59
dirac::ParseUnitByteIO
Represents a collection of data in a Dirac bytestream that can be parsed as a self-contained unit.
Definition: parseunit_byteio.h:72
dirac::PictureDecompressor::m_pparams
PictureParams m_pparams
Current Picture Parameters.
Definition: picture_decompress.h:151
dirac
Definition of class SequenceHeaderByteIO.
Definition: accessunit_byteio.h:51
dirac::PictureParams
Parameters for initialising picture class objects.
Definition: common.h:532
dirac::CoeffArray
A class for wavelet coefficient data.
Definition: wavelet_utils.h:622
dirac::PictureDecompressor::GetPicParams
const PictureParams & GetPicParams() const
Returns the picture parameters of the current picture being decoded.
Definition: picture_decompress.h:93
dirac::PictureDecompressor::m_global_pred_mode
PredMode m_global_pred_mode
Prediction mode to use if we only have global motion vectors.
Definition: picture_decompress.h:148
ChromaFormat
ChromaFormat
Definition: common_types.h:58
picture_buffer.h
dirac::PredMode
PredMode
Prediction modes for blocks.
Definition: common.h:84
dirac::PictureDecompressor::~PictureDecompressor
~PictureDecompressor()
Destructor.
dirac::PictureDecompressor::operator=
PictureDecompressor & operator=(const PictureDecompressor &rhs)
Assignment = is private and body-less.
picture_byteio.h
dirac::PictureDecompressor::m_use_global
bool m_use_global
An indicator that is true if we use global motion vectors, false otherwise.
Definition: picture_decompress.h:142
dirac::PictureBuffer
Holds pictures both for reference and to overcome reordering delay.
Definition: picture_buffer.h:59
dirac::PictureDecompressor::m_use_block_mv
bool m_use_block_mv
An indicator that is true if we use block motion vectors, false otherwise.
Definition: picture_decompress.h:145
dirac::PictureDecompressor::m_decparams
DecoderParams & m_decparams
Parameters for the decompression, as provided in constructor.
Definition: picture_decompress.h:133
dirac::PictureDecompressor
Compress a single image picture.
Definition: picture_decompress.h:61
dirac::PictureDecompressor::SetMVBlocks
void SetMVBlocks()
Set the number of superblocks and blocks.
dirac::PictureDecompressor::Decompress
bool Decompress(ParseUnitByteIO &parseunit_byteio, PictureBuffer &my_buffer)
Decompress the next picture into the buffer.
dirac::PictureDecompressor::DecompressMVData
void DecompressMVData(std::auto_ptr< MvData > &mv_data, PictureByteIO &picture_byteio)
Decodes the motion data.
dirac::PictureDecompressor::InitCoeffData
void InitCoeffData(CoeffArray &coeff_data, const int xl, const int yl)
Initialise the padded coefficient data for the IDWT and subband decoding.
dirac::CompSort
CompSort
Types of picture component.
Definition: common.h:87
dirac::PictureDecompressor::CleanReferencePictures
void CleanReferencePictures(PictureBuffer &my_buffer)
Removes all the reference pictures in the retired list.
dirac::PictureDecompressor::m_skipped
bool m_skipped
An indicator which is true if the picture has been skipped, false otherwise.
Definition: picture_decompress.h:139
dirac::PictureDecompressor::PictureDecompressor
PictureDecompressor(DecoderParams &decp, ChromaFormat cf)
Constructor.
dirac::PictureDecompressor::CompDecompress
void CompDecompress(TransformByteIO *p_transform_byteio, PictureBuffer &my_buffer, int pnum, CompSort cs)
Decodes component data
common.h
dirac::PictureByteIO
A compressed picture in Dirac bytestream format.
Definition: picture_byteio.h:60
dirac::PictureDecompressor::PushPicture
void PushPicture(PictureBuffer &my_buffer)
Add a picture to the picture buffer.
dirac::DecoderParams
Parameters for the decoding process.
Definition: common.h:1548

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