mirror of
https://github.com/qrtc/ffmpeg-dev-go.git
synced 2025-10-11 02:20:05 +08:00
2023-10-31 09:16:44 CST W44D2
This commit is contained in:
@@ -132,27 +132,6 @@ func (cls *AVClass) GetChildNextAddr() *AvClassChildNextFunc {
|
||||
return (*AvClassChildNextFunc)(&cls.child_next)
|
||||
}
|
||||
|
||||
// Deprecated: No use.
|
||||
//
|
||||
// GetChildClassNext gets `AVClass.child_class_next` value.
|
||||
func (cls *AVClass) GetChildClassNext() AvClassChildClassNextFunc {
|
||||
return (AvClassChildClassNextFunc)(cls.child_class_next)
|
||||
}
|
||||
|
||||
// Deprecated: No use.
|
||||
//
|
||||
// SetChildClassNext sets `AVClass.child_class_next` value.
|
||||
func (cls *AVClass) SetChildClassNext(v AvClassChildClassNextFunc) {
|
||||
cls.child_class_next = (C.av_class_child_class_next_func)(v)
|
||||
}
|
||||
|
||||
// Deprecated: No use.
|
||||
//
|
||||
// GetChildClassNextAddr gets `AVClass.child_class_next` address.
|
||||
func (cls *AVClass) GetChildClassNextAddr() *AvClassChildClassNextFunc {
|
||||
return (*AvClassChildClassNextFunc)(&cls.child_class_next)
|
||||
}
|
||||
|
||||
// GetCategory gets `AVClass.category` value.
|
||||
func (cls *AVClass) GetCategory() AVClassCategory {
|
||||
return (AVClassCategory)(cls.category)
|
||||
@@ -199,27 +178,27 @@ 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))
|
||||
C.av_log_set_level((C.int)(level))
|
||||
}
|
||||
|
||||
// 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