2 * Copyright (C) 2011, Hewlett-Packard Development Company, L.P.
3 * Author: Sebastian Dröge <sebastian.droege@collabora.co.uk>, Collabora Ltd.
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation
8 * version 2.1 of the License.
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 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21 #ifndef __GST_OMX_H264_ENC_H__
22 #define __GST_OMX_H264_ENC_H__
25 #include "gstomxvideoenc.h"
29 #define GST_TYPE_OMX_H264_ENC \
30 (gst_omx_h264_enc_get_type())
31 #define GST_OMX_H264_ENC(obj) \
32 (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_OMX_H264_ENC,GstOMXH264Enc))
33 #define GST_OMX_H264_ENC_CLASS(klass) \
34 (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_OMX_H264_ENC,GstOMXH264EncClass))
35 #define GST_OMX_H264_ENC_GET_CLASS(obj) \
36 (G_TYPE_INSTANCE_GET_CLASS((obj),GST_TYPE_OMX_H264_ENC,GstOMXH264EncClass))
37 #define GST_IS_OMX_H264_ENC(obj) \
38 (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_OMX_H264_ENC))
39 #define GST_IS_OMX_H264_ENC_CLASS(obj) \
40 (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_OMX_H264_ENC))
42 typedef struct _GstOMXH264Enc GstOMXH264Enc;
43 typedef struct _GstOMXH264EncClass GstOMXH264EncClass;
47 GstOMXVideoEnc parent;
49 #ifdef USE_OMX_TARGET_RPI
50 gboolean inline_sps_pps_headers;
52 guint32 periodicty_idr;
53 guint32 interval_intraframes;
58 struct _GstOMXH264EncClass
60 GstOMXVideoEncClass parent_class;
63 GType gst_omx_h264_enc_get_type (void);
67 #endif /* __GST_OMX_H264_ENC_H__ */