# 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
46 #include <libdirac_common/picture_buffer.h>
47 #include <libdirac_common/common.h>
48 #include <libdirac_byteio/picture_byteio.h>
49 #include <libdirac_byteio/transform_byteio.h>
50
51 namespace dirac
52 {
53 class MvData;
54
56
61 class PictureDecompressor{
62 public:
64
72 PictureDecompressor(DecoderParams& decp, ChromaFormat cf);
73
75
78 ~PictureDecompressor();
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
101 PictureDecompressor(const PictureDecompressor& cpy);
102
104
108 PictureDecompressor& operator=(const PictureDecompressor& rhs);
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
133 DecoderParams& m_decparams;
134
136 ChromaFormat m_cformat;
137
139 bool m_skipped;
140
142 bool m_use_global;
143
145 bool m_use_block_mv;
146
148 PredMode m_global_pred_mode;
149
151 PictureParams m_pparams;
152 };
153
154 } // namespace dirac
155
156 #endif

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