1*4882a593Smuzhiyun /* GStreamer 2*4882a593Smuzhiyun * Copyright (C) <2021> Collabora Ltd. 3*4882a593Smuzhiyun * Author: Nicolas Dufresne <nicolas.dufresne@collabora.com> 4*4882a593Smuzhiyun * Author: Julian Bouzas <julian.bouzas@collabora.com> 5*4882a593Smuzhiyun * 6*4882a593Smuzhiyun * This library is free software; you can redistribute it and/or 7*4882a593Smuzhiyun * modify it under the terms of the GNU Library General Public 8*4882a593Smuzhiyun * License as published by the Free Software Foundation; either 9*4882a593Smuzhiyun * version 2 of the License, or (at your option) any later version. 10*4882a593Smuzhiyun * 11*4882a593Smuzhiyun * This library is distributed in the hope that it will be useful, 12*4882a593Smuzhiyun * but WITHOUT ANY WARRANTY; without even the implied warranty of 13*4882a593Smuzhiyun * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14*4882a593Smuzhiyun * Library General Public License for more details. 15*4882a593Smuzhiyun * 16*4882a593Smuzhiyun * You should have received a copy of the GNU Library General Public 17*4882a593Smuzhiyun * License along with this library; if not, write to the 18*4882a593Smuzhiyun * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, 19*4882a593Smuzhiyun * Boston, MA 02110-1301, USA. 20*4882a593Smuzhiyun */ 21*4882a593Smuzhiyun 22*4882a593Smuzhiyun #ifndef __GST_MPP_ALPHA_DECODE_BIN_H__ 23*4882a593Smuzhiyun #define __GST_MPP_ALPHA_DECODE_BIN_H__ 24*4882a593Smuzhiyun 25*4882a593Smuzhiyun #include <gst/gst.h> 26*4882a593Smuzhiyun 27*4882a593Smuzhiyun /* When wrapping, use the original rank plus this offset. The ad-hoc rules is 28*4882a593Smuzhiyun * that hardware implementation will use PRIMARY+1 or +2 to override the 29*4882a593Smuzhiyun * software decoder, so the offset must be large enough to jump over those. 30*4882a593Smuzhiyun * This should also be small enough so that a marginal (64) or secondary 31*4882a593Smuzhiyun * wrapper does not cross the PRIMARY line. 32*4882a593Smuzhiyun */ 33*4882a593Smuzhiyun #define GST_MPP_ALPHA_DECODE_BIN_RANK_OFFSET 10 34*4882a593Smuzhiyun 35*4882a593Smuzhiyun G_BEGIN_DECLS 36*4882a593Smuzhiyun #define GST_TYPE_MPP_ALPHA_DECODE_BIN (gst_mpp_alpha_decode_bin_get_type()) 37*4882a593Smuzhiyun G_DECLARE_DERIVABLE_TYPE (GstMppAlphaDecodeBin, 38*4882a593Smuzhiyun gst_mpp_alpha_decode_bin, GST, MPP_ALPHA_DECODE_BIN, GstBin); 39*4882a593Smuzhiyun 40*4882a593Smuzhiyun struct _GstMppAlphaDecodeBinClass 41*4882a593Smuzhiyun { 42*4882a593Smuzhiyun GstBinClass parent_class; 43*4882a593Smuzhiyun 44*4882a593Smuzhiyun const gchar *decoder_name; 45*4882a593Smuzhiyun }; 46*4882a593Smuzhiyun 47*4882a593Smuzhiyun G_END_DECLS 48*4882a593Smuzhiyun #endif 49