1 /* GStreamer H264 encoder plugin
2 * Copyright (C) 2005 Michal Benes <michal.benes@itonis.tv>
3 * Copyright (C) 2005 Josef Zlomek <josef.zlomek@itonis.tv>
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
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 * Library General Public License for more details.
15 * You should have received a copy of the GNU Library General Public
16 * License along with this library; if not, write to the
17 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 * Boston, MA 02111-1307, USA.
21 #ifndef __GST_X264_ENC_H__
22 #define __GST_X264_ENC_H__
25 #include <gst/video/video.h>
31 #define GST_TYPE_X264_ENC \
32 (gst_x264_enc_get_type())
33 #define GST_X264_ENC(obj) \
34 (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_X264_ENC,GstX264Enc))
35 #define GST_X264_ENC_CLASS(klass) \
36 (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_X264_ENC,GstX264EncClass))
37 #define GST_IS_X264_ENC(obj) \
38 (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_X264_ENC))
39 #define GST_IS_X264_ENC_CLASS(klass) \
40 (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_X264_ENC))
42 typedef struct _GstX264Enc GstX264Enc;
43 typedef struct _GstX264EncClass GstX264EncClass;
54 x264_param_t x264param;
58 gboolean sliced_threads;
65 gboolean intra_refresh;
78 guint vbv_buf_capacity;
88 guint noise_reduction;
91 /* input description */
92 GstVideoFormat format;
94 gint fps_num, fps_den;
95 gint par_num, par_den;
96 /* cache some format properties */
97 gint stride[4], offset[4];
100 /* for b-frame delay handling */
107 GstEvent *forcekeyunit_event;
110 struct _GstX264EncClass
112 GstElementClass parent_class;
115 GType gst_x264_enc_get_type (void);
119 #endif /* __GST_X264_ENC_H__ */