mirror of
https://github.com/zoriya/go-mediainfo.git
synced 2026-06-07 12:14:49 +00:00
Add GetI
This commit is contained in:
@@ -69,6 +69,10 @@ func (file *File) Get(streamKind StreamKind, streamNumber int, parameter string,
|
||||
return C.GoString(C.Get(file.handle, C.MediaInfo_stream_C(streamKind), C.size_t(streamNumber), cParameter, C.MediaInfo_info_C(infoKind), C.MediaInfo_info_C(0)))
|
||||
}
|
||||
|
||||
func (file *File) GetI(streamKind StreamKind, streamNumber int, parameter int, infoKind InfoKind) string {
|
||||
return C.GoString(C.GetI(file.handle, C.MediaInfo_stream_C(streamKind), C.size_t(streamNumber), C.size_t(parameter), C.MediaInfo_info_C(infoKind)))
|
||||
}
|
||||
|
||||
func (file *File) Parameter(streamKind StreamKind, streamNumber int, parameter string) string {
|
||||
return file.Get(streamKind, streamNumber, parameter, InfoText)
|
||||
}
|
||||
|
||||
@@ -50,6 +50,11 @@ const char *Get(void *handle, MediaInfo_stream_C streamKind, size_t StreamNumber
|
||||
return toChar(MediaInfo_Get(handle, streamKind, StreamNumber, toWchar(Parameter), KindOfInfo, KindOfSearch));
|
||||
}
|
||||
|
||||
const char *GetI(void *handle, MediaInfo_stream_C streamKind, size_t StreamNumber, unsigned long Parameter, MediaInfo_info_C KindOfInfo)
|
||||
{
|
||||
return toChar(MediaInfo_GetI(handle, streamKind, StreamNumber, Parameter, KindOfInfo));
|
||||
}
|
||||
|
||||
const char *Option(void *handle, char *Parameter, char *Value)
|
||||
{
|
||||
return toChar(MediaInfo_Option(handle, toWchar(Parameter), toWchar(Value)));
|
||||
|
||||
Reference in New Issue
Block a user