Dirac - A Video Codec

Created by the British Broadcasting Corporation.


component_byteio.h

Go to the documentation of this file.
00001 /* ***** BEGIN LICENSE BLOCK *****
00002 *
00003 *
00004 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
00005 *
00006 * The contents of this file are subject to the Mozilla Public License
00007 * Version 1.1 (the "License"); you may not use this file except in compliance
00008 * with the License. You may obtain a copy of the License at
00009 * http://www.mozilla.org/MPL/
00010 *
00011 * Software distributed under the License is distributed on an "AS IS" basis,
00012 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
00013 * the specific language governing rights and limitations under the License.
00014 *
00015 * The Original Code is BBC Research and Development code.
00016 *
00017 * The Initial Developer of the Original Code is the British Broadcasting
00018 * Corporation.
00019 * Portions created by the Initial Developer are Copyright (C) 2004.
00020 * All Rights Reserved.
00021 *
00022 * Contributor(s): Andrew Kennedy (Original Author)
00023 *
00024 * Alternatively, the contents of this file may be used under the terms of
00025 * the GNU General Public License Version 2 (the "GPL"), or the GNU Lesser
00026 * Public License Version 2.1 (the "LGPL"), in which case the provisions of
00027 * the GPL or the LGPL are applicable instead of those above. If you wish to
00028 * allow use of your version of this file only under the terms of the either
00029 * the GPL or LGPL and not to allow others to use your version of this file
00030 * under the MPL, indicate your decision by deleting the provisions above
00031 * and replace them with the notice and other provisions required by the GPL
00032 * or LGPL. If you do not delete the provisions above, a recipient may use
00033 * your version of this file under the terms of any one of the MPL, the GPL
00034 * or the LGPL.
00035 * ***** END LICENSE BLOCK ***** */
00036 
00040 #ifndef component_byteio_h
00041 #define component_byteio_h
00042 
00043 
00044 //LOCAL INCLUDES
00045 #include <libdirac_byteio/byteio.h>                 // Parent class
00046 #include <libdirac_byteio/subband_byteio.h>          // child-type
00047 
00048 // DIRAC includes
00049 
00050 // SYSTEM INCLUDES
00051 #include <vector>
00052 
00053 namespace dirac
00054 {
00058     class ComponentByteIO : public ByteIO
00059     {
00060     public:
00061 
00067         ComponentByteIO(CompSort cs,
00068                         const ByteIO& byteIO);
00069 
00074         ComponentByteIO(CompSort cs);
00075 
00079         ~ComponentByteIO();
00080 
00085         void CollateByteStats(DiracByteStats& dirac_byte_stats);
00086 
00091         void AddSubband(SubbandByteIO *p_subband_byteio);
00092 
00096         bool Input();
00097 
00101         void Output();
00102 
00103        
00104 
00105   protected:
00106         
00107 
00108    private:
00109       
00113        CompSort m_compsort;
00114 
00118        std::vector<ByteIO*> m_subband_list;
00119        
00120        
00121    };
00122 
00123 } // namespace dirac
00124 
00125 #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.