omxvideodec: support interlace-mode=interleaved input
[platform/upstream/gstreamer.git] / omx / gstomxh265enc.h
1 /*
2  * Copyright (C) 2011, Hewlett-Packard Development Company, L.P.
3  * Copyright (C) 2017 Xilinx, Inc.
4  *   Author: Sebastian Dröge <sebastian.droege@collabora.co.uk>, Collabora Ltd.
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 __GST_OMX_H265_ENC_H__
23 #define __GST_OMX_H265_ENC_H__
24
25 #include <gst/gst.h>
26 #include "gstomxvideoenc.h"
27
28 G_BEGIN_DECLS
29
30 #define GST_TYPE_OMX_H265_ENC \
31   (gst_omx_h265_enc_get_type())
32 #define GST_OMX_H265_ENC(obj) \
33   (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_OMX_H265_ENC,GstOMXH265Enc))
34 #define GST_OMX_H265_ENC_CLASS(klass) \
35   (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_OMX_H265_ENC,GstOMXH265EncClass))
36 #define GST_OMX_H265_ENC_GET_CLASS(obj) \
37   (G_TYPE_INSTANCE_GET_CLASS((obj),GST_TYPE_OMX_H265_ENC,GstOMXH265EncClass))
38 #define GST_IS_OMX_H265_ENC(obj) \
39   (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_OMX_H265_ENC))
40 #define GST_IS_OMX_H265_ENC_CLASS(obj) \
41   (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_OMX_H265_ENC))
42
43 typedef struct _GstOMXH265Enc GstOMXH265Enc;
44 typedef struct _GstOMXH265EncClass GstOMXH265EncClass;
45
46 struct _GstOMXH265Enc
47 {
48   GstOMXVideoEnc parent;
49
50   /* properties */
51   guint32 interval_intraframes;
52 #ifdef USE_OMX_TARGET_ZYNQ_USCALE_PLUS
53   guint32 periodicity_idr;
54   guint32 b_frames;
55   gboolean constrained_intra_prediction;
56   guint32 loop_filter_mode;
57 #endif
58
59   GList *headers;
60 };
61
62 struct _GstOMXH265EncClass
63 {
64   GstOMXVideoEncClass parent_class;
65 };
66
67 GType gst_omx_h265_enc_get_type (void);
68
69 G_END_DECLS
70
71 #endif /* __GST_OMX_H265_ENC_H__ */
72