# E:/Programmation/MediaInfoLib/Source/MediaInfoDLL/MediaInfoDLL.h File Reference

`#include <dlfcn.h>`

Go to the source code of this file.

## Defines

#define | MEDIAINFODLL_NAME "libmediainfo.so.0"
#define | __stdcall
#define | _T(__x) __T(__x)
| defined(_WIN32) || defined (WIN32)
#define | __T(__x) __x
#define | MEDIAINFO_Ansi "A"
#define | NULL 0
#define | MEDIAINFO_ASSIGN(_Name, _Name2)
#define | MEDIAINFOLIST_ASSIGN(_Name, _Name2)

## Typedefs

typedef char | MediaInfo_Char
typedef unsigned char | MediaInfo_int8u
typedef enum MediaInfo_stream_t | MediaInfo_stream_C
| Kinds of Stream.
typedef enum MediaInfo_info_t | MediaInfo_info_C
| Kinds of Info.
typedef enum MediaInfo_infooptions_t | MediaInfo_infooptions_C
| Option if InfoKind = Info_Options.
typedef enum MediaInfo_fileoptions_t | MediaInfo_fileoptions_C
| File opening options.
typedef void *(__stdcall * | MEDIAINFO_New )()
typedef void *(__stdcall * | MEDIAINFOLIST_New )()
typedef void(__stdcall * | MEDIAINFO_Delete )(void *)
typedef void(__stdcall * | MEDIAINFOLIST_Delete )(void *)
typedef size_t(__stdcall * | MEDIAINFO_Open )(void *, const MediaInfo_Char *)
typedef size_t(__stdcall * | MEDIAINFOLIST_Open )(void *, const MediaInfo_Char *, const MediaInfo_fileoptions_C)
typedef size_t(__stdcall * | MEDIAINFO_Open_Buffer_Init )(void *, MediaInfo_int64u File_Size, MediaInfo_int64u File_Offset)
typedef size_t(__stdcall * | MEDIAINFO_Open_Buffer_Continue )(void *, MediaInfo_int8u *Buffer, size_t Buffer_Size)
typedef MediaInfo_int64u(__stdcall * | MEDIAINFO_Open_Buffer_Continue_GoTo_Get )(void *)
typedef size_t(__stdcall * | MEDIAINFO_Open_Buffer_Finalize )(void *)
typedef size_t(__stdcall * | MEDIAINFO_Open_NextPacket )(void *)
typedef void(__stdcall * | MEDIAINFO_Close )(void *)
typedef void(__stdcall * | MEDIAINFOLIST_Close )(void *, size_t)
typedef const MediaInfo_Char *(__stdcall * | MEDIAINFO_Inform )(void *, size_t Reserved)
typedef const MediaInfo_Char *(__stdcall * | MEDIAINFOLIST_Inform )(void *, size_t, size_t Reserved)
typedef const MediaInfo_Char *(__stdcall * | MEDIAINFO_GetI )(void *, MediaInfo_stream_C StreamKind, size_t StreamNumber, size_t Parameter, MediaInfo_info_C KindOfInfo)
typedef const MediaInfo_Char *(__stdcall * | MEDIAINFOLIST_GetI )(void *, size_t, MediaInfo_stream_C StreamKind, size_t StreamNumber, size_t Parameter, MediaInfo_info_C KindOfInfo)
typedef const MediaInfo_Char *(__stdcall * | MEDIAINFO_Get )(void *, MediaInfo_stream_C StreamKind, size_t StreamNumber, const MediaInfo_Char *Parameter, MediaInfo_info_C KindOfInfo, MediaInfo_info_C KindOfSearch)
typedef const MediaInfo_Char *(__stdcall * | MEDIAINFOLIST_Get )(void *, size_t, MediaInfo_stream_C StreamKind, size_t StreamNumber, const MediaInfo_Char *Parameter, MediaInfo_info_C KindOfInfo, MediaInfo_info_C KindOfSearch)
typedef size_t(__stdcall * | MEDIAINFO_Output_Buffer_Get )(void *, const MediaInfo_Char *Parameter)
typedef size_t(__stdcall * | MEDIAINFO_Output_Buffer_GetI )(void *, size_t Pos)
typedef const MediaInfo_Char *(__stdcall * | MEDIAINFO_Option )(void *, const MediaInfo_Char *Parameter, const MediaInfo_Char *Value)
typedef const MediaInfo_Char *(__stdcall * | MEDIAINFOLIST_Option )(void *, const MediaInfo_Char *Parameter, const MediaInfo_Char *Value)
typedef size_t(__stdcall * | MEDIAINFO_State_Get )(void *)
typedef size_t(__stdcall * | MEDIAINFOLIST_State_Get )(void *)
typedef size_t(__stdcall * | MEDIAINFO_Count_Get )(void *, MediaInfo_stream_C StreamKind, size_t StreamNumber)
typedef size_t(__stdcall * | MEDIAINFOLIST_Count_Get )(void *, size_t, MediaInfo_stream_C StreamKind, size_t StreamNumber)
typedef size_t(__stdcall * | MEDIAINFO_Count_Get_Files )(void *)
typedef size_t(__stdcall * | MEDIAINFOLIST_Count_Get_Files )(void *)

