2023-10-31 09:16:44 CST W44D2

This commit is contained in:
aggresss
2023-10-31 09:16:44 +08:00
parent f00ecdba54
commit 05345f7cdc
100 changed files with 3340 additions and 3229 deletions

View File

@@ -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)))
}