Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   Related Pages  

mediaelements.hh

Go to the documentation of this file.
00001 /*
00002  * PIAVE - PIAVE Is A Video Editor
00003  *
00004  * Copyright (C) 2002 Rolf Dubitzky, rolf@dubitzky.de
00005  *
00006  */
00007 
00008 /*
00009  * This program is free software; you can redistribute it and/or modify
00010  * it under the terms of the GNU General Public License as published by
00011  * the Free Software Foundation; either version 2 of the License, or
00012  * (at your option) any later version.
00013  *
00014  * This program is distributed in the hope that it will be useful,
00015  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00016  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017  * GNU General Public License for more details.
00018  *
00019  * You should have received a copy of the GNU General Public License
00020  * along with this program; if not, write to the Free Software Foundation,
00021  * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00022  */
00023 
00024 
00030 #if ! defined( MEDIAELEMENTS_HH )
00031 #define MEDIAELEMENTS_HH
00032 
00033 // std++
00034 
00035 
00036 // PIAVE
00037 #include "storybase.hh"
00038 #include "avstream.hh"
00039 
00040 
00041 namespace PIAVE {
00042 
00047     class AVChunk : public MediaElement
00048     {
00049       public:
00050         AVChunk( InAVFStream * s = 0 );
00051         AVChunk( const std::string& name, InAVFStream * s );
00052         ~AVChunk();
00053 
00054         virtual Frame getFrame( Time t );
00055         virtual PropertyNode * getProperties( PropertyNode *p  = 0 ) const { return p; }
00056         virtual int fixMe( int fix_lvl=0 );
00057 
00058         virtual void print( std::ostream & o, int indent );
00059 
00060         const InAVFStream * setAVFStream( InAVFStream * s ) { _stream = s; return _stream; }
00061         void setAVFStreamOffset( Time o ) { _avfStreamOffset = o; }
00062 
00063       private:
00064         InAVFStream   * _stream;
00065         Time            _avfStreamOffset;
00066     };
00067 
00068 //  \todo really??  class AudioChunk {}
00069 
00070 
00071 
00072 };
00073 
00074 
00075 #endif

Generated on Tue Oct 14 20:45:36 2003 for piave by doxygen1.2.18