8392d1e3f1e62addf69fc28e132eea421dfcc91f
[platform/upstream/gstreamer-vaapi.git] / gst-libs / gst / vaapi / gstvaapiencoder_mpeg2.h
1 /*
2  *  gstvaapiencoder_mpeg2.h - MPEG-2 encoder
3  *
4  *  Copyright (C) 2011-2013 Intel Corporation
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 License
8  *  as published by the Free Software Foundation; either version 2.1
9  *  of the License, or (at your option) any later version.
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
18  *  Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19  *  Boston, MA 02110-1301 USA
20  */
21
22 #ifndef GST_VAAPI_ENCODER_MPEG2_H
23 #define GST_VAAPI_ENCODER_MPEG2_H
24
25 #include <gst/vaapi/gstvaapiencoder.h>
26
27 G_BEGIN_DECLS
28
29 #define GST_VAAPI_ENCODER_MPEG2(encoder) \
30   ((GstVaapiEncoderMpeg2 *) (encoder))
31
32 typedef struct _GstVaapiEncoderMpeg2 GstVaapiEncoderMpeg2;
33
34 /**
35  * GstVaapiEncoderMpeg2Prop:
36  * @GST_VAAPI_ENCODER_MPEG2_PROP_QUANTIZER: Constant quantizer value (uint).
37  * @GST_VAAPI_ENCODER_MPEG2_PROP_MAX_BFRAMES: Number of B-frames between I
38  *   and P (uint).
39  *
40  * The set of MPEG-2 encoder specific configurable properties.
41  */
42 typedef enum {
43   GST_VAAPI_ENCODER_MPEG2_PROP_QUANTIZER = -1,
44   GST_VAAPI_ENCODER_MPEG2_PROP_MAX_BFRAMES = -2,
45 } GstVaapiEncoderMpeg2Prop;
46
47 GstVaapiEncoder *
48 gst_vaapi_encoder_mpeg2_new (GstVaapiDisplay * display);
49
50 GPtrArray *
51 gst_vaapi_encoder_mpeg2_get_default_properties (void);
52
53 G_END_DECLS
54
55 #endif /* GST_VAAPI_ENCODER_MPEG2_H */