00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043 #ifndef MediaInfoDLLH
00044 #define MediaInfoDLLH
00045
00046 #ifdef MEDIAINFO_DLL_EXPORT
00047 #define MEDIAINFO_DLL extern _declspec(dllexport)
00048 #else
00049 #define MEDIAINFO_DLL extern _declspec(dllimport)
00050 #endif
00051
00052
00053 typedef enum _stream_t
00054 {
00055 Stream_General,
00056 Stream_Video,
00057 Stream_Audio,
00058 Stream_Text,
00059 Stream_Chapters,
00060 Stream_Image,
00061 Stream_Max
00062 } stream_t_C;
00063
00064
00065 typedef enum _info_t
00066 {
00067 Info_Name,
00068 Info_Text,
00069 Info_Measure,
00070 Info_Options,
00071 Info_Name_Text,
00072 Info_Measure_Text,
00073 Info_Info,
00074 Info_HowTo,
00075 Info_Max
00076 } info_t_C;
00077
00078
00079 typedef enum infooptions_t
00080 {
00081 InfoOption_ShowInInform,
00082 InfoOption_Support,
00083 InfoOption_ShowInSupported,
00084 InfoOption_TypeOfValue,
00085 InfoOption_Max
00086 } infooptions_t_C;
00087
00088
00089 typedef enum informoptions_t
00090 {
00091 InformOption_Nothing,
00092 InformOption_Custom,
00093 InformOption_HTML,
00094 InformOption_Max
00095 } informoptions_t_C;
00096
00097 #ifdef __cplusplus
00098 extern "C"
00099 {
00100 #endif
00101
00102
00103
00104
00105
00106
00107
00108
00109
00110
00111
00112
00113 MEDIAINFO_DLL void* __stdcall MediaInfoA_Open (const char* File);
00114
00115 MEDIAINFO_DLL void* __stdcall MediaInfoA_Open_Buffer (const unsigned char* Begin, unsigned int Begin_Size, const unsigned char* End, unsigned int End_Size);
00116
00117 MEDIAINFO_DLL int __stdcall MediaInfoA_Save (void* Handle);
00118
00119 MEDIAINFO_DLL void __stdcall MediaInfoA_Close (void* Handle);
00120
00121 MEDIAINFO_DLL const char* __stdcall MediaInfoA_Inform (void* Handle, informoptions_t Options);
00122
00123 MEDIAINFO_DLL const char* __stdcall MediaInfoA_GetI (void* Handle, stream_t_C StreamKind, int StreamNumber, unsigned int Parameter, info_t_C InfoKind);
00124
00125 MEDIAINFO_DLL const char* __stdcall MediaInfoA_Get (void* Handle, stream_t_C StreamKind, int StreamNumber, const char* Parameter, info_t_C InfoKind, info_t_C SearchKind);
00126
00127 MEDIAINFO_DLL int __stdcall MediaInfoA_SetI (void* Handle, const char* ToSet, stream_t_C StreamKind, int StreamNumber, unsigned int Parameter, const char* OldParameter);
00128
00129 MEDIAINFO_DLL int __stdcall MediaInfoA_Set (void* Handle, const char* ToSet, stream_t_C StreamKind, int StreamNumber, const char* Parameter, const char* OldParameter);
00130
00131 MEDIAINFO_DLL const char* __stdcall MediaInfoA_Option (void* Handle, const char* Option, const char* Value);
00132
00133 MEDIAINFO_DLL int __stdcall MediaInfoA_State_Get (void* Handle);
00134
00135 MEDIAINFO_DLL int __stdcall MediaInfoA_Count_Get (void* Handle, stream_t_C StreamKind, int StreamNumber);
00136
00137
00138 MEDIAINFO_DLL void* __stdcall MediaInfo_Open (const wchar_t* File);
00139
00140 MEDIAINFO_DLL void* __stdcall MediaInfo_Open_Buffer (const unsigned char* Begin, unsigned int Begin_Size, const unsigned char* End, unsigned int End_Size);
00141
00142 MEDIAINFO_DLL int __stdcall MediaInfo_Save (void* Handle);
00143
00144 MEDIAINFO_DLL void __stdcall MediaInfo_Close (void* Handle);
00145
00146 MEDIAINFO_DLL const wchar_t* __stdcall MediaInfo_Inform (void* Handle, informoptions_t Options);
00147
00148 MEDIAINFO_DLL const wchar_t* __stdcall MediaInfo_GetI (void* Handle, stream_t_C StreamKind, int StreamNumber, unsigned int Parameter, info_t_C InfoKind);
00149
00150 MEDIAINFO_DLL const wchar_t* __stdcall MediaInfo_Get (void* Handle, stream_t_C StreamKind, int StreamNumber, const wchar_t* Parameter, info_t_C InfoKind, info_t_C SearchKind);
00151
00152 MEDIAINFO_DLL int __stdcall MediaInfo_SetI (void* Handle, const wchar_t* ToSet, stream_t_C StreamKind, int StreamNumber, unsigned int Parameter, const wchar_t* OldParameter);
00153
00154 MEDIAINFO_DLL int __stdcall MediaInfo_Set (void* Handle, const wchar_t* ToSet, stream_t_C StreamKind, int StreamNumber, const wchar_t* Parameter, const wchar_t* OldParameter);
00155
00156 MEDIAINFO_DLL const wchar_t* __stdcall MediaInfo_Option (void* Handle, const wchar_t* Option, const wchar_t* Value);
00157
00158 MEDIAINFO_DLL int __stdcall MediaInfo_State_Get (void* Handle);
00159
00160 MEDIAINFO_DLL int __stdcall MediaInfo_Count_Get (void* Handle, stream_t_C StreamKind, int StreamNumber);
00161
00162 MEDIAINFO_DLL const char* __stdcall MediaInfo_Info_Version ();
00163
00164 #ifdef __cplusplus
00165 }
00166 #endif
00167
00168 #endif