mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-30 16:02:00 +02:00
Add support for premultiplied alpha flag detection when creating GdkMemoryTextures. Also check if overlays have premultiplied alpha and if they do set this flag for their video info, so it will be detected when creating a GdkMemoryTexture out of them. Fixes performance issues with karaoke subtitles, as now GTK does not have to perform unnecessary multiplication.
36 lines
1.2 KiB
C
Vendored
36 lines
1.2 KiB
C
Vendored
/*
|
|
* GStreamer
|
|
* Copyright (C) 2015 Matthew Waters <matthew@centricular.com>
|
|
* Copyright (C) 2015 Thibault Saunier <tsaunier@gnome.org>
|
|
* Copyright (C) 2022 Rafał Dzięgiel <rafostar.github@gmail.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.
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <glib.h>
|
|
#include <gtk/gtk.h>
|
|
#include <gst/video/video.h>
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
gpointer gst_gtk_invoke_on_main (GThreadFunc func, gpointer data);
|
|
|
|
GdkTexture * gst_video_frame_into_gdk_texture (GstVideoFrame *frame);
|
|
|
|
G_END_DECLS
|