Libav
hwcontext_vaapi.h
Go to the documentation of this file.
1 /*
2  * This file is part of Libav.
3  *
4  * Libav 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  * Libav 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 Libav; 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 };
49 
55 typedef struct AVVAAPIDeviceContext {
59  VADisplay display;
67  unsigned int driver_quirks;
69 
75 typedef struct AVVAAPIFramesContext {
80  VASurfaceAttrib *attributes;
88  VASurfaceID *surface_ids;
91 
97 typedef struct AVVAAPIHWConfig {
101  VAConfigID config_id;
103 
104 #endif /* AVUTIL_HWCONTEXT_VAAPI_H */
VAAPI-specific data associated with a frame pool.
VASurfaceAttrib * attributes
Set by the user to apply surface attributes to all surfaces in the frame pool.
VAAPI hardware pipeline configuration details.
The driver does not destroy parameter buffers when they are used by vaRenderPicture().
VADisplay display
The VADisplay handle, to be filled by the user.
unsigned int driver_quirks
Driver quirks to apply - this is filled by av_hwdevice_ctx_init(), with reference to a table of known...
The quirks field has been set by the user and should not be detected automatically by av_hwdevice_ctx...
VAAPI connection details.
VAConfigID config_id
ID of a VAAPI pipeline configuration.
VASurfaceID * surface_ids
The surfaces IDs of all surfaces in the pool after creation.