ContainerDemux.hpp

00001 /*********************************************************************** 00002 * * 00003 * ViTooKi * 00004 * * 00005 * title: ContainerDemux.hpp * 00006 * * 00007 * * 00008 * * 00009 * ITEC institute of the University of Klagenfurt (Austria) * 00010 * http://www.itec.uni-klu.ac.at * 00011 * * 00012 * * 00013 * For more information visit the ViTooKi homepage: * 00014 * http://ViTooKi.sourceforge.net * 00015 * vitooki-user@lists.sourceforge.net * 00016 * vitooki-devel@lists.sourceforge.net * 00017 * * 00018 * This file is part of ViTooKi, a free video toolkit. * 00019 * ViTooKi is free software; you can redistribute it and/or * 00020 * modify it under the terms of the GNU General Public License * 00021 * as published by the Free Software Foundation; either version 2 * 00022 * of the License, or (at your option) any later version. * 00023 * * 00024 * This program is distributed in the hope that it will be useful, * 00025 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00026 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00027 * GNU General Public License for more details. * 00028 * * 00029 * You should have received a copy of the GNU General Public License * 00030 * along with this program; if not, write to the Free Software * 00031 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, * 00032 * MA 02111-1307, USA. * 00033 * * 00034 ***********************************************************************/ 00035 00036 /*********************************************************************** 00037 * * 00038 * REVISION HISTORY: * 00039 * * 00040 * * 00041 * * 00042 ***********************************************************************/ 00043 00044 #ifndef _PS_VITOOKI_CONTAINERDEMUX_HPP_ 00045 #define _PS_VITOOKI_CONTAINERDEMUX_HPP_ 00046 00047 class ContainerInfo; 00048 class Url; 00049 class Adaptor; 00050 class DataChannel; 00051 #include "ESInfo.hpp" 00052 00053 #ifndef ISOMP4 00054 #include "global.hpp" 00055 #else 00056 #include "ISOMovies.h" 00057 #endif 00058 00071 class ContainerDemux { 00072 public: 00080 static ContainerInfo *demultiplex(ContainerInfo * &info, const char* outputDir, 00081 const Adaptor * visualAdaptor = 00082 NULL, bool omitHeader = 00083 false, bool deleteMP4 = 00084 false, bool visualizeAdaptation = 00085 false); 00086 00092 static void demultiplexAndUpdateIO(ContainerInfo * &mp4Info, const char* outputDir, 00093 const Adaptor * visualAdaptor = NULL, bool omitHeader = false, 00094 bool deleteMP4 = false, bool visualizeAdaptation = false); 00095 00096 00101 static void adaptESInfo(ESInfo* es, const char* outputFile, Adaptor* adaptor = NULL, 00102 u32 startFrame = 0u, u32 endFrame = 4294967295u, bool omitHeader = false, 00103 bool visualize = false); 00104 00109 static void adaptESInfo(ESInfo* es, const char* outputFile, Adaptor* adaptor = NULL, 00110 double startSecond = 0.0, double endSecond = -1.0, bool omitHeader = false, 00111 bool visualize = false); 00112 00118 static DataChannel* createDataChannel(ESInfo* es, const char* outputFile, Adaptor* adaptor = NULL, 00119 u32 startFrame = 0u, u32 endFrame = 4294967295u, bool omitHeader = false, 00120 bool visualize = false); 00121 00122 00123 }; 00124 00125 #endif 00126