Miam-Player  0.8.0
A nice music player
vaapi.h
Go to the documentation of this file.
1 /*
2  * Video Acceleration API (shared data between FFmpeg and the video player)
3  * HW decode acceleration for MPEG-2, MPEG-4, H.264 and VC-1
4  *
5  * Copyright (C) 2008-2009 Splitted-Desktop Systems
6  *
7  * This file is part of FFmpeg.
8  *
9  * FFmpeg is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU Lesser General Public
11  * License as published by the Free Software Foundation; either
12  * version 2.1 of the License, or (at your option) any later version.
13  *
14  * FFmpeg is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17  * Lesser General Public License for more details.
18  *
19  * You should have received a copy of the GNU Lesser General Public
20  * License along with FFmpeg; if not, write to the Free Software
21  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
22  */
23 
24 #ifndef AVCODEC_VAAPI_H
25 #define AVCODEC_VAAPI_H
26 
33 #include <stdint.h>
34 #include "libavutil/attributes.h"
35 #include "version.h"
36 
52 struct vaapi_context {
59  void *display;
60 
67  uint32_t config_id;
68 
75  uint32_t context_id;
76 
77 #if FF_API_VAAPI_CONTEXT
78 
85  uint32_t pic_param_buf_id;
86 
94  uint32_t iq_matrix_buf_id;
95 
103  uint32_t bitplane_buf_id;
104 
112  uint32_t *slice_buf_ids;
113 
121  unsigned int n_slice_buf_ids;
122 
130  unsigned int slice_buf_ids_alloc;
131 
140 
148  unsigned int slice_param_size;
149 
157  unsigned int slice_params_alloc;
158 
166  unsigned int slice_count;
167 
174  const uint8_t *slice_data;
175 
183  uint32_t slice_data_size;
184 #endif
185 };
186 
187 /* @} */
188 
189 #endif /* AVCODEC_VAAPI_H */
attribute_deprecated unsigned int slice_params_alloc
Definition: vaapi.h:157
attribute_deprecated unsigned int slice_param_size
Definition: vaapi.h:148
uint32_t context_id
Definition: vaapi.h:75
Definition: vaapi.h:52
attribute_deprecated uint32_t iq_matrix_buf_id
Definition: vaapi.h:94
attribute_deprecated uint32_t bitplane_buf_id
Definition: vaapi.h:103
attribute_deprecated uint32_t pic_param_buf_id
Definition: vaapi.h:85
attribute_deprecated uint32_t slice_data_size
Definition: vaapi.h:183
attribute_deprecated unsigned int n_slice_buf_ids
Definition: vaapi.h:121
void * display
Definition: vaapi.h:59
attribute_deprecated uint32_t * slice_buf_ids
Definition: vaapi.h:112
#define attribute_deprecated
Definition: attributes.h:98
attribute_deprecated void * slice_params
Definition: vaapi.h:139
attribute_deprecated unsigned int slice_buf_ids_alloc
Definition: vaapi.h:130
attribute_deprecated unsigned int slice_count
Definition: vaapi.h:166
attribute_deprecated const uint8_t * slice_data
Definition: vaapi.h:174
uint32_t config_id
Definition: vaapi.h:67