mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-08 16:35:40 +00:00
ges-timeline-object: Add convenience macros
This commit is contained in:
parent
23d2bdcca1
commit
733aebfb1c
2 changed files with 37 additions and 0 deletions
|
@ -136,6 +136,10 @@ GES_TYPE_TIMELINE_LAYER
|
|||
GESTimelineObject
|
||||
GESTimelineObjectClass
|
||||
FillTrackObjectFunc
|
||||
GES_TIMELINE_OBJECT_DURATION
|
||||
GES_TIMELINE_OBJECT_INPOINT
|
||||
GES_TIMELINE_OBJECT_PRIORITY
|
||||
GES_TIMELINE_OBJECT_START
|
||||
ges_timeline_object_set_inpoint
|
||||
ges_timeline_object_set_start
|
||||
ges_timeline_object_set_duration
|
||||
|
|
|
@ -61,6 +61,39 @@ typedef gboolean (*FillTrackObjectFunc) (GESTimelineObject * object,
|
|||
GESTrackObject * trobject,
|
||||
GstElement * gnlobj);
|
||||
|
||||
|
||||
/**
|
||||
* GES_TIMELINE_OBJECT_START:
|
||||
* @obj: a #GESTimelineObject
|
||||
*
|
||||
* The start position of the object (in nanoseconds).
|
||||
*/
|
||||
#define GES_TIMELINE_OBJECT_START(obj) (((GESTimelineObject*)obj)->start)
|
||||
|
||||
/**
|
||||
* GES_TIMELINE_OBJECT_INPOINT:
|
||||
* @obj: a #GESTimelineObject
|
||||
*
|
||||
* The in-point of the object (in nanoseconds).
|
||||
*/
|
||||
#define GES_TIMELINE_OBJECT_INPOINT(obj) (((GESTimelineObject*)obj)->inpoint)
|
||||
|
||||
/**
|
||||
* GES_TIMELINE_OBJECT_DURATION:
|
||||
* @obj: a #GESTimelineObject
|
||||
*
|
||||
* The duration position of the object (in nanoseconds).
|
||||
*/
|
||||
#define GES_TIMELINE_OBJECT_DURATION(obj) (((GESTimelineObject*)obj)->duration)
|
||||
|
||||
/**
|
||||
* GES_TIMELINE_OBJECT_PRIORITY:
|
||||
* @obj: a #GESTimelineObject
|
||||
*
|
||||
* The priority of the object (in nanoseconds).
|
||||
*/
|
||||
#define GES_TIMELINE_OBJECT_PRIORITY(obj) (((GESTimelineObject*)obj)->priority)
|
||||
|
||||
/**
|
||||
* GESTimelineObject:
|
||||
* @layer: the #GESTImelineLayer where this object is being used.
|
||||
|
|
Loading…
Reference in a new issue