/* GStreamer * Copyright (C) 2013 Mathieu Duponchelle * Copyright (C) 2013 Thibault Saunier * Copyright (C) 2020 Thibault Saunier * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public * License along with this library; if not, write to the * Free Software Foundation, Inc., 51 Franklin Street, Suite 500, * Boston, MA 02110-1335, USA. */ #pragma once #include #include #include G_BEGIN_DECLS /** * ges_frame_composition_meta_api_get_type: (attributes doc.skip=true) */ GES_API GType ges_frame_composition_meta_api_get_type (void); /** * GES_TYPE_META_FRAME_COMPOSITION: (attributes doc.skip=true) */ #define GES_TYPE_META_FRAME_COMPOSITION (ges_frame_composition_meta_api_get_type()) /** * GESFrameCompositionMeta: * @meta: the parent #GstMeta. * @posx: The desired x position. * @posy: The desired y position. * @height: The desired height of the video. -1 means that no scaling should be * applied. * @width: The desired width of the video. -1 means that no scaling should beapplied * applied. * @zorder: The desired z order. * @operator:The blending operator for the source. * * Metadata type that holds information about the positioning, size, * transparency and composition operator of a video frame in the timeline * composition. * * Since: 1.24 */ typedef struct _GESFrameCompositionMeta GESFrameCompositionMeta; struct _GESFrameCompositionMeta { GstMeta meta; gdouble alpha; gdouble posx; gdouble posy; gdouble height; gdouble width; guint zorder; gint operator; }; GES_API GESFrameCompositionMeta * ges_buffer_add_frame_composition_meta (GstBuffer * buffer); G_END_DECLS