2 * Copyright (C) 2020 Igalia, S.L.
3 * Author: Víctor Jáquez <vjaquez@igalia.com>
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
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 * Library General Public License for more details.
15 * You should have received a copy of the GNU Library General Public
16 * License along with this library; if not, write to the
17 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
18 * Boston, MA 02110-1301, USA.
23 #include "gstvadisplay.h"
27 typedef struct _GstVaDecodePicture GstVaDecodePicture;
28 struct _GstVaDecodePicture
35 #define GST_TYPE_VA_DECODER (gst_va_decoder_get_type())
36 G_DECLARE_FINAL_TYPE (GstVaDecoder, gst_va_decoder, GST, VA_DECODER, GstObject)
38 GstVaDecoder * gst_va_decoder_new (GstVaDisplay * display,
40 gboolean gst_va_decoder_open (GstVaDecoder * self,
43 gboolean gst_va_decoder_close (GstVaDecoder * self);
44 gboolean gst_va_decoder_is_open (GstVaDecoder * self);
45 gboolean gst_va_decoder_set_format (GstVaDecoder * self,
49 GstCaps * gst_va_decoder_get_srcpad_caps (GstVaDecoder * self);
50 GstCaps * gst_va_decoder_get_sinkpad_caps (GstVaDecoder * self);
51 gboolean gst_va_decoder_has_profile (GstVaDecoder * self,
53 gint gst_va_decoder_get_mem_types (GstVaDecoder * self);
55 gboolean gst_va_decoder_add_param_buffer (GstVaDecoder * self,
56 GstVaDecodePicture * pic,
60 gboolean gst_va_decoder_add_slice_buffer (GstVaDecoder * self,
61 GstVaDecodePicture * pic,
66 gboolean gst_va_decoder_decode (GstVaDecoder * self,
67 GstVaDecodePicture * pic);
68 gboolean gst_va_decoder_destroy_buffers (GstVaDecoder * self,
69 GstVaDecodePicture * pic);
71 GstVaDecodePicture * gst_va_decoder_new_decode_picture (GstVaDecoder * self,
73 void gst_va_decode_picture_free (GstVaDecodePicture * pic);