]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - glsdk/gst-plugin-ducati.git/blob - src/gstducatih264enc.h
0e03f7128d8101ea1925bec305bbe72b0603e223
[glsdk/gst-plugin-ducati.git] / src / gstducatih264enc.h
1 /*
2  * GStreamer
3  * Copyright (c) 2010, Texas Instruments Incorporated
4  *
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.
9  *
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.
14  *
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
18  */
20 #ifndef __GST_DUCATIH264ENC_H__
21 #define __GST_DUCATIH264ENC_H__
23 #include <gst/gst.h>
24 #include <gst/video/video.h>
25 #include <gst/video/gstbasevideoencoder.h>
26 #include <gst/video/gstbasevideoutils.h>
28 #include <ti/sdo/ce/video2/videnc2.h>
29 #include <ti/sdo/codecs/h264enc/ih264enc.h>
31 #include "gstducatibufferpool.h"
33 #define GST_TYPE_DUCATIH264ENC \
34   (gst_ducati_h264enc_get_type())
35 #define GST_DUCATIH264ENC(obj) \
36   (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_DUCATIH264ENC,GstDucatiH264Enc))
37 #define GST_DUCATIH264ENC_CLASS(klass) \
38   (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_DUCATIH264ENC,GstDucatiH264EncClass))
39 #define GST_IS_DUCATIH264ENC(obj) \
40   (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_DUCATIH264ENC))
41 #define GST_IS_DUCATIH264ENC_CLASS(obj) \
42   (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_DUCATIH264ENC))
44 typedef struct _GstDucatiH264Enc GstDucatiH264Enc;
45 typedef struct _GstDucatiH264EncClass GstDucatiH264EncClass;
47 struct _GstDucatiH264Enc
48 {
49   GstBaseVideoEncoder base_encoder;
51   GstPad *sinkpad;
52   GstPad *srcpad;
54   Engine_Handle engine;
55   VIDENC2_Handle codec;
56   IH264ENC_Params *params;
57   IH264ENC_DynamicParams *dynParams;
58   IH264ENC_Status *status;
59   IVIDEO2_BufDesc *inBufs;
60   XDM2_BufDesc *outBufs;
61   IVIDENC2_InArgs *inArgs;
62   IVIDENC2_OutArgs *outArgs;
64   GstDucatiBufferPool *input_pool;
65   GstDucatiBufferPool *output_pool;
66   gboolean configure;
68   guint profile;
69   guint level;
70   gint bitrate;
71   guint rate_preset;
72 };
74 struct _GstDucatiH264EncClass
75 {
76   GstBaseVideoEncoderClass parent_class;
77 };
79 GType gst_ducati_h264enc_get_type (void);
81 #endif