mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-05-18 00:12:46 +00:00
Merge branch 'overlay-refactor' into 'main'
overlaycomposition: Add support for blending upstream composition See merge request gstreamer/gstreamer!3283
This commit is contained in:
commit
6ef59a5d6b
File diff suppressed because it is too large
Load diff
|
@ -17,34 +17,20 @@
|
|||
* Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <gst/gst.h>
|
||||
#include <gst/video/video.h>
|
||||
|
||||
#ifndef __GST_OVERLAY_COMPOSITION_H__
|
||||
#define __GST_OVERLAY_COMPOSITION_H__
|
||||
#include <gst/base/gstbasetransform.h>
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
#define GST_TYPE_OVERLAY_COMPOSITION (gst_overlay_composition_get_type())
|
||||
G_DECLARE_FINAL_TYPE (GstOverlayComposition, gst_overlay_composition,
|
||||
GST, OVERLAY_COMPOSITION, GstElement)
|
||||
|
||||
struct _GstOverlayComposition {
|
||||
GstElement parent;
|
||||
|
||||
GstPad *sinkpad, *srcpad;
|
||||
|
||||
/* state */
|
||||
GstSample *sample;
|
||||
GstSegment segment;
|
||||
GstCaps *caps;
|
||||
GstVideoInfo info;
|
||||
guint window_width, window_height;
|
||||
gboolean attach_compo_to_buffer;
|
||||
};
|
||||
GST, OVERLAY_COMPOSITION, GstBaseTransform)
|
||||
|
||||
GST_ELEMENT_REGISTER_DECLARE (overlaycomposition);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __GST_OVERLAY_COMPOSITION_H__ */
|
||||
|
||||
|
|
Loading…
Reference in a new issue