#include <MediaInfo.h>
Public Member Functions | |
MediaInfo () | |
~MediaInfo () | |
size_t | Open (const String &File_Name) |
Open a file. | |
size_t | Open (const ZenLib::int8u *Begin, size_t Begin_Size, const ZenLib::int8u *End=NULL, size_t End_Size=0, ZenLib::int64u File_Size=0) |
Open a buffer. | |
size_t | Open_Buffer_Init (ZenLib::int64u File_Size=(ZenLib::int64u)-1, ZenLib::int64u File_Offset=0) |
Open a stream (Init). | |
size_t | Open_Buffer_Continue (const ZenLib::int8u *Buffer, size_t Buffer_Size) |
Open a stream (Continue). | |
ZenLib::int64u | Open_Buffer_Continue_GoTo_Get () |
Open a stream (Get the needed file Offset). | |
size_t | Open_Buffer_Finalize () |
Open a stream (Finalize). | |
size_t | Save () |
(NOT IMPLEMENTED YET) Save the file | |
void | Close () |
Close a file. | |
String | Inform (size_t Reserved=0) |
Get all details about a file. | |
String | Get (stream_t StreamKind, size_t StreamNumber, size_t Parameter, info_t InfoKind=Info_Text) |
Get a piece of information about a file (parameter is an integer). | |
String | Get (stream_t StreamKind, size_t StreamNumber, const String &Parameter, info_t InfoKind=Info_Text, info_t SearchKind=Info_Name) |
Get a piece of information about a file (parameter is a string). | |
size_t | Set (const String &ToSet, stream_t StreamKind, size_t StreamNumber, size_t Parameter, const String &OldValue=_T("")) |
(NOT IMPLEMENTED YET) Set a piece of information about a file (parameter is an int) | |
size_t | Set (const String &ToSet, stream_t StreamKind, size_t StreamNumber, const String &Parameter, const String &OldValue=_T("")) |
(NOT IMPLEMENTED YET) Set information about a file (parameter is a string) | |
size_t | Output_Buffer_Get (const String &Value) |
Output the written size when "File_Duplicate" option is used. | |
size_t | Output_Buffer_Get (size_t Pos) |
Output the written size when "File_Duplicate" option is used. | |
String | Option (const String &Option, const String &Value=_T("")) |
size_t | State_Get () |
(NOT IMPLEMENTED YET) Get the state of the library | |
size_t | Count_Get (stream_t StreamKind, size_t StreamNumber=(size_t)-1) |
Count of streams of a stream kind (StreamNumber not filled), or count of piece of information in this stream. | |
Static Public Member Functions | |
static String | Option_Static (const String &Option, const String &Value=_T("")) |
Definition at line 66 of file MediaInfo.h.
MediaInfoLib::MediaInfo::MediaInfo | ( | ) |
MediaInfoLib::MediaInfo::~MediaInfo | ( | ) |
size_t MediaInfoLib::MediaInfo::Open | ( | const String & | File_Name | ) |
Open a file.
Open a file and collect information about it (technical information and tags)
File_Name | Full name of file to open |
0 | File not opened | |
1 | File opened |
size_t MediaInfoLib::MediaInfo::Open | ( | const ZenLib::int8u * | Begin, | |
size_t | Begin_Size, | |||
const ZenLib::int8u * | End = NULL , |
|||
size_t | End_Size = 0 , |
|||
ZenLib::int64u | File_Size = 0 | |||
) |
Open a buffer.
Open a Buffer (Begin and end of the stream) and collect information about it (technical information and tags)
Begin | First bytes of the buffer | |
Begin_Size | Size of Begin | |
End | Last bytes of the buffer | |
End_Size | Size of End | |
File_Size | Total size of the file |
0 | File not opened | |
1 | File opened |
size_t MediaInfoLib::MediaInfo::Open_Buffer_Init | ( | ZenLib::int64u | File_Size = (ZenLib::int64u)-1 , |
|
ZenLib::int64u | File_Offset = 0 | |||
) |
Open a stream (Init).
Open a stream and collect information about it (technical information and tags)
File_Size | Estimated file size | |
File_Offset | Offset of the file (if we don't have the beginning of the file) |
size_t MediaInfoLib::MediaInfo::Open_Buffer_Continue | ( | const ZenLib::int8u * | Buffer, | |
size_t | Buffer_Size | |||
) |
Open a stream (Continue).
Open a stream and collect information about it (technical information and tags)
Buffer | pointer to the stream | |
Buffer_Size | Count of bytes to read |
ZenLib::int64u MediaInfoLib::MediaInfo::Open_Buffer_Continue_GoTo_Get | ( | ) |
Open a stream (Get the needed file Offset).
Open a stream and collect information about it (technical information and tags)
size_t MediaInfoLib::MediaInfo::Open_Buffer_Finalize | ( | ) |
Open a stream (Finalize).
Open a stream and collect information about it (technical information and tags)
size_t MediaInfoLib::MediaInfo::Save | ( | ) |
(NOT IMPLEMENTED YET) Save the file
(NOT IMPLEMENTED YET) Save the file opened before with Open() (modifications of tags)
0 | failed | |
1 | suceed |
void MediaInfoLib::MediaInfo::Close | ( | ) |
Close a file.
Close a file opened before with Open() (without saving)
String MediaInfoLib::MediaInfo::Inform | ( | size_t | Reserved = 0 |
) |
Get all details about a file.
Get all details about a file in one string
String MediaInfoLib::MediaInfo::Get | ( | stream_t | StreamKind, | |
size_t | StreamNumber, | |||
size_t | Parameter, | |||
info_t | InfoKind = Info_Text | |||
) |
Get a piece of information about a file (parameter is an integer).
Get a piece of information about a file (parameter is an integer)
StreamKind | Kind of stream (general, video, audio...) | |
StreamNumber | Stream number in Kind of stream (first, second...) | |
Parameter | Parameter you are looking for in the stream (Codec, width, bitrate...), in integer format (first parameter, second parameter...) | |
InfoKind | Kind of information you want about the parameter (the text, the measure, the help...) |
String MediaInfoLib::MediaInfo::Get | ( | stream_t | StreamKind, | |
size_t | StreamNumber, | |||
const String & | Parameter, | |||
info_t | InfoKind = Info_Text , |
|||
info_t | SearchKind = Info_Name | |||
) |
Get a piece of information about a file (parameter is a string).
Get a piece of information about a file (parameter is a string)
StreamKind | Kind of stream (general, video, audio...) | |
StreamNumber | Stream number in Kind of stream (first, second...) | |
Parameter | Parameter you are looking for in the stream (Codec, width, bitrate...), in string format ("Codec", "Width"...) See MediaInfo::Option("Info_Parameters") to have the full list | |
InfoKind | Kind of information you want about the parameter (the text, the measure, the help...) | |
SearchKind | Where to look for the parameter |
size_t MediaInfoLib::MediaInfo::Set | ( | const String & | ToSet, | |
stream_t | StreamKind, | |||
size_t | StreamNumber, | |||
size_t | Parameter, | |||
const String & | OldValue = _T("") | |||
) |
(NOT IMPLEMENTED YET) Set a piece of information about a file (parameter is an int)
(NOT IMPLEMENTED YET) Set a piece of information about a file (parameter is an integer)
ToSet | Piece of information | |
StreamKind | Kind of stream (general, video, audio...) | |
StreamNumber | Stream number in Kind of stream (first, second...) | |
Parameter | Parameter you are looking for in the stream (Codec, width, bitrate...), in integer format (first parameter, second parameter...) | |
OldValue | The old value of the parameter if OldValue is empty and ToSet is filled: tag is added if OldValue is filled and ToSet is filled: tag is replaced if OldValue is filled and ToSet is empty: tag is deleted |
>0 | succeed | |
0 | failed |
size_t MediaInfoLib::MediaInfo::Set | ( | const String & | ToSet, | |
stream_t | StreamKind, | |||
size_t | StreamNumber, | |||
const String & | Parameter, | |||
const String & | OldValue = _T("") | |||
) |
(NOT IMPLEMENTED YET) Set information about a file (parameter is a string)
(NOT IMPLEMENTED YET) Set a piece of information about a file (parameter is a string)
ToSet | Piece of information | |
StreamKind | Kind of stream (general, video, audio...) | |
StreamNumber | Stream number in Kind of stream (first, second...) | |
Parameter | Parameter you are looking for in the stream (Codec, width, bitrate...), in string format | |
OldValue | The old value of the parameter if OldValue is empty and ToSet is filled: tag is added if OldValue is filled and ToSet is filled: tag is replaced if OldValue is filled and ToSet is empty: tag is deleted |
>0 | succeed | |
0 | failed |
size_t MediaInfoLib::MediaInfo::Output_Buffer_Get | ( | const String & | Value | ) |
Output the written size when "File_Duplicate" option is used.
Output the written size when "File_Duplicate" option is used.
Value | The unique name of the duplicated stream (begin with "memory://") |
size_t MediaInfoLib::MediaInfo::Output_Buffer_Get | ( | size_t | Pos | ) |
Output the written size when "File_Duplicate" option is used.
Output the written size when "File_Duplicate" option is used.
Value | The order of calling |
Configure or get information about MediaInfoLib
Option | The name of option | |
Value | The value of option |
static String MediaInfoLib::MediaInfo::Option_Static | ( | const String & | Option, | |
const String & | Value = _T("") | |||
) | [static] |
Configure or get information about MediaInfoLib
Option | The name of option | |
Value | The value of option |
size_t MediaInfoLib::MediaInfo::State_Get | ( | ) |
(NOT IMPLEMENTED YET) Get the state of the library
<1000 | No information is available for the file yet | |
>=1000_<5000 | Only local (into the file) information is available, getting Internet information (titles only) is no finished yet | |
5000 | (only if Internet connection is accepted) User interaction is needed (use Option() with "Internet_Title_Get") Warning: even there is only one possible, user interaction (or the software) is needed | |
>5000<=10000 | Only local (into the file) information is available, getting Internet information (all) is no finished yet | |
<10000 | Done |
size_t MediaInfoLib::MediaInfo::Count_Get | ( | stream_t | StreamKind, | |
size_t | StreamNumber = (size_t)-1 | |||
) |
Count of streams of a stream kind (StreamNumber not filled), or count of piece of information in this stream.
StreamKind | Kind of stream (general, video, audio...) | |
StreamNumber | Stream number in this kind of stream (first, second...) |