/home/jerome/Bureau/MediaInfo_DLL_GNU_FromSource/MediaInfoLib/Source/MediaInfo/MediaInfo.h

Go to the documentation of this file.
00001 // MediaInfo - All information about media files
00002 // Copyright (C) 2002-2008 Jerome Martinez, Zen@MediaArea.net
00003 //
00004 // This library is free software: you can redistribute it and/or modify it
00005 // under the terms of the GNU Lesser General Public License as published by
00006 // the Free Software Foundation, either version 3 of the License, or
00007 // any later version.
00008 //
00009 // This library is distributed in the hope that it will be useful,
00010 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00011 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012 // GNU Lesser General Public License for more details.
00013 //
00014 // You should have received a copy of the GNU Lesser General Public License
00015 // along with this library. If not, see <http://www.gnu.org/licenses/>.
00016 //
00017 //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
00018 //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
00019 //
00020 // Give information about a lot of media files
00021 // Dispatch the file to be tested by all containers
00022 //
00023 //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
00024 
00025 //---------------------------------------------------------------------------
00026 #ifndef MediaInfoH
00027 #define MediaInfoH
00028 //---------------------------------------------------------------------------
00029 
00030 //---------------------------------------------------------------------------
00031 #include "MediaInfo/MediaInfo_Internal.h"
00032 #include "MediaInfo/MediaInfo_Config_MediaInfo.h"
00033 //---------------------------------------------------------------------------
00034 
00035 namespace MediaInfoLib
00036 {
00037 
00038 class File__Analyze;
00039 class Internet__Base;
00040 
00041 //***************************************************************************
00044 //***************************************************************************
00045 
00046 class MediaInfo
00047 {
00048 public :
00049     //Constructor/Destructor
00050     MediaInfo ();
00051     ~MediaInfo ();
00052     //File
00058     size_t Open (const String &File_Name);
00068     size_t Open (const ZenLib::int8u* Begin, size_t Begin_Size, const ZenLib::int8u* End=NULL, size_t End_Size=0, ZenLib::int64u File_Size=0);
00073     size_t Open_Buffer_Init (ZenLib::int64u File_Size=(ZenLib::int64u)-1, ZenLib::int64u File_Offset=0);
00078     size_t Open_Buffer_Continue (const ZenLib::int8u* Buffer, size_t Buffer_Size);
00083     ZenLib::int64u Open_Buffer_Continue_GoTo_Get ();
00086     size_t Open_Buffer_Finalize ();
00091     size_t Save ();
00095     void Close ();
00096 
00097     //General information
00101     String Inform (size_t Reserved=0);
00102 
00103     //Get
00112     String Get (stream_t StreamKind, size_t StreamNumber, size_t Parameter, info_t InfoKind=Info_Text);
00123     String Get (stream_t StreamKind, size_t StreamNumber, const String &Parameter, info_t InfoKind=Info_Text, info_t SearchKind=Info_Name);
00124 
00125     //Set
00135     size_t Set (const String &ToSet, stream_t StreamKind, size_t StreamNumber, size_t Parameter, const String &OldValue=_T(""));
00145     size_t Set (const String &ToSet, stream_t StreamKind, size_t StreamNumber, const String &Parameter, const String &OldValue=_T(""));
00146 
00147     //Output_Buffered
00152     size_t Output_Buffer_Get (const String &Value);
00157     size_t Output_Buffer_Get (size_t Pos);
00158 
00159     //Info
00199     String        Option (const String &Option, const String &Value=_T(""));
00205     static String Option_Static (const String &Option, const String &Value=_T(""));
00213     size_t                  State_Get ();
00217     size_t                  Count_Get (stream_t StreamKind, size_t StreamNumber=(size_t)-1);
00218 
00219 private :
00220     void* Internal;
00221 };
00222 
00223 } //NameSpace
00224 #endif

Generated on Fri Jun 13 16:24:41 2008 for MediaInfoLib by  doxygen 1.5.3