mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
videotransition: Some explanations about the invert property
This commit is contained in:
parent
28585bc87a
commit
a8f32d2e48
1 changed files with 7 additions and 2 deletions
|
@ -29,6 +29,10 @@
|
||||||
G_DEFINE_TYPE (GESTrackVideoTransition, ges_track_video_transition,
|
G_DEFINE_TYPE (GESTrackVideoTransition, ges_track_video_transition,
|
||||||
GES_TYPE_TRACK_TRANSITION);
|
GES_TYPE_TRACK_TRANSITION);
|
||||||
|
|
||||||
|
/* The description of the smpte transitions type correspond to those transition types
|
||||||
|
* being inverted, so in GES invert == !smptealpha.invert */
|
||||||
|
#define DEFAULT_SMPTE_INVERT TRUE
|
||||||
|
|
||||||
static inline void
|
static inline void
|
||||||
ges_track_video_transition_set_border_internal (GESTrackVideoTransition * self,
|
ges_track_video_transition_set_border_internal (GESTrackVideoTransition * self,
|
||||||
guint border);
|
guint border);
|
||||||
|
@ -445,8 +449,9 @@ add_smpte_to_bin (GstPad * sink, GstElement * smptealpha,
|
||||||
{
|
{
|
||||||
GstPad *peer, *sinkpad;
|
GstPad *peer, *sinkpad;
|
||||||
|
|
||||||
g_object_set (smptealpha,
|
g_object_set (smptealpha, "type", (gint) priv->pending_type,
|
||||||
"type", (gint) priv->pending_type, "invert", (gboolean) TRUE, NULL);
|
"invert", (gboolean) DEFAULT_SMPTE_INVERT, NULL);
|
||||||
|
|
||||||
gst_bin_add (GST_BIN (priv->topbin), smptealpha);
|
gst_bin_add (GST_BIN (priv->topbin), smptealpha);
|
||||||
gst_element_sync_state_with_parent (smptealpha);
|
gst_element_sync_state_with_parent (smptealpha);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue