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