FFmpeg
hwcontext_vaapi.h
Go to the documentation of this file.
1 /*
2  * This file is part of FFmpeg.
3  *
4  * FFmpeg is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * FFmpeg is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with FFmpeg; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17  */
18 
19 #ifndef AVUTIL_HWCONTEXT_VAAPI_H
20 #define AVUTIL_HWCONTEXT_VAAPI_H
21 
22 #include <va/va.h>
23 
36 enum {
48 
54 
61 };
62 
68 typedef struct AVVAAPIDeviceContext {
72  VADisplay display;
80  unsigned int driver_quirks;
82 
88 typedef struct AVVAAPIFramesContext {
93  VASurfaceAttrib *attributes;
94  int nb_attributes;
101  VASurfaceID *surface_ids;
102  int nb_surfaces;
104 
110 typedef struct AVVAAPIHWConfig {
114  VAConfigID config_id;
116 
117 #endif /* AVUTIL_HWCONTEXT_VAAPI_H */
VAAPI-specific data associated with a frame pool.
Definition: hwcontext_vaapi.h:88
VASurfaceAttrib * attributes
Set by the user to apply surface attributes to all surfaces in the frame pool.
Definition: hwcontext_vaapi.h:93
The driver does not destroy parameter buffers when they are used by vaRenderPicture().
Definition: hwcontext_vaapi.h:47
The driver does not support surface attributes at all.
Definition: hwcontext_vaapi.h:60
The driver does not support the VASurfaceAttribMemoryType attribute, so the surface allocation code w...
Definition: hwcontext_vaapi.h:53
VAAPI hardware pipeline configuration details.
Definition: hwcontext_vaapi.h:110
struct AVVAAPIDeviceContext AVVAAPIDeviceContext
VAAPI connection details.
The quirks field has been set by the user and should not be detected automatically by av_hwdevice_ctx...
Definition: hwcontext_vaapi.h:41
VADisplay display
The VADisplay handle, to be filled by the user.
Definition: hwcontext_vaapi.h:72
unsigned int driver_quirks
Driver quirks to apply - this is filled by av_hwdevice_ctx_init(), with reference to a table of known...
Definition: hwcontext_vaapi.h:80
struct AVVAAPIFramesContext AVVAAPIFramesContext
VAAPI-specific data associated with a frame pool.
struct AVVAAPIHWConfig AVVAAPIHWConfig
VAAPI hardware pipeline configuration details.
VAAPI connection details.
Definition: hwcontext_vaapi.h:68
VAConfigID config_id
ID of a VAAPI pipeline configuration.
Definition: hwcontext_vaapi.h:114
VASurfaceID * surface_ids
The surfaces IDs of all surfaces in the pool after creation.
Definition: hwcontext_vaapi.h:101