2 * gstvaapidecoder_h265.h - H.265 decoder
4 * Copyright (C) 2015 Intel Corporation
5 * Author: Sreerenj Balachandran <sreerenj.balachandran@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_VAAPI_DECODER_H265_H
25 #define GST_VAAPI_DECODER_H265_H
27 #include <gst/vaapi/gstvaapidecoder.h>
31 #define GST_TYPE_VAAPI_DECODER_H265 \
32 (gst_vaapi_decoder_h265_get_type ())
33 #define GST_VAAPI_DECODER_H265(obj) \
34 (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_VAAPI_DECODER_H265, GstVaapiDecoderH265))
35 #define GST_VAAPI_IS_DECODER_H265(obj) \
36 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_VAAPI_DECODER_H265))
38 typedef struct _GstVaapiDecoderH265 GstVaapiDecoderH265;
41 * GstVaapiStreamAlignH265:
42 * @GST_VAAPI_STREAM_ALIGN_H265_NONE: Generic H.265 stream buffers
43 * @GST_VAAPI_STREAM_ALIGN_H265_NALU: H.265 stream buffers aligned NAL
45 * @GST_VAAPI_STREAM_ALIGN_H265_AU: H.265 stream buffers aligned on
46 * access unit boundaries
48 * Set of possible buffer alignments for H.265 streams.
51 GST_VAAPI_STREAM_ALIGN_H265_NONE,
52 GST_VAAPI_STREAM_ALIGN_H265_NALU,
53 GST_VAAPI_STREAM_ALIGN_H265_AU
54 } GstVaapiStreamAlignH265;
57 gst_vaapi_decoder_h265_get_type (void) G_GNUC_CONST;
60 gst_vaapi_decoder_h265_new (GstVaapiDisplay *display, GstCaps *caps);
63 gst_vaapi_decoder_h265_set_alignment (GstVaapiDecoderH265 *decoder,
64 GstVaapiStreamAlignH265 alignment);
66 G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstVaapiDecoderH265, gst_object_unref)
70 #endif /* GST_VAAPI_DECODER_H265_H */