# Dirac - A Video Codec

Created by the British Broadcasting Corporation.

mvdataelement_byteio.h
Go to the documentation of this file.
1/* ***** BEGIN LICENSE BLOCK *****
2*
3* $Id: mvdataelement_byteio.h,v 1.2 2008/12/16 01:19:30 asuraparaju 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): Anuradha Suraparaju (Original Author)
24* Andrew Kennedy
25* Thomas Davies
26*
27* Alternatively, the contents of this file may be used under the terms of
28* the GNU General Public License Version 2 (the "GPL"), or the GNU Lesser
29* Public License Version 2.1 (the "LGPL"), in which case the provisions of
30* the GPL or the LGPL are applicable instead of those above. If you wish to
31* allow use of your version of this file only under the terms of the either
32* the GPL or LGPL and not to allow others to use your version of this file
33* under the MPL, indicate your decision by deleting the provisions above
34* and replace them with the notice and other provisions required by the GPL
35* or LGPL. If you do not delete the provisions above, a recipient may use
36* your version of this file under the terms of any one of the MPL, the GPL
37* or the LGPL.
38* ***** END LICENSE BLOCK ***** */
39
43#ifndef MV_DATAELEMENT_BYTEIO_H
44#define MV_DATAELEMENT_BYTEIO_H
45
46
47// DIRAC INCLUDES
48#include <libdirac_common/common.h> // EncParams
49
50//LOCAL INCLUDES
51#include <libdirac_byteio/byteio.h> // Parent class
52
53
54 namespace dirac
55{
56
60 class MvDataElementByteIO : public ByteIO
61 {
62 public:
63
67 MvDataElementByteIO();
68
73 MvDataElementByteIO(ByteIO &byte_io);
74
78 virtual ~MvDataElementByteIO();
79
83 void Output();
84
88 void Input();
89
90
94 virtual const std::string GetBytes();
95
99 ByteIO* DataBlock() { return &m_block_data; };
100
104 unsigned int DataBlockSize() { return m_block_size; }
105
109 int GetSize() const;
110
111 protected:
112
116 ByteIO m_block_data;
117
121 unsigned int m_block_size;
122 };
123
124} // namespace dirac
125
126#endif
byteio.h
common.h
dirac
Definition of class SequenceHeaderByteIO.
Definition: accessunit_byteio.h:52
dirac::ByteIO
Class ByteIO - top-level class for reading/writing bytes to a stream.
Definition: byteio.h:73
dirac::MvDataElementByteIO
Represents compressed sequence-parameter data used in an AccessUnit.
Definition: mvdataelement_byteio.h:61
dirac::MvDataElementByteIO::GetBytes
virtual const std::string GetBytes()
Get string containing coded bytes.
dirac::MvDataElementByteIO::m_block_data
ByteIO m_block_data
block data
Definition: mvdataelement_byteio.h:116
dirac::MvDataElementByteIO::~MvDataElementByteIO
virtual ~MvDataElementByteIO()
Destructor.
dirac::MvDataElementByteIO::m_block_size
unsigned int m_block_size
In block data size.
Definition: mvdataelement_byteio.h:121
dirac::MvDataElementByteIO::Input
void Input()
Inputs motion vector information.
dirac::MvDataElementByteIO::MvDataElementByteIO
MvDataElementByteIO()
Constructor.
dirac::MvDataElementByteIO::DataBlock
ByteIO * DataBlock()
Return pointer to the block data ByteIO stream.
Definition: mvdataelement_byteio.h:99
dirac::MvDataElementByteIO::GetSize
int GetSize() const
Return the size.
dirac::MvDataElementByteIO::MvDataElementByteIO
MvDataElementByteIO(ByteIO &byte_io)
Constructor.
dirac::MvDataElementByteIO::DataBlockSize
unsigned int DataBlockSize()
Return the input block data size.
Definition: mvdataelement_byteio.h:104
dirac::MvDataElementByteIO::Output
void Output()
Outputs motion vector data Dirac byte-format.

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