GESTimelineTestSource

GESTimelineTestSource — Render video and audio test patterns in a GESTimelineLayer

Functions

Properties

gdouble freq Read / Write / Construct
gboolean mute Read / Write / Construct
gdouble volume Read / Write / Construct
GESVideoTestPattern vpattern Read / Write / Construct

Types and Values

Object Hierarchy

    GObject
    ╰── GInitiallyUnowned
        ╰── GESTimelineObject
            ╰── GESTimelineSource
                ╰── GESTimelineTestSource

Includes

#include <ges/ges.h>

Description

Useful for testing purposes or for filling gaps between media in a GESTimelineLayer.

Functions

ges_timeline_test_source_new ()

GESTimelineTestSource *
ges_timeline_test_source_new (void);

Creates a new GESTimelineTestSource.

Returns

The newly created GESTimelineTestSource, 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 .

Parameters

nick

the nickname for which to create the GESTimelineTestSource

 

Returns

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


ges_timeline_test_source_get_vpattern ()

GESVideoTestPattern
ges_timeline_test_source_get_vpattern (GESTimelineTestSource *self);

Get the GESVideoTestPattern which is applied on self .

Parameters

Returns

The GESVideoTestPattern which is applied on self .


ges_timeline_test_source_set_vpattern ()

void
ges_timeline_test_source_set_vpattern (GESTimelineTestSource *self,
                                       GESVideoTestPattern vpattern);

Sets which video pattern to display on self .

Parameters

self

the GESTimelineTestSource to set the pattern on

 

vpattern

the GESVideoTestPattern to use on self

 

Types and Values

GESTimelineTestSource

typedef struct _GESTimelineTestSource GESTimelineTestSource;

GESTimelineTestSourceClass

typedef struct {
} GESTimelineTestSourceClass;

Property Details

The “freq” property

  “freq”                     gdouble

The frequency to generate for audio track objects.

Flags: Read / Write / Construct

Allowed values: [0,20000]

Default value: 440


The “mute” property

  “mute”                     gboolean

Whether the sound will be played or not.

Flags: Read / Write / Construct

Default value: FALSE


The “volume” property

  “volume”                   gdouble

The volume for the audio track objects.

Flags: Read / Write / Construct

Allowed values: [0,1]

Default value: 0


The “vpattern” property

  “vpattern”                 GESVideoTestPattern

Video pattern to display in video track objects.

Flags: Read / Write / Construct

Default value: 100% Black