mirror of
https://github.com/qrtc/ffmpeg-dev-go.git
synced 2025-10-27 17:30:28 +08:00
2023-10-31 09:16:44 CST W44D2
This commit is contained in:
@@ -86,6 +86,7 @@ const (
|
||||
AV_OPT_TYPE_COLOR = AVOptionType(C.AV_OPT_TYPE_COLOR)
|
||||
AV_OPT_TYPE_CHANNEL_LAYOUT = AVOptionType(C.AV_OPT_TYPE_CHANNEL_LAYOUT)
|
||||
AV_OPT_TYPE_BOOL = AVOptionType(C.AV_OPT_TYPE_BOOL)
|
||||
AV_OPT_TYPE_CHLAYOUT = AVOptionType(C.AV_OPT_TYPE_CHLAYOUT)
|
||||
)
|
||||
|
||||
// AVOption
|
||||
@@ -507,14 +508,6 @@ func AvOptChildNext(obj, prev CVoidPointer) unsafe.Pointer {
|
||||
return C.av_opt_child_next(VoidPointer(obj), VoidPointer(prev))
|
||||
}
|
||||
|
||||
// Deprecated: Use AvOptChildClassIterate instead.
|
||||
//
|
||||
// AvOptChildClassNext
|
||||
func AvOptChildClassNext(parent, prev *AVClass) *AVClass {
|
||||
return (*AVClass)(C.av_opt_child_class_next((*C.struct_AVClass)(parent),
|
||||
(*C.struct_AVClass)(prev)))
|
||||
}
|
||||
|
||||
// AvOptChildClassIterate iterates over potential AVOptions-enabled children of parent.
|
||||
func AvOptChildClassIterate(parent *AVClass, iter CVoidPointerPointer) *AVClass {
|
||||
return (*AVClass)(C.av_opt_child_class_iterate((*C.struct_AVClass)(parent), VoidPointerPointer(iter)))
|
||||
@@ -594,6 +587,8 @@ func AvOptSetVideoRate(obj CVoidPointer, name string, val AVRational, searchFlag
|
||||
(C.struct_AVRational)(val), (C.int)(searchFlags)))
|
||||
}
|
||||
|
||||
// Deprecated: No use.
|
||||
//
|
||||
// AvOptSetChannelLayout
|
||||
func AvOptSetChannelLayout(obj CVoidPointer, name string, chLayout int64, searchFlags int32) int32 {
|
||||
namePtr, nameFunc := StringCasting(name)
|
||||
@@ -602,6 +597,14 @@ func AvOptSetChannelLayout(obj CVoidPointer, name string, chLayout int64, search
|
||||
(C.int64_t)(chLayout), (C.int)(searchFlags)))
|
||||
}
|
||||
|
||||
// AvOptSetChlayout
|
||||
func AvOptSetChlayout(obj CVoidPointer, name string, layout *AVChannelLayout, searchFlags int32) int32 {
|
||||
namePtr, nameFunc := StringCasting(name)
|
||||
defer nameFunc()
|
||||
return (int32)(C.av_opt_set_chlayout(VoidPointer(obj), (*C.char)(namePtr),
|
||||
(*C.struct_AVChannelLayout)(layout), (C.int)(searchFlags)))
|
||||
}
|
||||
|
||||
// AvOptSetDictVal
|
||||
func AvOptSetDictVal(obj CVoidPointer, name string, val *AVDictionary, searchFlags int32) int32 {
|
||||
namePtr, nameFunc := StringCasting(name)
|
||||
@@ -688,6 +691,8 @@ func AvOptGetVideoRate(obj CVoidPointer, name string, searchFlags int32, outVal
|
||||
(C.int)(searchFlags), (*C.struct_AVRational)(outVal)))
|
||||
}
|
||||
|
||||
// Deprecated: No use.
|
||||
//
|
||||
// AvOptGetChannelLayout
|
||||
func AvOptGetChannelLayout(obj CVoidPointer, name string, searchFlags int32, outVal *int64) int32 {
|
||||
namePtr, nameFunc := StringCasting(name)
|
||||
@@ -696,6 +701,14 @@ func AvOptGetChannelLayout(obj CVoidPointer, name string, searchFlags int32, out
|
||||
(C.int)(searchFlags), (*C.int64_t)(outVal)))
|
||||
}
|
||||
|
||||
// AvOptGetChlayout
|
||||
func AvOptGetChlayout(obj CVoidPointer, name string, searchFlags int32, layout *AVChannelLayout) int32 {
|
||||
namePtr, nameFunc := StringCasting(name)
|
||||
defer nameFunc()
|
||||
return (int32)(C.av_opt_get_chlayout(VoidPointer(obj), (*C.char)(namePtr),
|
||||
(C.int)(searchFlags), (*C.struct_AVChannelLayout)(layout)))
|
||||
}
|
||||
|
||||
// AvOptGetDictVal
|
||||
func AvOptGetDictVal(obj CVoidPointer, name string, searchFlags int32, outVal **AVDictionary) int32 {
|
||||
namePtr, nameFunc := StringCasting(name)
|
||||
|
||||
Reference in New Issue
Block a user