mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 00:36:51 +00:00
14d6773aba
Making it possible to properly handle compositors that have those properties as doubles and handle antialiasing. Internally we were handling those values as doubles in framepositioner, so expose new properties so user can set values as doubles also. This changes the GESFramePositionMeta API but we are still on time for 1.24 Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6241>
75 lines
2.2 KiB
C
75 lines
2.2 KiB
C
/* GStreamer
|
|
* Copyright (C) 2013 Mathieu Duponchelle <mduponchelle1@gmail.com>
|
|
* Copyright (C) 2013 Thibault Saunier <thibault.saunier@collabora.com>
|
|
* Copyright (C) 2020 Thibault Saunier <tsaunier@igalia.com>
|
|
*
|
|
* 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 <ges/ges-types.h>
|
|
#include <glib-object.h>
|
|
#include <gst/gst.h>
|
|
|
|
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
|