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 <gst/va/gstva.h>
28 typedef struct _GstVaDecodePicture GstVaDecodePicture;
29 struct _GstVaDecodePicture
31 GstVaDisplay *display;
37 #define GST_TYPE_VA_DECODER (gst_va_decoder_get_type())
38 G_DECLARE_FINAL_TYPE (GstVaDecoder, gst_va_decoder, GST, VA_DECODER, GstObject)
40 GstVaDecoder * gst_va_decoder_new (GstVaDisplay * display,
42 gboolean gst_va_decoder_open (GstVaDecoder * self,
45 gboolean gst_va_decoder_close (GstVaDecoder * self);
46 gboolean gst_va_decoder_is_open (GstVaDecoder * self);
47 gboolean gst_va_decoder_set_frame_size_with_surfaces
52 gboolean gst_va_decoder_set_frame_size (GstVaDecoder * self,
55 gboolean gst_va_decoder_update_frame_size (GstVaDecoder * self,
58 GstCaps * gst_va_decoder_get_srcpad_caps (GstVaDecoder * self);
59 GstCaps * gst_va_decoder_get_sinkpad_caps (GstVaDecoder * self);
60 gboolean gst_va_decoder_has_profile (GstVaDecoder * self,
62 gint gst_va_decoder_get_mem_types (GstVaDecoder * self);
63 GArray * gst_va_decoder_get_surface_formats (GstVaDecoder * self);
65 gboolean gst_va_decoder_add_param_buffer (GstVaDecoder * self,
66 GstVaDecodePicture * pic,
70 gboolean gst_va_decoder_add_slice_buffer (GstVaDecoder * self,
71 GstVaDecodePicture * pic,
76 gboolean gst_va_decoder_add_slice_buffer_with_n_params
78 GstVaDecodePicture * pic,
84 gboolean gst_va_decoder_decode (GstVaDecoder * self,
85 GstVaDecodePicture * pic);
86 gboolean gst_va_decoder_decode_with_aux_surface (GstVaDecoder * self,
87 GstVaDecodePicture * pic,
89 gboolean gst_va_decoder_config_is_equal (GstVaDecoder * decoder,
90 VAProfile new_profile,
94 gboolean gst_va_decoder_get_config (GstVaDecoder * decoder,
100 GstVaDecodePicture * gst_va_decode_picture_new (GstVaDecoder * self,
102 VASurfaceID gst_va_decode_picture_get_surface (GstVaDecodePicture * pic);
103 VASurfaceID gst_va_decode_picture_get_aux_surface (GstVaDecodePicture * pic);
104 void gst_va_decode_picture_free (GstVaDecodePicture * pic);
105 GstVaDecodePicture * gst_va_decode_picture_dup (GstVaDecodePicture * pic);