/usr/include/MediaInfo/MediaInfo_Const.h is in libmediainfo-dev 0.7.70-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 | /* 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
{
//---------------------------------------------------------------------------
/// \mainpage MediaInfoLib Index Page
///
/// \section Interfaces
///
/// There is 2 access methods
///
/// - MediaInfo class \n
/// To manage one file, this is the simplest interface. \n
/// - MediaInfo::Open to analyse file \n
/// - MediaInfo::Inform to have a summary \n
/// - MediaInfo::Get to retreive one piece of information \n
///
/// - MediaInfoList class \n
/// To manage a list of files \n
/// - MediaInfoList::Open to analyse file \n
/// - MediaInfoList::Inform to have a summary \n
/// - MediaInfoList::Get to retreive one piece of information \n
/// - MediaInfoList::Close to close one file \n
///
/// \section C C Interface (MediaInfo_*)
/// For compatibility and DLL interface \n
/// This is a C interface for the List class \n
/// Note : Don't forget to include the MediaInfoDLL.h file in your source file! \n
/// - Example of commands:
/// - MediaInfo_Open to analyse file \n
/// - MediaInfo_Inform to have a summary \n
/// - MediaInfo_Get to retreive one piece of information \n
/// - MediaInfo_Close to free memory \n
///
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
/// @brief Kinds of Stream
enum stream_t
{
Stream_General, ///< StreamKind = General
Stream_Video, ///< StreamKind = Video
Stream_Audio, ///< StreamKind = Audio
Stream_Text, ///< StreamKind = Text
Stream_Other, ///< StreamKind = Chapters
Stream_Image, ///< StreamKind = Image
Stream_Menu, ///< StreamKind = Menu
Stream_Max
};
/// @brief Kind of information
enum info_t
{
Info_Name, ///< InfoKind = Unique name of parameter
Info_Text, ///< InfoKind = Value of parameter
Info_Measure, ///< InfoKind = Unique name of measure unit of parameter
Info_Options, ///< InfoKind = See infooptions_t
Info_Name_Text, ///< InfoKind = Translated name of parameter
Info_Measure_Text, ///< InfoKind = Translated name of measure unit
Info_Info, ///< InfoKind = More information about the parameter
Info_HowTo, ///< InfoKind = How this parameter is supported, could be N (No), B (Beta), R (Read only), W (Read/Write)
Info_Domain, ///< InfoKind = Domain of this piece of information
Info_Max
};
/// Get(...)[infooptions_t] return a string like "YNYN..." \n
/// Use this enum to know at what correspond the Y (Yes) or N (No)
/// If Get(...)[0]==Y, then :
/// @brief Option if InfoKind = Info_Options
enum infooptions_t
{
InfoOption_ShowInInform, ///< Show this parameter in Inform()
InfoOption_Reserved, ///<
InfoOption_ShowInSupported, ///< Internal use only (info : Must be showed in Info_Capacities() )
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)
InfoOption_Max
};
/// @brief File opening options
enum fileoptions_t
{
FileOption_Nothing =0x00,
FileOption_NoRecursive =0x01, ///< Do not browse folders recursively
FileOption_CloseAll =0x02, ///< Close all files before open
FileOption_Max =0x04
};
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
//Char types
#undef __T
#define __T(__x) __T(__x)
#if defined(UNICODE) || defined (_UNICODE)
typedef wchar_t Char; ///< Unicode/Ansi independant char
#undef __T
#define __T(__x) L ## __x
#else
typedef char Char; ///< Unicode/Ansi independant char
#undef __T
#define __T(__x) __x
#endif
typedef std::basic_string<MediaInfoLib::Char> String; ///< Unicode/Ansi independant string
typedef std::basic_stringstream<MediaInfoLib::Char> StringStream; ///< Unicode/Ansi independant stringstream
typedef std::basic_istringstream<MediaInfoLib::Char> tiStringStream; ///< Unicode/Ansi independant istringstream
typedef std::basic_ostringstream<MediaInfoLib::Char> toStringStream; ///< Unicode/Ansi independant ostringstream
//---------------------------------------------------------------------------
} //NameSpace
#endif
|