2 * gstvaapiencode_h264.h - VA-API H.264 encoder
4 * Copyright (C) 2012-2014 Intel Corporation
5 * Author: Wind Yuan <feng.yuan@intel.com>
6 * Author: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
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.
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.
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
24 #ifndef GST_VAAPIENCODE_H264_H
25 #define GST_VAAPIENCODE_H264_H
28 #include "gstvaapiencode.h"
32 #define GST_TYPE_VAAPIENCODE_H264 \
33 (gst_vaapiencode_h264_get_type ())
34 #define GST_VAAPIENCODE_H264_CAST(obj) \
35 ((GstVaapiEncodeH264 *)(obj))
36 #define GST_VAAPIENCODE_H264(obj) \
37 (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_VAAPIENCODE_H264, \
39 #define GST_VAAPIENCODE_H264_CLASS(klass) \
40 (G_TYPE_CHECK_CLASS_CAST ((klass), GST_TYPE_VAAPIENCODE_H264, \
41 GstVaapiEncodeH264Class))
42 #define GST_VAAPIENCODE_H264_GET_CLASS(obj) \
43 (G_TYPE_INSTANCE_GET_CLASS ((obj), GST_TYPE_VAAPIENCODE_H264, \
44 GstVaapiEncodeH264Class))
45 #define GST_IS_VAAPIENCODE_H264(obj) \
46 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_VAAPIENCODE_H264))
47 #define GST_IS_VAAPIENCODE_H264_CLASS(klass) \
48 (G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_VAAPIENCODE_H264))
50 typedef struct _GstVaapiEncodeH264 GstVaapiEncodeH264;
51 typedef struct _GstVaapiEncodeH264Class GstVaapiEncodeH264Class;
53 struct _GstVaapiEncodeH264
56 GstVaapiEncode parent_instance;
58 guint is_avc:1; /* [FALSE]=byte-stream (default); [TRUE]=avcC */
61 struct _GstVaapiEncodeH264Class
64 GstVaapiEncodeClass parent_class;
68 gst_vaapiencode_h264_get_type (void) G_GNUC_CONST;
72 #endif /* GST_VAAPIENCODE_H264_H */