MKContainerFile.hpp

00001 #ifndef WIN32 00002 00003 /*********************************************************************** 00004 * * 00005 * ViTooKi * 00006 * * 00007 * title: MKContainerFile.hpp * 00008 * * 00009 * * 00010 * * 00011 * ITEC institute of the University of Klagenfurt (Austria) * 00012 * http://www.itec.uni-klu.ac.at * 00013 * * 00014 * * 00015 * For more information visit the ViTooKi homepage: * 00016 * http://ViTooKi.sourceforge.net * 00017 * vitooki-user@lists.sourceforge.net * 00018 * vitooki-devel@lists.sourceforge.net * 00019 * * 00020 * This file is part of ViTooKi, a free video toolkit. * 00021 * ViTooKi is free software; you can redistribute it and/or * 00022 * modify it under the terms of the GNU General Public License * 00023 * as published by the Free Software Foundation; either version 2 * 00024 * of the License, or (at your option) any later version. * 00025 * * 00026 * This program is distributed in the hope that it will be useful, * 00027 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00028 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00029 * GNU General Public License for more details. * 00030 * * 00031 * You should have received a copy of the GNU General Public License * 00032 * along with this program; if not, write to the Free Software * 00033 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, * 00034 * MA 02111-1307, USA. * 00035 * * 00036 ***********************************************************************/ 00037 00038 /*********************************************************************** 00039 * * 00040 * REVISION HISTORY: * 00041 * * 00042 * * 00043 * * 00044 ***********************************************************************/ 00045 #ifndef VITOOKI_MKCONTAINERFILE_HPP_ 00046 #define VITOOKI_MKCONTAINERFILE_HPP_ 00047 00061 #include "global.hpp" 00062 #include "ESInfo.hpp" 00063 #include "debug.hpp" 00064 #include "VideoESInfo.hpp" 00065 #include "AudioESInfo.hpp" 00066 00067 #include "MatroskaParser.h" 00068 00069 #include <stdio.h> 00070 #include <string.h> 00071 00072 00073 #ifdef __cplusplus 00074 extern "C" { 00075 //#include "avformat.h" 00076 } 00077 #endif 00078 00079 class ContainerInfo; 00080 class ContainerFile; 00081 class ESInfo; 00082 class Adaptor; 00083 class Url; 00084 00085 class MKContainerFile{ 00086 00087 00088 public: 00089 00093 static ContainerInfo *loadContainerInfo(const char *fileName, const Url* uri=NULL); 00094 00098 static bool saveToContainerFile(const char *fileName, ContainerInfo *ci); 00099 00100 private: 00101 static ESInfo *loadESInfo(ContainerInfo * vob, int streamIndex, MatroskaFile *mf); 00102 00103 00104 };//MKContainerFile 00105 00106 #endif 00107 00108 #endif 00109 00110 00111 00112 00113