GESCustomSourceClip

GESCustomSourceClip — Convenience GESSourceClip

Synopsis

#include <ges/ges.h>

                    GESCustomSourceClip;
gboolean            (*GESFillTrackElementUserFunc)      (GESClip *object,
                                                         GESTrackElement *track_element,
                                                         GstElement *gnlobj,
                                                         gpointer user_data);
GESCustomSourceClip * ges_custom_source_clip_new        (GESFillTrackElementUserFunc func,
                                                         gpointer user_data);

Object Hierarchy

  GObject
   +----GInitiallyUnowned
         +----GESTimelineElement
               +----GESClip
                     +----GESSourceClip
                           +----GESCustomSourceClip

Implemented Interfaces

GESCustomSourceClip implements GESExtractable and GESMetaContainer.

Properties

  "fill-func"                gpointer              : Write / Construct Only
  "user-data"                gpointer              : Write / Construct Only

Description

GESCustomSourceClip allows creating GESSourceClip(s) without the need to subclass.

Its usage should be limited to testing and prototyping purposes.

To instanciate a asset to extract GESCustomSourceClip-s the expected ID is: 'PointerToFuncAsInt!PointerToUDataAsInt'

You should use the ges_asset_custom_source_clip_new helper to create a new GESAsset letting you extract GESCustomSourceClip.

Details

GESCustomSourceClip

typedef struct _GESCustomSourceClip GESCustomSourceClip;

Debugging custom timeline source


GESFillTrackElementUserFunc ()

gboolean            (*GESFillTrackElementUserFunc)      (GESClip *object,
                                                         GESTrackElement *track_element,
                                                         GstElement *gnlobj,
                                                         gpointer user_data);

A function that will be called when the GNonLin object of a corresponding track element needs to be filled.

The implementer of this function shall add the proper GstElement to gnlobj using gst_bin_add().

object :

the GESClip controlling the track element

track_element :

the GESTrackElement

gnlobj :

the GNonLin object that needs to be filled.

user_data :

the gpointer to optional user data

Returns :

TRUE if the implementer succesfully filled the gnlobj, else FALSE.

ges_custom_source_clip_new ()

GESCustomSourceClip * ges_custom_source_clip_new        (GESFillTrackElementUserFunc func,
                                                         gpointer user_data);

Creates a new GESCustomSourceClip.

func :

The GESFillTrackElementUserFunc that will be used to fill the track objects. [scope notified]

user_data :

a gpointer that will be used when func is called. [closure]

Returns :

The new GESCustomSourceClip.

Property Details

The "fill-func" property

  "fill-func"                gpointer              : Write / Construct Only

The function pointer to create the TrackElement content


The "user-data" property

  "user-data"                gpointer              : Write / Construct Only

The user data that will be passed