Merge branch 'move_subdir_editing-services' into tizen_gst_1.19.2_mono
[platform/upstream/gstreamer.git] / subprojects / gstreamer-vaapi / gst / vaapi / gstvaapidecode.h
1 /*
2  *  gstvaapidecode.h - VA-API video decoder
3  *
4  *  Copyright (C) 2010-2011 Splitted-Desktop Systems
5  *    Author: Gwenole Beauchesne <gwenole.beauchesne@splitted-desktop.com>
6  *  Copyright (C) 2011-2013 Intel Corporation
7  *    Author: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
8  *
9  *  This library is free software; you can redistribute it and/or
10  *  modify it under the terms of the GNU Lesser General Public License
11  *  as published by the Free Software Foundation; either version 2.1
12  *  of the License, or (at your option) any later version.
13  *
14  *  This library is distributed in the hope that it will be useful,
15  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
16  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17  *  Lesser General Public License for more details.
18  *
19  *  You should have received a copy of the GNU Lesser General Public
20  *  License along with this library; if not, write to the Free
21  *  Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
22  *  Boston, MA 02110-1301 USA
23  */
24
25 #ifndef GST_VAAPIDECODE_H
26 #define GST_VAAPIDECODE_H
27
28 #include "gstvaapipluginbase.h"
29 #include <gst/vaapi/gstvaapidecoder.h>
30
31 G_BEGIN_DECLS
32
33 #define GST_VAAPIDECODE(obj) ((GstVaapiDecode *)(obj))
34
35 typedef struct _GstVaapiDecode                  GstVaapiDecode;
36 typedef struct _GstVaapiDecodeClass             GstVaapiDecodeClass;
37
38 struct _GstVaapiDecode {
39     /*< private >*/
40     GstVaapiPluginBase  parent_instance;
41
42     GstCaps            *sinkpad_caps;
43     GstCaps            *srcpad_caps;
44     GstVideoInfo        decoded_info;
45     GstVaapiDecoder    *decoder;
46     GstCaps            *allowed_sinkpad_caps;
47     GstCaps            *allowed_srcpad_caps;
48     guint               current_frame_size;
49     guint               has_texture_upload_meta : 1;
50
51     guint               display_width;
52     guint               display_height;
53
54     GstVideoCodecState *input_state;
55
56     gboolean            do_renego;
57 };
58
59 struct _GstVaapiDecodeClass {
60     /*< private >*/
61     GstVaapiPluginBaseClass parent_class;
62 };
63
64 gboolean gst_vaapidecode_register (GstPlugin * plugin, GArray * decoders);
65
66 G_END_DECLS
67
68 #endif /* GST_VAAPIDECODE_H */