mirror of
https://github.com/qrtc/ffmpeg-dev-go.git
synced 2025-10-19 13:54:58 +08:00
2023-11-05 09:24:57 CST W45D0
This commit is contained in:
@@ -193,12 +193,12 @@ func AvLogOnce(avcl CVoidPointer, initialLevel, subsequentLevel int32, state *in
|
||||
|
||||
// NONEED: av_vlog
|
||||
|
||||
// AvLogGetLevel gets the current log level
|
||||
// AvLogGetLevel gets the current log level.
|
||||
func AvLogGetLevel() int32 {
|
||||
return (int32)(C.av_log_get_level())
|
||||
}
|
||||
|
||||
// AvLogSetLevel sets the log level
|
||||
// AvLogSetLevel sets the log level.
|
||||
func AvLogSetLevel(level int32) {
|
||||
C.av_log_set_level((C.int)(level))
|
||||
}
|
||||
@@ -206,14 +206,14 @@ func AvLogSetLevel(level int32) {
|
||||
// typedef void (*av_log_callback_func)(void*, int, const char*, va_list);
|
||||
type AVLogCallbackFunc = C.av_log_callback_func
|
||||
|
||||
// AvLogSetCallback sets the logging callback
|
||||
// AvLogSetCallback sets the logging callback.
|
||||
func AvLogSetCallback(f AVLogCallbackFunc) {
|
||||
C.av_log_set_callback(f)
|
||||
}
|
||||
|
||||
// NONEED: av_log_default_callback
|
||||
|
||||
// AvDefaultItemName returns the context name
|
||||
// AvDefaultItemName returns the context name.
|
||||
func AvDefaultItemName(ctx CVoidPointer) string {
|
||||
return C.GoString(C.av_default_item_name(VoidPointer(ctx)))
|
||||
}
|
||||
|
Reference in New Issue
Block a user