support multiple h264 slices, auto calculate bitrate(=w*h*fps/4) add properties ...
[profile/ivi/gstreamer-vaapi.git] / gst / vaapiencode / gsth264encode.h
1 /*
2  *  gstvaapidecode.h - VA-API video decoder
3  *
4  *  gstreamer-vaapi (C) 2010-2011 Splitted-Desktop Systems
5  *  Copyright (C) 2011 Intel Corporation
6  *
7  *  This program is free software; you can redistribute it and/or modify
8  *  it under the terms of the GNU General Public License as published by
9  *  the Free Software Foundation; either version 2 of the License, or
10  *  (at your option) any later version.
11  *
12  *  This program is distributed in the hope that it will be useful,
13  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  *  GNU General Public License for more details.
16  *
17  *  You should have received a copy of the GNU General Public License
18  *  along with this program; if not, write to the Free Software
19  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
20  */
21
22 #ifndef GST_H264ENCODE_H
23 #define GST_H264ENCODE_H
24
25 #include <gst/gst.h>
26 #include "h264encoder.h"
27
28 G_BEGIN_DECLS
29
30 #define GST_TYPE_H264ENCODE             (gst_h264encode_get_type())
31 #define GST_IS_H264ENCODE(obj)          (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_H264ENCODE))
32 #define GST_IS_H264ENCODE_CLASS(klass)  (G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_H264ENCODE))
33 #define GST_H264ENCODE_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), GST_TYPE_H264ENCODE, GstH264EncodeClass))
34 #define GST_H264ENCODE(obj)             (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_H264ENCODE, GstH264Encode))
35 #define GST_H264ENCODE_CLASS(klass)     (G_TYPE_CHECK_CLASS_CAST ((klass), GST_TYPE_H264ENCODE, GstH264EncodeClass))
36
37
38 typedef struct _GstH264Encode        GstH264Encode;
39 typedef struct _GstH264EncodeClass   GstH264EncodeClass;
40
41 struct _GstH264Encode {
42     GstElement          parent_instance;
43
44     GstPad             *sinkpad;
45     GstCaps            *sinkpad_caps;
46
47     GstPad             *srcpad;
48     GstCaps            *srcpad_caps;
49
50     GstH264Encoder     *encoder;
51     gboolean            first_sink_frame;
52     gboolean            first_src_frame;
53 };
54
55 struct _GstH264EncodeClass {
56     GstElementClass     parent_class;
57 };
58
59 GType gst_h264encode_get_type(void);
60
61 G_END_DECLS
62
63 #endif /* GST_H264ENCODE_H */
64