GESVideoTransition

GESVideoTransition — implements video crossfade transition

Synopsis

#include <ges/ges.h>

                    GESVideoTransition;
GESVideoTransition * ges_video_transition_new           (void);
gboolean            ges_video_transition_set_transition_type
                                                        (GESVideoTransition *self,
                                                         GESVideoStandardTransitionType type);
GESVideoStandardTransitionType ges_video_transition_get_transition_type
                                                        (GESVideoTransition *trans);
void                ges_video_transition_set_border     (GESVideoTransition *self,
                                                         guint value);
gint                ges_video_transition_get_border     (GESVideoTransition *self);
void                ges_video_transition_set_inverted   (GESVideoTransition *self,
                                                         gboolean inverted);
gboolean            ges_video_transition_is_inverted    (GESVideoTransition *self);

Object Hierarchy

  GObject
   +----GInitiallyUnowned
         +----GESTimelineElement
               +----GESTrackElement
                     +----GESOperation
                           +----GESTransition
                                 +----GESVideoTransition

Implemented Interfaces

GESVideoTransition implements GESExtractable and GESMetaContainer.

Properties

  "border"                   guint                 : Read / Write
  "invert"                   gboolean              : Read / Write
  "transition-type"          GESVideoStandardTransitionType  : Read / Write

Description

Details

GESVideoTransition

typedef struct _GESVideoTransition GESVideoTransition;

ges_video_transition_new ()

GESVideoTransition * ges_video_transition_new           (void);

Creates a new GESVideoTransition.

Returns :

The newly created GESVideoTransition, or NULL if there was an error.

ges_video_transition_set_transition_type ()

gboolean            ges_video_transition_set_transition_type
                                                        (GESVideoTransition *self,
                                                         GESVideoStandardTransitionType type);

Sets the transition being used to type.

self :

a GESVideoTransition

type :

a GESVideoStandardTransitionType

Returns :

TRUE if the transition type was properly changed, else FALSE.

ges_video_transition_get_transition_type ()

GESVideoStandardTransitionType ges_video_transition_get_transition_type
                                                        (GESVideoTransition *trans);

Get the transition type used by trans.

trans :

a GESVideoTransition

Returns :

The transition type used by trans.

ges_video_transition_set_border ()

void                ges_video_transition_set_border     (GESVideoTransition *self,
                                                         guint value);

Set the border property of self, this value represents the border width of the transition. In case this value does not make sense for the current transition type, it is cached for later use.

self :

The GESVideoTransition to set the border to

value :

The value of the border to set on object

ges_video_transition_get_border ()

gint                ges_video_transition_get_border     (GESVideoTransition *self);

Get the border property of self, this value represents the border width of the transition.

self :

The GESVideoTransition to get the border from

Returns :

The border values of self or -1 if not meaningful (this will happen when not using a smpte transition).

ges_video_transition_set_inverted ()

void                ges_video_transition_set_inverted   (GESVideoTransition *self,
                                                         gboolean inverted);

Set the invert property of self, this value represents the direction of the transition. In case this value does not make sense for the current transition type, it is cached for later use.

self :

The GESVideoTransition to set invert on

inverted :

TRUE if the transition should be inverted FALSE otherwise

ges_video_transition_is_inverted ()

gboolean            ges_video_transition_is_inverted    (GESVideoTransition *self);

Get the invert property of self, this value represents the direction of the transition.

self :

The GESVideoTransition to get the inversion from

Returns :

The invert value of self

Property Details

The "border" property

  "border"                   guint                 : Read / Write

This value represents the border width of the transition.

Default value: 0


The "invert" property

  "invert"                   gboolean              : Read / Write

This value represents the direction of the transition.

Default value: FALSE


The "transition-type" property

  "transition-type"          GESVideoStandardTransitionType  : Read / Write

The type of the transition.

Default value: Crossfade between two clips