## Enumerations

enum | MediaInfo_stream_t { MediaInfo_Stream_General, MediaInfo_Stream_Video, MediaInfo_Stream_Audio, MediaInfo_Stream_Text, MediaInfo_Stream_Chapters, MediaInfo_Stream_Image, MediaInfo_Stream_Menu, MediaInfo_Stream_Max }
| Kinds of Stream. More...
enum | MediaInfo_info_t { MediaInfo_Info_Name, MediaInfo_Info_Text, MediaInfo_Info_Measure, MediaInfo_Info_Options, MediaInfo_Info_Name_Text, MediaInfo_Info_Measure_Text, MediaInfo_Info_Info, MediaInfo_Info_HowTo, MediaInfo_Info_Max }
| Kinds of Info. More...
enum | MediaInfo_infooptions_t { MediaInfo_InfoOption_ShowInInform, MediaInfo_InfoOption_Reserved, MediaInfo_InfoOption_ShowInSupported, MediaInfo_InfoOption_TypeOfValue, MediaInfo_InfoOption_Max }
| Option if InfoKind = Info_Options. More...
enum | MediaInfo_fileoptions_t { MediaInfo_FileOption_Nothing = 0x00, MediaInfo_FileOption_NoRecursive = 0x01, MediaInfo_FileOption_CloseAll = 0x02, MediaInfo_FileOption_Max = 0x04 }
| File opening options. More...

## Define Documentation

#define __stdcall

Definition at line 138 of file MediaInfoDLL.h.

#define __T | ( | __x |  | ) | __x

Definition at line 153 of file MediaInfoDLL.h.

#define _T | ( | __x |  | ) | __T(__x)

defined(_WIN32) || defined (WIN32)

Definition at line 144 of file MediaInfoDLL.h.

#define MEDIAINFO_Ansi "A"

Definition at line 154 of file MediaInfoDLL.h.

#define MEDIAINFO_ASSIGN | ( | _Name,
|  | _Name2 |  | ) |

Value:

    MediaInfo_##_Name=(MEDIAINFO_##_Name)dlsym(MediaInfo_Module, "MediaInfo"MEDIAINFO_Ansi"_"_Name2); \
        if (MediaInfo_##_Name==NULL) Errors++;

Definition at line 264 of file MediaInfoDLL.h.

#define MEDIAINFODLL_NAME "libmediainfo.so.0"

Definition at line 137 of file MediaInfoDLL.h.

#define MEDIAINFOLIST_ASSIGN | ( | _Name,
|  | _Name2 |  | ) |

Value:

    MediaInfoList_##_Name=(MEDIAINFOLIST_##_Name)dlsym(MediaInfo_Module, "MediaInfoList"MEDIAINFO_Ansi"_"_Name2); \
        if (MediaInfoList_##_Name==NULL) Errors++;

Definition at line 267 of file MediaInfoDLL.h.

#define NULL 0

Definition at line 181 of file MediaInfoDLL.h.

## Typedef Documentation

typedef char MediaInfo_Char

Definition at line 151 of file MediaInfoDLL.h.

typedef void(__stdcall * MEDIAINFO_Close)(void *)

Definition at line 283 of file MediaInfoDLL.h.

typedef size_t(__stdcall * MEDIAINFO_Count_Get)(void *, MediaInfo_stream_C StreamKind, size_t StreamNumber)

Definition at line 297 of file MediaInfoDLL.h.

typedef size_t(__stdcall * MEDIAINFO_Count_Get_Files)(void *)

Definition at line 299 of file MediaInfoDLL.h.

typedef void(__stdcall * MEDIAINFO_Delete)(void *)

Definition at line 274 of file MediaInfoDLL.h.

typedef enum MediaInfo_fileoptions_t MediaInfo_fileoptions_C

File opening options.

typedef const MediaInfo_Char*(__stdcall * MEDIAINFO_Get)(void *, MediaInfo_stream_C StreamKind, size_t StreamNumber, const MediaInfo_Char *Parameter, MediaInfo_info_C KindOfInfo, MediaInfo_info_C KindOfSearch)

Definition at line 289 of file MediaInfoDLL.h.

typedef const MediaInfo_Char*(__stdcall * MEDIAINFO_GetI)(void *, MediaInfo_stream_C StreamKind, size_t StreamNumber, size_t Parameter, MediaInfo_info_C KindOfInfo)

Definition at line 287 of file MediaInfoDLL.h.

typedef enum MediaInfo_info_t MediaInfo_info_C

Kinds of Info.

typedef enum MediaInfo_infooptions_t MediaInfo_infooptions_C

Option if InfoKind = Info_Options.

typedef const MediaInfo_Char*(__stdcall * MEDIAINFO_Inform)(void *, size_t Reserved)

Definition at line 285 of file MediaInfoDLL.h.

typedef unsigned char MediaInfo_int8u

Definition at line 160 of file MediaInfoDLL.h.

typedef void*(__stdcall * MEDIAINFO_New)()

Definition at line 272 of file MediaInfoDLL.h.

typedef size_t(__stdcall * MEDIAINFO_Open)(void *, const MediaInfo_Char *)

Definition at line 276 of file MediaInfoDLL.h.

typedef size_t(__stdcall * MEDIAINFO_Open_Buffer_Continue)(void *, MediaInfo_int8u *Buffer, size_t Buffer_Size)

Definition at line 279 of file MediaInfoDLL.h.

typedef MediaInfo_int64u(__stdcall * MEDIAINFO_Open_Buffer_Continue_GoTo_Get)(void *)

Definition at line 280 of file MediaInfoDLL.h.

typedef size_t(__stdcall * MEDIAINFO_Open_Buffer_Finalize)(void *)

Definition at line 281 of file MediaInfoDLL.h.

typedef size_t(__stdcall * MEDIAINFO_Open_Buffer_Init)(void *, MediaInfo_int64u File_Size, MediaInfo_int64u File_Offset)

Definition at line 278 of file MediaInfoDLL.h.

typedef size_t(__stdcall * MEDIAINFO_Open_NextPacket)(void *)

Definition at line 282 of file MediaInfoDLL.h.

typedef const MediaInfo_Char*(__stdcall * MEDIAINFO_Option)(void *, const MediaInfo_Char *Parameter, const MediaInfo_Char *Value)

Definition at line 293 of file MediaInfoDLL.h.

typedef size_t(__stdcall * MEDIAINFO_Output_Buffer_Get)(void *, const MediaInfo_Char *Parameter)

Definition at line 291 of file MediaInfoDLL.h.

typedef size_t(__stdcall * MEDIAINFO_Output_Buffer_GetI)(void *, size_t Pos)

Definition at line 292 of file MediaInfoDLL.h.

typedef size_t(__stdcall * MEDIAINFO_State_Get)(void *)

Definition at line 295 of file MediaInfoDLL.h.

typedef enum MediaInfo_stream_t MediaInfo_stream_C

Kinds of Stream.

typedef void(__stdcall * MEDIAINFOLIST_Close)(void *, size_t)

Definition at line 284 of file MediaInfoDLL.h.

typedef size_t(__stdcall * MEDIAINFOLIST_Count_Get)(void *, size_t, MediaInfo_stream_C StreamKind, size_t StreamNumber)

Definition at line 298 of file MediaInfoDLL.h.

typedef size_t(__stdcall * MEDIAINFOLIST_Count_Get_Files)(void *)

Definition at line 300 of file MediaInfoDLL.h.

typedef void(__stdcall * MEDIAINFOLIST_Delete)(void *)

Definition at line 275 of file MediaInfoDLL.h.

typedef const MediaInfo_Char*(__stdcall * MEDIAINFOLIST_Get)(void *, size_t, MediaInfo_stream_C StreamKind, size_t StreamNumber, const MediaInfo_Char *Parameter, MediaInfo_info_C KindOfInfo, MediaInfo_info_C KindOfSearch)

Definition at line 290 of file MediaInfoDLL.h.

typedef const MediaInfo_Char*(__stdcall * MEDIAINFOLIST_GetI)(void *, size_t, MediaInfo_stream_C StreamKind, size_t StreamNumber, size_t Parameter, MediaInfo_info_C KindOfInfo)

Definition at line 288 of file MediaInfoDLL.h.

typedef const MediaInfo_Char*(__stdcall * MEDIAINFOLIST_Inform)(void *, size_t, size_t Reserved)

Definition at line 286 of file MediaInfoDLL.h.

typedef void*(__stdcall * MEDIAINFOLIST_New)()

Definition at line 273 of file MediaInfoDLL.h.

typedef size_t(__stdcall * MEDIAINFOLIST_Open)(void *, const MediaInfo_Char *, const MediaInfo_fileoptions_C)

Definition at line 277 of file MediaInfoDLL.h.

typedef const MediaInfo_Char*(__stdcall * MEDIAINFOLIST_Option)(void *, const MediaInfo_Char *Parameter, const MediaInfo_Char *Value)

Definition at line 294 of file MediaInfoDLL.h.

typedef size_t(__stdcall * MEDIAINFOLIST_State_Get)(void *)

Definition at line 296 of file MediaInfoDLL.h.

## Enumeration Type Documentation

enum MediaInfo_fileoptions_t

File opening options.

Enumerator:

  MediaInfo_FileOption_Nothing |
  MediaInfo_FileOption_NoRecursive |
  MediaInfo_FileOption_CloseAll |
  MediaInfo_FileOption_Max |

Definition at line 223 of file MediaInfoDLL.h.

enum MediaInfo_info_t

Kinds of Info.

Enumerator:

  MediaInfo_Info_Name |
  MediaInfo_Info_Text |
  MediaInfo_Info_Measure |
  MediaInfo_Info_Options |
  MediaInfo_Info_Name_Text |
  MediaInfo_Info_Measure_Text |
  MediaInfo_Info_Info |
  MediaInfo_Info_HowTo |
  MediaInfo_Info_Max |

Definition at line 199 of file MediaInfoDLL.h.

enum MediaInfo_infooptions_t

Option if InfoKind = Info_Options.

Enumerator:

  MediaInfo_InfoOption_ShowInInform |
  MediaInfo_InfoOption_Reserved |
  MediaInfo_InfoOption_ShowInSupported |
  MediaInfo_InfoOption_TypeOfValue |
  MediaInfo_InfoOption_Max |

Definition at line 213 of file MediaInfoDLL.h.

enum MediaInfo_stream_t

Kinds of Stream.

Enumerator:

  MediaInfo_Stream_General |
  MediaInfo_Stream_Video |
  MediaInfo_Stream_Audio |
  MediaInfo_Stream_Text |
  MediaInfo_Stream_Chapters |
  MediaInfo_Stream_Image |
  MediaInfo_Stream_Menu |
  MediaInfo_Stream_Max |

Definition at line 186 of file MediaInfoDLL.h.

All Classes Namespaces Files Functions Typedefs Enumerations Enumerator Defines