Package net.filebot.mediainfo
Interface MediaInfoLibrary
- All Superinterfaces:
com.sun.jna.Library
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.sun.jna.Library
com.sun.jna.Library.Handler
-
Field Summary
FieldsFields inherited from interface com.sun.jna.Library
OPTION_ALLOW_OBJECTS, OPTION_CALLING_CONVENTION, OPTION_CLASSLOADER, OPTION_FUNCTION_MAPPER, OPTION_INVOCATION_MAPPER, OPTION_OPEN_FLAGS, OPTION_STRING_ENCODING, OPTION_STRUCTURE_ALIGNMENT, OPTION_SYMBOL_PROVIDER, OPTION_TYPE_MAPPER
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Close
(com.sun.jna.Pointer handle) Close a file opened before with Open().int
Count_Get
(com.sun.jna.Pointer handle, int streamKind, int streamNumber) Count of streams of a stream kind (StreamNumber not filled), or count of piece of information in this stream.void
Delete
(com.sun.jna.Pointer handle) Dispose of a handle created with New().com.sun.jna.WString
Get
(com.sun.jna.Pointer handle, int streamKind, int streamNumber, com.sun.jna.WString parameter, int infoKind, int searchKind) Get a piece of information about a file (parameter is a string).com.sun.jna.WString
GetI
(com.sun.jna.Pointer handle, int streamKind, int streamNumber, int parameterIndex, int infoKind) Get a piece of information about a file (parameter is an integer).com.sun.jna.WString
Inform
(com.sun.jna.Pointer handle) Get all details about a file.com.sun.jna.Pointer
New()
Create a new handle.int
Open
(com.sun.jna.Pointer handle, com.sun.jna.WString file) Open a file and collect information about it (technical information and tags).int
Open_Buffer_Continue
(com.sun.jna.Pointer handle, com.sun.jna.Pointer buffer, int size) Open_Buffer_Continuelong
Open_Buffer_Continue_GoTo_Get
(com.sun.jna.Pointer handle) Open_Buffer_Continue_GoTo_Getint
Open_Buffer_Finalize
(com.sun.jna.Pointer handle) Open_Buffer_Finalizeint
Open_Buffer_Init
(com.sun.jna.Pointer handle, long length, long offset) Open_Buffer_Initcom.sun.jna.WString
Option
(com.sun.jna.Pointer handle, com.sun.jna.WString option, com.sun.jna.WString value) Configure or get information about MediaInfo.
-
Field Details
-
LIB_ZEN
-
INSTANCE
-
-
Method Details
-
New
com.sun.jna.Pointer New()Create a new handle.- Returns:
- handle
-
Open
Open a file and collect information about it (technical information and tags).- Parameters:
handle
-file
- full name of the file to open- Returns:
- 1 if file was opened, 0 if file was not not opened
-
Option
com.sun.jna.WString Option(com.sun.jna.Pointer handle, com.sun.jna.WString option, com.sun.jna.WString value) Configure or get information about MediaInfo.- Parameters:
handle
-option
- The name of optionvalue
- The value of option- Returns:
- Depends on the option: by default "" (nothing) means No, other means Yes
-
Inform
Get all details about a file.- Parameters:
handle
-- Returns:
- All details about a file in one string
-
Get
com.sun.jna.WString Get(com.sun.jna.Pointer handle, int streamKind, int streamNumber, com.sun.jna.WString parameter, int infoKind, int searchKind) Get a piece of information about a file (parameter is a string).- Parameters:
handle
-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"...)infoKind
- Kind of information you want about the parameter (the text, the measure, the help...)searchKind
- Where to look for the parameter- Returns:
- a string about information you search, an empty string if there is a problem
-
GetI
com.sun.jna.WString GetI(com.sun.jna.Pointer handle, int streamKind, int streamNumber, int parameterIndex, int infoKind) Get a piece of information about a file (parameter is an integer).- Parameters:
handle
-streamKind
- Kind of stream (general, video, audio...)streamNumber
- Stream number in Kind of stream (first, second...)infoKind
- Kind of information you want about the parameter (the text, the measure, the help...)parameter
- Parameter you are looking for in the stream (Codec, width, bitrate...), in integer format (first parameter, second parameter...)- Returns:
- a string about information you search, an empty string if there is a problem
-
Count_Get
Count of streams of a stream kind (StreamNumber not filled), or count of piece of information in this stream.- Parameters:
handle
-streamKind
- Kind of stream (general, video, audio...)streamNumber
- Stream number in this kind of stream (first, second...)- Returns:
- number of streams of the given stream kind
-
Close
Close a file opened before with Open().- Parameters:
handle
-
-
Delete
Dispose of a handle created with New().- Parameters:
handle
-
-
Open_Buffer_Init
Open_Buffer_Init -
Open_Buffer_Continue
Open_Buffer_Continue -
Open_Buffer_Continue_GoTo_Get
Open_Buffer_Continue_GoTo_Get -
Open_Buffer_Finalize
Open_Buffer_Finalize
-