mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-22 05:56:31 +00:00
ges: Create assets for all GESTimelineStandardTransition on ges_init()
+ Add some testsuite
This commit is contained in:
parent
38bcd59bfa
commit
07ceb2ca40
3 changed files with 23 additions and 0 deletions
|
@ -551,6 +551,7 @@ ges_asset_cache_init (void)
|
|||
NULL, (GDestroyNotify) g_hash_table_unref);
|
||||
|
||||
_init_formatter_assets ();
|
||||
_init_standard_transition_assets ();
|
||||
}
|
||||
|
||||
gboolean
|
||||
|
|
|
@ -24,6 +24,10 @@
|
|||
*/
|
||||
|
||||
#include "ges-enums.h"
|
||||
#include "ges-internal.h"
|
||||
#include "ges-asset.h"
|
||||
#include "ges-meta-container.h"
|
||||
#include "ges-timeline-standard-transition.h"
|
||||
|
||||
#define C_ENUM(v) ((guint) v)
|
||||
static void
|
||||
|
@ -501,6 +505,22 @@ static GEnumValue transition_types[] = {
|
|||
{0, NULL, NULL}
|
||||
};
|
||||
|
||||
void
|
||||
_init_standard_transition_assets (void)
|
||||
{
|
||||
guint i;
|
||||
|
||||
for (i = 1; i < G_N_ELEMENTS (transition_types) - 1; i++) {
|
||||
GESAsset *asset = ges_asset_request (GES_TYPE_TIMELINE_STANDARD_TRANSITION,
|
||||
transition_types[i].value_nick, NULL);
|
||||
|
||||
ges_meta_container_register_meta_string (GES_META_CONTAINER (asset),
|
||||
GES_META_READABLE, GES_META_DESCRIPTION,
|
||||
transition_types[i].value_name);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
GType
|
||||
ges_video_standard_transition_type_get_type (void)
|
||||
{
|
||||
|
|
|
@ -21,6 +21,8 @@
|
|||
#ifndef _GES_TIMELINE_TRANSITION
|
||||
#define _GES_TIMELINE_TRANSITION
|
||||
|
||||
#include "ges-timeline-operation.h"
|
||||
|
||||
#include <glib-object.h>
|
||||
#include <ges/ges-types.h>
|
||||
|
||||
|
|
Loading…
Reference in a new issue