GESTrackVideoTestSource

GESTrackVideoTestSource — produce solid colors and patterns

Synopsis

#include <ges/ges.h>

                    GESTrackVideoTestSource;
GESTrackVideoTestSource *  ges_track_video_test_source_new
                                                        (void);
GESTimelineTestSource *  ges_timeline_test_source_new_for_nick
                                                        (gchar *nick);
void                ges_track_video_test_source_set_pattern
                                                        (GESTrackVideoTestSource *self,
                                                         GESVideoTestPattern pattern);
void                ges_timeline_test_source_set_mute   (GESTimelineTestSource *self,
                                                         gboolean mute);
void                ges_timeline_test_source_set_frequency
                                                        (GESTimelineTestSource *self,
                                                         gdouble freq);
void                ges_timeline_test_source_set_volume (GESTimelineTestSource *self,
                                                         gdouble volume);
GESVideoTestPattern  ges_track_video_test_source_get_pattern
                                                        (GESTrackVideoTestSource *source);
gboolean            ges_timeline_test_source_is_muted   (GESTimelineTestSource *self);
gdouble             ges_timeline_test_source_get_frequency
                                                        (GESTimelineTestSource *self);
gdouble             ges_timeline_test_source_get_volume (GESTimelineTestSource *self);

Object Hierarchy

  GObject
   +----GInitiallyUnowned
         +----GESTrackObject
               +----GESTrackSource
                     +----GESTrackVideoTestSource

Description

Details

GESTrackVideoTestSource

typedef struct _GESTrackVideoTestSource GESTrackVideoTestSource;

ges_track_video_test_source_new ()

GESTrackVideoTestSource *  ges_track_video_test_source_new
                                                        (void);

Creates a new GESTrackVideoTestSource.

Returns :

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

ges_timeline_test_source_new_for_nick ()

GESTimelineTestSource *  ges_timeline_test_source_new_for_nick
                                                        (gchar *nick);

Creates a new GESTimelineTestSource for the provided nick.

nick :

the nickname for which to create the GESTimelineTestSource

Returns :

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

ges_track_video_test_source_set_pattern ()

void                ges_track_video_test_source_set_pattern
                                                        (GESTrackVideoTestSource *self,
                                                         GESVideoTestPattern pattern);

Sets the source to use the given pattern.


ges_timeline_test_source_set_mute ()

void                ges_timeline_test_source_set_mute   (GESTimelineTestSource *self,
                                                         gboolean mute);

Sets whether the audio track of this timeline object is muted or not.

self :

the GESTimelineTestSource on which to mute or unmute the audio track

mute :

TRUE to mute the audio track, FALSE to unmute it

ges_timeline_test_source_set_frequency ()

void                ges_timeline_test_source_set_frequency
                                                        (GESTimelineTestSource *self,
                                                         gdouble freq);

Sets the frequency to generate. See audiotestsrc element.

self :

the GESTimelineTestSource to set the frequency on

freq :

the frequency you want to use on self

ges_timeline_test_source_set_volume ()

void                ges_timeline_test_source_set_volume (GESTimelineTestSource *self,
                                                         gdouble volume);

Sets the volume of the test audio signal.

self :

the GESTimelineTestSource to set the volume on

volume :

the volume of the audio signal you want to use on self

ges_track_video_test_source_get_pattern ()

GESVideoTestPattern  ges_track_video_test_source_get_pattern
                                                        (GESTrackVideoTestSource *source);

Get the video pattern used by the source.

source :

a GESVideoTestPattern

Returns :

The video pattern used by the source.

ges_timeline_test_source_is_muted ()

gboolean            ges_timeline_test_source_is_muted   (GESTimelineTestSource *self);

Let you know if the audio track of self is muted or not.

self :

a GESTimelineTestSource

Returns :

Whether the audio track of self is muted or not.

ges_timeline_test_source_get_frequency ()

gdouble             ges_timeline_test_source_get_frequency
                                                        (GESTimelineTestSource *self);

Get the frequency self generates.

self :

a GESTimelineTestSource

Returns :

The frequency self generates. See audiotestsrc element.

ges_timeline_test_source_get_volume ()

gdouble             ges_timeline_test_source_get_volume (GESTimelineTestSource *self);

Get the volume of the test audio signal applied on self.

self :

a GESTimelineTestSource

Returns :

The volume of the test audio signal applied on self.