gstreamer/gst/codecalpha/gstalphacombine.h
Nicolas Dufresne 2cd927435c codecalpha: Implement alphacombine element
This element will merge video buffers in order to use the alpha stream
luma plane as the alpha of the video stream. The implementation is zero-copy
and currently only support merging I420 stream with an I420, NV12 or GRAY8
alpha stream.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2199>
2021-05-11 16:06:56 -04:00

35 lines
1.2 KiB
C

/* GStreamer
* Copyright (C) <2021> Collabora Ltd.
* Author: Nicolas Dufresne <nicolas.dufresne@collabora.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 St, Fifth Floor,
* Boston, MA 02110-1301, USA.
*/
#ifndef __GST_ALPHA_COMBINE_H__
#define __GST_ALPHA_COMBINE_H__
#include <gst/gst.h>
G_BEGIN_DECLS
#define GST_TYPE_ALPHA_COMBINE (gst_alpha_combine_get_type())
G_DECLARE_FINAL_TYPE (GstAlphaCombine,
gst_alpha_combine, GST, ALPHA_COMBINE, GstElement);
GST_ELEMENT_REGISTER_DECLARE (alpha_combine);
G_END_DECLS
#endif