MediaInfo_Const.h
/* Copyright (c) MediaArea.net SARL. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license that can
* be found in the License.html file in the root of the source tree.
*/
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//
// Global configuration of MediaInfo
//
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//---------------------------------------------------------------------------
#ifndef MediaInfo_ConstH
#define MediaInfo_ConstH
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
#include <string>
#include <ZenLib/Conf.h>
//---------------------------------------------------------------------------
namespace MediaInfoLib
{
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
enum stream_t
{
Stream_General,
Stream_Video,
Stream_Audio,
Stream_Text,
Stream_Other,
Stream_Image,
Stream_Menu,
Stream_Max
};
enum info_t
{
Info_Name,
Info_Text,
Info_Measure,
Info_Options,
Info_Name_Text,
Info_Measure_Text,
Info_Info,
Info_HowTo,
Info_Domain,
Info_Max
};
enum infooptions_t
{
InfoOption_ShowInInform,
InfoOption_Reserved,
InfoOption_ShowInSupported,
InfoOption_TypeOfValue,
InfoOption_ShowInXml,
InfoOption_Max
};
enum fileoptions_t
{
FileOption_Nothing =0x00,
FileOption_NoRecursive =0x01,
FileOption_CloseAll =0x02,
FileOption_Max =0x04
};
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
//Char types
#undef __T
#define __T(__x) __T(__x)
#if defined(UNICODE) || defined (_UNICODE)
typedef wchar_t Char;
#undef __T
#define __T(__x) L ## __x
#else
typedef char Char;
#undef __T
#define __T(__x) __x
#endif
typedef std::basic_string<MediaInfoLib::Char> String;
typedef std::basic_stringstream<MediaInfoLib::Char> StringStream;
typedef std::basic_istringstream<MediaInfoLib::Char> tiStringStream;
typedef std::basic_ostringstream<MediaInfoLib::Char> toStringStream;
//---------------------------------------------------------------------------
} //NameSpace
#endif
MediaInfoLib
defined(_WIN32)
Definition MediaInfo_Const.h:24
MediaInfoLib::String
std::basic_string< MediaInfoLib::Char > String
Unicode/Ansi independant string.
Definition MediaInfo_Const.h:125
MediaInfoLib::info_t
info_t
Kind of information.
Definition MediaInfo_Const.h:74
MediaInfoLib::Info_Text
@ Info_Text
InfoKind = Value of parameter.
Definition MediaInfo_Const.h:76
MediaInfoLib::Info_Measure_Text
@ Info_Measure_Text
InfoKind = Translated name of measure unit.
Definition MediaInfo_Const.h:80
MediaInfoLib::Info_Name
@ Info_Name
InfoKind = Unique name of parameter.
Definition MediaInfo_Const.h:75
MediaInfoLib::Info_Options
@ Info_Options
InfoKind = See infooptions_t.
Definition MediaInfo_Const.h:78
MediaInfoLib::Info_Domain
@ Info_Domain
InfoKind = Domain of this piece of information.
Definition MediaInfo_Const.h:83
MediaInfoLib::Info_Name_Text
@ Info_Name_Text
InfoKind = Translated name of parameter.
Definition MediaInfo_Const.h:79
MediaInfoLib::Info_Measure
@ Info_Measure
InfoKind = Unique name of measure unit of parameter.
Definition MediaInfo_Const.h:77
MediaInfoLib::Info_Info
@ Info_Info
InfoKind = More information about the parameter.
Definition MediaInfo_Const.h:81
MediaInfoLib::Info_HowTo
@ Info_HowTo
InfoKind = How this parameter is supported, could be N (No), B (Beta), R (Read only),...
Definition MediaInfo_Const.h:82
MediaInfoLib::tiStringStream
std::basic_istringstream< MediaInfoLib::Char > tiStringStream
Unicode/Ansi independant istringstream.
Definition MediaInfo_Const.h:127
MediaInfoLib::Char
char Char
Unicode/Ansi independant char.
Definition MediaInfo_Const.h:121
MediaInfoLib::StringStream
std::basic_stringstream< MediaInfoLib::Char > StringStream
Unicode/Ansi independant stringstream.
Definition MediaInfo_Const.h:126
MediaInfoLib::fileoptions_t
fileoptions_t
File opening options.
Definition MediaInfo_Const.h:103
MediaInfoLib::FileOption_CloseAll
@ FileOption_CloseAll
Close all files before open.
Definition MediaInfo_Const.h:106
MediaInfoLib::FileOption_NoRecursive
@ FileOption_NoRecursive
Do not browse folders recursively.
Definition MediaInfo_Const.h:105
MediaInfoLib::toStringStream
std::basic_ostringstream< MediaInfoLib::Char > toStringStream
Unicode/Ansi independant ostringstream.
Definition MediaInfo_Const.h:128
MediaInfoLib::infooptions_t
infooptions_t
Option if InfoKind = Info_Options.
Definition MediaInfo_Const.h:92
MediaInfoLib::InfoOption_TypeOfValue
@ InfoOption_TypeOfValue
Value return by a standard Get() can be : T (Text), I (Integer, warning up to 64 bits),...
Definition MediaInfo_Const.h:96
MediaInfoLib::InfoOption_ShowInInform
@ InfoOption_ShowInInform
Show this parameter in Inform().
Definition MediaInfo_Const.h:93
MediaInfoLib::InfoOption_ShowInSupported
@ InfoOption_ShowInSupported
Internal use only (info : Must be showed in Info_Capacities() ).
Definition MediaInfo_Const.h:95
MediaInfoLib::stream_t
stream_t
Kinds of Stream.
Definition MediaInfo_Const.h:61
MediaInfoLib::Stream_Image
@ Stream_Image
StreamKind = Image.
Definition MediaInfo_Const.h:67
MediaInfoLib::Stream_General
@ Stream_General
StreamKind = General.
Definition MediaInfo_Const.h:62
MediaInfoLib::Stream_Menu
@ Stream_Menu
StreamKind = Menu.
Definition MediaInfo_Const.h:68
MediaInfoLib::Stream_Text
@ Stream_Text
StreamKind = Text.
Definition MediaInfo_Const.h:65
MediaInfoLib::Stream_Audio
@ Stream_Audio
StreamKind = Audio.
Definition MediaInfo_Const.h:64
MediaInfoLib::Stream_Other
@ Stream_Other
StreamKind = Chapters.
Definition MediaInfo_Const.h:66
MediaInfoLib::Stream_Video
@ Stream_Video
StreamKind = Video.
Definition MediaInfo_Const.h:63