Initialize Tizen 2.3
[framework/multimedia/gst-openmax.git] / wearable / omx / gstomx_h264enc.h
1 /*
2  * Copyright (C) 2007-2009 Nokia Corporation.
3  *
4  * Author: Felipe Contreras <felipe.contreras@nokia.com>
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation
9  * version 2.1 of the License.
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  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
19  *
20  */
21
22 #ifndef GSTOMX_H264ENC_H
23 #define GSTOMX_H264ENC_H
24
25 #include <gst/gst.h>
26
27 G_BEGIN_DECLS
28 #define GST_OMX_H264ENC(obj) (GstOmxH264Enc *) (obj)
29 #define GST_OMX_H264ENC_TYPE (gst_omx_h264enc_get_type ())
30 typedef struct GstOmxH264Enc GstOmxH264Enc;
31 typedef struct GstOmxH264EncClass GstOmxH264EncClass;
32
33 typedef struct PrependSPSPPSToIDRFramesParams PrependSPSPPSToIDRFramesParams;
34 typedef struct PhysicalOutputParams PhysicalOutputParams;
35
36 #include "gstomx_base_videoenc.h"
37 #include "gstomx_h264.h"
38
39 struct GstOmxH264Enc
40 {
41   GstOmxBaseVideoEnc omx_base;
42   gboolean byte_stream;
43
44   GstBuffer *dci;
45   gboolean append_dci;
46   gboolean first_frame;
47
48   OMX_VIDEO_PARAM_AVCTYPE h264type;
49   OMX_VIDEO_PARAM_AVCSLICEFMO slice_fmo;
50 };
51
52 struct GstOmxH264EncClass
53 {
54   GstOmxBaseVideoEncClass parent_class;
55 };
56
57 struct PrependSPSPPSToIDRFramesParams {
58   OMX_U32 nSize;
59   OMX_VERSIONTYPE nVersion;
60   OMX_BOOL bEnable;
61 };
62
63 struct PhysicalOutputParams {
64   OMX_U32 nSize;
65   OMX_VERSIONTYPE nVersion;
66   OMX_BOOL bEnable;
67 };
68
69 GType gst_omx_h264enc_get_type (void);
70
71 G_END_DECLS
72 #endif /* GSTOMX_H264ENC_H */