MediaInfoLib 0.7

- Main Page
- Namespaces
- Classes
- Files

- File List

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 //---------------------------------------------------------------------------
60 enum stream_t
61 {
62 Stream_General,
63 Stream_Video,
64 Stream_Audio,
65 Stream_Text,
66 Stream_Other,
67 Stream_Image,
68 Stream_Menu,
69 Stream_Max
70 };
71
73 enum info_t
74 {
75 Info_Name,
76 Info_Text,
77 Info_Measure,
78 Info_Options,
79 Info_Name_Text,
80 Info_Measure_Text,
81 Info_Info,
82 Info_HowTo,
83 Info_Domain,
84 Info_Max
85 };
86
91 enum infooptions_t
92 {
93 InfoOption_ShowInInform,
94 InfoOption_Reserved,
95 InfoOption_ShowInSupported,
96 InfoOption_TypeOfValue,
97 InfoOption_ShowInXml,
98 InfoOption_Max
99 };
100
102 enum fileoptions_t
103 {
104 FileOption_Nothing =0x00,
105 FileOption_NoRecursive =0x01,
106 FileOption_CloseAll =0x02,
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
MediaInfoLib::FileOption_NoRecursive
Do not browse folders recursively.
Definition: MediaInfo_Const.h:105
MediaInfoLib::FileOption_CloseAll
Close all files before open.
Definition: MediaInfo_Const.h:106
MediaInfoLib::Info_Name
InfoKind = Unique name of parameter.
Definition: MediaInfo_Const.h:75
MediaInfoLib::Info_Name_Text
InfoKind = Translated name of parameter.
Definition: MediaInfo_Const.h:79
MediaInfoLib::Stream_Text
StreamKind = Text.
Definition: MediaInfo_Const.h:65
MediaInfoLib::String
std::basic_string< MediaInfoLib::Char > String
Unicode/Ansi independant string.
Definition: MediaInfo_Const.h:125
MediaInfoLib::Stream_Other
StreamKind = Chapters.
Definition: MediaInfo_Const.h:66
MediaInfoLib::Stream_Menu
StreamKind = Menu.
Definition: MediaInfo_Const.h:68
MediaInfoLib::Info_Domain
InfoKind = Domain of this piece of information.
Definition: MediaInfo_Const.h:83
MediaInfoLib::Info_Options
InfoKind = See infooptions_t.
Definition: MediaInfo_Const.h:78
MediaInfoLib::InfoOption_ShowInInform
Show this parameter in Inform()
Definition: MediaInfo_Const.h:93
MediaInfoLib::Info_Measure_Text
InfoKind = Translated name of measure unit.
Definition: MediaInfo_Const.h:80
MediaInfoLib::Info_HowTo
InfoKind = How this parameter is supported, could be N (No), B (Beta), R (Read only), W (Read/Write)
Definition: MediaInfo_Const.h:82
MediaInfoLib::StringStream
std::basic_stringstream< MediaInfoLib::Char > StringStream
Unicode/Ansi independant stringstream.
Definition: MediaInfo_Const.h:126
MediaInfoLib::Stream_General
StreamKind = General.
Definition: MediaInfo_Const.h:62
MediaInfoLib::InfoOption_ShowInSupported
Internal use only (info : Must be showed in Info_Capacities() )
Definition: MediaInfo_Const.h:95
MediaInfoLib::info_t
info_t
Kind of information.
Definition: MediaInfo_Const.h:73
MediaInfoLib::InfoOption_TypeOfValue
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)
Definition: MediaInfo_Const.h:96
MediaInfoLib::fileoptions_t
fileoptions_t
File opening options.
Definition: MediaInfo_Const.h:102
MediaInfoLib::stream_t
stream_t
Kinds of Stream.
Definition: MediaInfo_Const.h:60
MediaInfoLib::Stream_Audio
StreamKind = Audio.
Definition: MediaInfo_Const.h:64
MediaInfoLib::Info_Measure
InfoKind = Unique name of measure unit of parameter.
Definition: MediaInfo_Const.h:77
MediaInfoLib::Stream_Image
StreamKind = Image.
Definition: MediaInfo_Const.h:67
MediaInfoLib::tiStringStream
std::basic_istringstream< MediaInfoLib::Char > tiStringStream
Unicode/Ansi independant istringstream.
Definition: MediaInfo_Const.h:127
MediaInfoLib::toStringStream
std::basic_ostringstream< MediaInfoLib::Char > toStringStream
Unicode/Ansi independant ostringstream.
Definition: MediaInfo_Const.h:128
MediaInfoLib::Char
char Char
Unicode/Ansi independant char.
Definition: MediaInfo_Const.h:121
MediaInfoLib::Stream_Video
StreamKind = Video.
Definition: MediaInfo_Const.h:63
MediaInfoLib::infooptions_t
infooptions_t
Option if InfoKind = Info_Options.
Definition: MediaInfo_Const.h:91
MediaInfoLib::Info_Text
InfoKind = Value of parameter.
Definition: MediaInfo_Const.h:76
MediaInfoLib::Info_Info
InfoKind = More information about the parameter.
Definition: MediaInfo_Const.h:81