mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 04:36:20 +00:00
video-transition: Make smpte props children properties
And deprecate old style accessors. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-editing-services/-/merge_requests/207>
This commit is contained in:
parent
0e55be92a4
commit
27bafd4b81
2 changed files with 18 additions and 4 deletions
|
@ -167,6 +167,7 @@ ges_video_transition_class_init (GESVideoTransitionClass * klass)
|
||||||
*
|
*
|
||||||
* The #GESVideoStandardTransitionType currently applied on the object
|
* The #GESVideoStandardTransitionType currently applied on the object
|
||||||
*
|
*
|
||||||
|
* Deprecated:1.20: Use ges_timeline_element_[sg]et_child_property instead.
|
||||||
*/
|
*/
|
||||||
properties[PROP_TRANSITION_TYPE] =
|
properties[PROP_TRANSITION_TYPE] =
|
||||||
g_param_spec_enum ("transition-type", "Transition type",
|
g_param_spec_enum ("transition-type", "Transition type",
|
||||||
|
@ -180,6 +181,7 @@ ges_video_transition_class_init (GESVideoTransitionClass * klass)
|
||||||
*
|
*
|
||||||
* This value represents the direction of the transition.
|
* This value represents the direction of the transition.
|
||||||
*
|
*
|
||||||
|
* Deprecated:1.20: Use ges_timeline_element_[sg]et_child_property instead.
|
||||||
*/
|
*/
|
||||||
properties[PROP_INVERT] =
|
properties[PROP_INVERT] =
|
||||||
g_param_spec_boolean ("invert", "Invert",
|
g_param_spec_boolean ("invert", "Invert",
|
||||||
|
@ -334,6 +336,7 @@ ges_video_transition_create_element (GESTrackElement * object)
|
||||||
GstPad *sinka_target, *sinkb_target, *src_target, *sinka, *sinkb, *src;
|
GstPad *sinka_target, *sinkb_target, *src_target, *sinka, *sinkb, *src;
|
||||||
GESVideoTransition *self;
|
GESVideoTransition *self;
|
||||||
GESVideoTransitionPrivate *priv;
|
GESVideoTransitionPrivate *priv;
|
||||||
|
const gchar *smpte_properties[] = { "invert", "border", NULL };
|
||||||
|
|
||||||
self = GES_VIDEO_TRANSITION (object);
|
self = GES_VIDEO_TRANSITION (object);
|
||||||
priv = self->priv;
|
priv = self->priv;
|
||||||
|
@ -418,6 +421,9 @@ ges_video_transition_create_element (GESTrackElement * object)
|
||||||
|
|
||||||
priv->pending_type = GES_VIDEO_STANDARD_TRANSITION_TYPE_NONE;
|
priv->pending_type = GES_VIDEO_STANDARD_TRANSITION_TYPE_NONE;
|
||||||
|
|
||||||
|
ges_track_element_add_children_props (GES_TRACK_ELEMENT (self),
|
||||||
|
priv->smpte, NULL, NULL, smpte_properties);
|
||||||
|
|
||||||
return topbin;
|
return topbin;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -565,6 +571,8 @@ ges_video_transition_set_transition_type_internal (GESVideoTransition
|
||||||
* the border width of the transition. In case this value does
|
* the border width of the transition. In case this value does
|
||||||
* not make sense for the current transition type, it is cached
|
* not make sense for the current transition type, it is cached
|
||||||
* for later use.
|
* for later use.
|
||||||
|
*
|
||||||
|
* Deprecated:1.20: Use ges_timeline_element_set_child_property instead.
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
ges_video_transition_set_border (GESVideoTransition * self, guint value)
|
ges_video_transition_set_border (GESVideoTransition * self, guint value)
|
||||||
|
@ -583,6 +591,8 @@ ges_video_transition_set_border (GESVideoTransition * self, guint value)
|
||||||
*
|
*
|
||||||
* Returns: The border values of @self or -1 if not meaningful
|
* Returns: The border values of @self or -1 if not meaningful
|
||||||
* (this will happen when not using a smpte transition).
|
* (this will happen when not using a smpte transition).
|
||||||
|
*
|
||||||
|
* Deprecated:1.20: Use ges_timeline_element_get_child_property instead.
|
||||||
*/
|
*/
|
||||||
gint
|
gint
|
||||||
ges_video_transition_get_border (GESVideoTransition * self)
|
ges_video_transition_get_border (GESVideoTransition * self)
|
||||||
|
@ -607,6 +617,8 @@ ges_video_transition_get_border (GESVideoTransition * self)
|
||||||
* the direction of the transition. In case this value does
|
* the direction of the transition. In case this value does
|
||||||
* not make sense for the current transition type, it is cached
|
* not make sense for the current transition type, it is cached
|
||||||
* for later use.
|
* for later use.
|
||||||
|
*
|
||||||
|
* Deprecated:1.20: Use ges_timeline_element_set_child_property instead.
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
ges_video_transition_set_inverted (GESVideoTransition * self, gboolean inverted)
|
ges_video_transition_set_inverted (GESVideoTransition * self, gboolean inverted)
|
||||||
|
@ -624,6 +636,8 @@ ges_video_transition_set_inverted (GESVideoTransition * self, gboolean inverted)
|
||||||
* the direction of the transition.
|
* the direction of the transition.
|
||||||
*
|
*
|
||||||
* Returns: The invert value of @self
|
* Returns: The invert value of @self
|
||||||
|
*
|
||||||
|
* Deprecated:1.20: Use ges_timeline_element_get_child_property instead.
|
||||||
*/
|
*/
|
||||||
gboolean
|
gboolean
|
||||||
ges_video_transition_is_inverted (GESVideoTransition * self)
|
ges_video_transition_is_inverted (GESVideoTransition * self)
|
||||||
|
|
|
@ -67,16 +67,16 @@ gboolean ges_video_transition_set_transition_type (GESVideoTransition * self,
|
||||||
GES_API GESVideoStandardTransitionType
|
GES_API GESVideoStandardTransitionType
|
||||||
ges_video_transition_get_transition_type (GESVideoTransition * trans);
|
ges_video_transition_get_transition_type (GESVideoTransition * trans);
|
||||||
|
|
||||||
GES_API
|
GES_DEPRECATED_FOR(ges_timeline_element_set_children_properties)
|
||||||
void ges_video_transition_set_border (GESVideoTransition * self,
|
void ges_video_transition_set_border (GESVideoTransition * self,
|
||||||
guint value);
|
guint value);
|
||||||
GES_API
|
GES_DEPRECATED_FOR(ges_timeline_element_get_children_properties)
|
||||||
gint ges_video_transition_get_border (GESVideoTransition * self);
|
gint ges_video_transition_get_border (GESVideoTransition * self);
|
||||||
|
|
||||||
GES_API
|
GES_DEPRECATED_FOR(ges_timeline_element_set_children_properties)
|
||||||
void ges_video_transition_set_inverted (GESVideoTransition * self,
|
void ges_video_transition_set_inverted (GESVideoTransition * self,
|
||||||
gboolean inverted);
|
gboolean inverted);
|
||||||
GES_API
|
GES_DEPRECATED_FOR(ges_timeline_element_get_children_properties)
|
||||||
gboolean ges_video_transition_is_inverted (GESVideoTransition * self);
|
gboolean ges_video_transition_is_inverted (GESVideoTransition * self);
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
Loading…
Reference in a new issue