mirror of
https://github.com/go-gst/go-gst.git
synced 2025-10-06 16:36:51 +08:00
deprecate old gst functions and types
This commit is contained in:
@@ -24,10 +24,14 @@ const (
|
||||
InterpolationModeCubicMonotonic InterpolationMode = 3 // GST_INTERPOLATION_MODE_CUBIC_MONOTONIC
|
||||
)
|
||||
|
||||
//
|
||||
// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead.
|
||||
func (cs *InterpolationControlSource) Instance() *C.GstControlSource {
|
||||
return C.toGstControlSource(cs.Unsafe())
|
||||
}
|
||||
|
||||
//
|
||||
// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead.
|
||||
func NewInterpolationControlSource() *InterpolationControlSource {
|
||||
cCs := C.gst_interpolation_control_source_new()
|
||||
|
||||
@@ -36,14 +40,20 @@ func NewInterpolationControlSource() *InterpolationControlSource {
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead.
|
||||
func (cs *InterpolationControlSource) SetInterpolationMode(mode InterpolationMode) {
|
||||
cs.SetArg("mode", strconv.Itoa(int(mode)))
|
||||
}
|
||||
|
||||
//
|
||||
// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead.
|
||||
func (cs *InterpolationControlSource) SetTimedValue(time ClockTime, value float64) bool {
|
||||
return gobool(C.gst_timed_value_control_source_set(C.toGstTimedValueControlSource(cs.Unsafe()), C.GstClockTime(time), C.double(value)))
|
||||
}
|
||||
|
||||
//
|
||||
// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead.
|
||||
func (cs *InterpolationControlSource) UnsetAll() {
|
||||
C.gst_timed_value_control_source_unset_all(C.toGstTimedValueControlSource(cs.Unsafe()))
|
||||
}
|
||||
|
Reference in New Issue
Block a user