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