MediaInfoLib  0.7
MediaInfo_Const.h
1 /* Copyright (c) MediaArea.net SARL. All Rights Reserved.
2  *
3  * Use of this source code is governed by a BSD-style license that can
4  * be found in the License.html file in the root of the source tree.
5  */
6 
7 //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
8 //
9 // Global configuration of MediaInfo
10 //
11 //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
12 
13 //---------------------------------------------------------------------------
14 #ifndef MediaInfo_ConstH
15 #define MediaInfo_ConstH
16 //---------------------------------------------------------------------------
17 
18 //---------------------------------------------------------------------------
19 #include <string>
20 #include <ZenLib/Conf.h>
21 //---------------------------------------------------------------------------
22 
23 namespace MediaInfoLib
24 {
25 
26 //---------------------------------------------------------------------------
56 //---------------------------------------------------------------------------
57 
58 //---------------------------------------------------------------------------
61 {
69  Stream_Max
70 };
71 
73 enum info_t
74 {
84  Info_Max
85 };
86 
92 {
94  InfoOption_Reserved,
97  InfoOption_ShowInXml,
98  InfoOption_Max
99 };
100 
103 {
104  FileOption_Nothing =0x00,
107  FileOption_Max =0x04
108 };
109 
110 //---------------------------------------------------------------------------
111 
112 //---------------------------------------------------------------------------
113 //Char types
114 #undef __T
115 #define __T(__x) __T(__x)
116 #if defined(UNICODE) || defined (_UNICODE)
117  typedef wchar_t Char;
118  #undef __T
119  #define __T(__x) L ## __x
120 #else
121  typedef char Char;
122  #undef __T
123  #define __T(__x) __x
124 #endif
125 typedef std::basic_string<MediaInfoLib::Char> String;
126 typedef std::basic_stringstream<MediaInfoLib::Char> StringStream;
127 typedef std::basic_istringstream<MediaInfoLib::Char> tiStringStream;
128 typedef std::basic_ostringstream<MediaInfoLib::Char> toStringStream;
129 //---------------------------------------------------------------------------
130 
131 } //NameSpace
132 
133 #endif
Do not browse folders recursively.
Close all files before open.
InfoKind = Unique name of parameter.
InfoKind = Translated name of parameter.
StreamKind = Text.
std::basic_string< MediaInfoLib::Char > String
Unicode/Ansi independant string.
StreamKind = Chapters.
StreamKind = Menu.
InfoKind = Domain of this piece of information.
InfoKind = See infooptions_t.
Show this parameter in Inform()
InfoKind = Translated name of measure unit.
InfoKind = How this parameter is supported, could be N (No), B (Beta), R (Read only), W (Read/Write)
std::basic_stringstream< MediaInfoLib::Char > StringStream
Unicode/Ansi independant stringstream.
StreamKind = General.
Internal use only (info : Must be showed in Info_Capacities() )
info_t
Kind of information.
Value return by a standard Get() can be : T (Text), I (Integer, warning up to 64 bits), F (Float), D (Date), B (Binary datas coded Base64) (Numbers are in Base 10)
fileoptions_t
File opening options.
stream_t
Kinds of Stream.
defined(_WIN32)
StreamKind = Audio.
InfoKind = Unique name of measure unit of parameter.
StreamKind = Image.
std::basic_istringstream< MediaInfoLib::Char > tiStringStream
Unicode/Ansi independant istringstream.
std::basic_ostringstream< MediaInfoLib::Char > toStringStream
Unicode/Ansi independant ostringstream.
char Char
Unicode/Ansi independant char.
StreamKind = Video.
infooptions_t
Option if InfoKind = Info_Options.
InfoKind = Value of parameter.
InfoKind = More information about the parameter.