texture: move to core libgstvaapi base library.
[platform/upstream/gstreamer.git] / gst / vaapi / gstvaapiencode_h264.h
1 /*
2  *  gstvaapiencode_h264.h - VA-API H.264 encoder
3  *
4  *  Copyright (C) 2012-2014 Intel Corporation
5  *    Author: Wind Yuan <feng.yuan@intel.com>
6  *    Author: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
7  *
8  *  This library is free software; you can redistribute it and/or
9  *  modify it under the terms of the GNU Lesser General Public License
10  *  as published by the Free Software Foundation; either version 2.1
11  *  of the License, or (at your option) any later version.
12  *
13  *  This library is distributed in the hope that it will be useful,
14  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16  *  Lesser General Public License for more details.
17  *
18  *  You should have received a copy of the GNU Lesser General Public
19  *  License along with this library; if not, write to the Free
20  *  Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
21  *  Boston, MA 02110-1301 USA
22  */
23
24 #ifndef GST_VAAPIENCODE_H264_H
25 #define GST_VAAPIENCODE_H264_H
26
27 #include <gst/gst.h>
28 #include "gstvaapiencode.h"
29
30 G_BEGIN_DECLS
31
32 #define GST_TYPE_VAAPIENCODE_H264 \
33     (gst_vaapiencode_h264_get_type ())
34 #define GST_VAAPIENCODE_H264_CAST(obj) \
35   ((GstVaapiEncodeH264 *)(obj))
36 #define GST_VAAPIENCODE_H264(obj) \
37   (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_VAAPIENCODE_H264, \
38       GstVaapiEncodeH264))
39 #define GST_VAAPIENCODE_H264_CLASS(klass) \
40   (G_TYPE_CHECK_CLASS_CAST ((klass), GST_TYPE_VAAPIENCODE_H264, \
41       GstVaapiEncodeH264Class))
42 #define GST_VAAPIENCODE_H264_GET_CLASS(obj) \
43   (G_TYPE_INSTANCE_GET_CLASS ((obj), GST_TYPE_VAAPIENCODE_H264, \
44       GstVaapiEncodeH264Class))
45 #define GST_IS_VAAPIENCODE_H264(obj) \
46   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_VAAPIENCODE_H264))
47 #define GST_IS_VAAPIENCODE_H264_CLASS(klass) \
48   (G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_VAAPIENCODE_H264))
49
50 typedef struct _GstVaapiEncodeH264 GstVaapiEncodeH264;
51 typedef struct _GstVaapiEncodeH264Class GstVaapiEncodeH264Class;
52
53 struct _GstVaapiEncodeH264
54 {
55   /*< private >*/
56   GstVaapiEncode parent_instance;
57
58   guint is_avc:1; /* [FALSE]=byte-stream (default); [TRUE]=avcC */
59 };
60
61 struct _GstVaapiEncodeH264Class
62 {
63   /*< private >*/
64   GstVaapiEncodeClass parent_class;
65 };
66
67 GType
68 gst_vaapiencode_h264_get_type (void) G_GNUC_CONST;
69
70 G_END_DECLS
71
72 #endif /* GST_VAAPIENCODE_H264_H */