ignore bitparser error
[platform/upstream/gstreamer-vaapi.git] / gst-libs / gst / vaapi / gstvaapiencoder_mpeg2_priv.h
1 /*
2  *  gstvaapiencoder_mpeg2_priv.h - MPEG-2 encoder (private definitions)
3  *
4  *  Copyright (C) 2013-2014 Intel Corporation
5  *    Author: Guangxin Xu <guangxin.xu@intel.com>
6  *    Author: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
7  *
8  *  This library is free software; you can redistribute it and/or
9  *  modify it under the terms of the GNU Lesser General Public License
10  *  as published by the Free Software Foundation; either version 2.1
11  *  of the License, or (at your option) any later version.
12  *
13  *  This library is distributed in the hope that it will be useful,
14  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16  *  Lesser General Public License for more details.
17  *
18  *  You should have received a copy of the GNU Lesser General Public
19  *  License along with this library; if not, write to the Free
20  *  Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
21  *  Boston, MA 02110-1301 USA
22  */
23
24 #ifndef GST_VAAPI_ENCODER_MPEG2_PRIV_H
25 #define GST_VAAPI_ENCODER_MPEG2_PRIV_H
26
27 #include "gstvaapiencoder_priv.h"
28 #include "gstvaapiutils_mpeg2.h"
29
30 G_BEGIN_DECLS
31
32 #define GST_VAAPI_ENCODER_MPEG2_CAST(encoder) \
33   ((GstVaapiEncoderMpeg2 *) (encoder))
34
35 #define START_CODE_PICUTRE      0x00000100
36 #define START_CODE_SLICE        0x00000101
37 #define START_CODE_USER         0x000001B2
38 #define START_CODE_SEQ          0x000001B3
39 #define START_CODE_EXT          0x000001B5
40 #define START_CODE_GOP          0x000001B8
41
42 struct _GstVaapiEncoderMpeg2
43 {
44   GstVaapiEncoder parent_instance;
45
46   GstVaapiProfile profile;
47   GstVaapiLevelMPEG2 level;
48   guint8 profile_idc;
49   guint8 level_idc;
50   guint32 cqp; /* quantizer value for CQP mode */
51   guint32 ip_period;
52
53   /* re-ordering */
54   GQueue b_frames;
55   gboolean dump_frames;
56   gboolean new_gop;
57
58   /* reference list */
59   GstVaapiSurfaceProxy *forward;
60   GstVaapiSurfaceProxy *backward;
61   guint32 frame_num;            /* same value picture header, but it's not mod by 1024 */
62 };
63
64 G_END_DECLS
65
66 #endif /* GST_VAAPI_ENCODER_MPEG2_PRIV_H */