Libav
vaapi.h
Go to the documentation of this file.
1 /*
2  * Video Acceleration API (shared data between Libav 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 Libav.
8  *
9  * Libav 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  * Libav 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 Libav; 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 
50 struct vaapi_context {
57  void *display;
58 
65  uint32_t config_id;
66 
73  uint32_t context_id;
74 
81  uint32_t pic_param_buf_id;
82 
89  uint32_t iq_matrix_buf_id;
90 
97  uint32_t bitplane_buf_id;
98 
105  uint32_t *slice_buf_ids;
106 
113  unsigned int n_slice_buf_ids;
114 
121  unsigned int slice_buf_ids_alloc;
122 
129  void *slice_params;
130 
137  unsigned int slice_param_size;
138 
145  unsigned int slice_params_alloc;
146 
153  unsigned int slice_count;
154 
160  const uint8_t *slice_data;
161 
168  uint32_t slice_data_size;
169 };
170 
171 /* @} */
172 
173 #endif /* AVCODEC_VAAPI_H */
uint32_t iq_matrix_buf_id
VAIQMatrixBuffer ID.
Definition: vaapi.h:89
uint32_t bitplane_buf_id
VABitPlaneBuffer ID (for VC-1 decoding)
Definition: vaapi.h:97
uint32_t context_id
Context ID (video decode pipeline)
Definition: vaapi.h:73
This structure is used to share data between the Libav library and the client video application...
Definition: vaapi.h:50
unsigned int slice_params_alloc
Size of pre-allocated slice_params.
Definition: vaapi.h:145
uint32_t * slice_buf_ids
Slice parameter/data buffer IDs.
Definition: vaapi.h:105
uint8_t
uint32_t slice_data_size
Current size of slice data.
Definition: vaapi.h:168
const uint8_t * slice_data
Pointer to slice data buffer base.
Definition: vaapi.h:160
unsigned int slice_param_size
Size of a VASliceParameterBuffer element.
Definition: vaapi.h:137
void * slice_params
Pointer to VASliceParameterBuffers.
Definition: vaapi.h:129
unsigned int slice_count
Number of slices currently filled in.
Definition: vaapi.h:153
unsigned int slice_buf_ids_alloc
Size of pre-allocated slice_buf_ids.
Definition: vaapi.h:121
unsigned int n_slice_buf_ids
Number of effective slice buffer IDs to send to the HW.
Definition: vaapi.h:113
void * display
Window system dependent data.
Definition: vaapi.h:57
uint32_t pic_param_buf_id
VAPictureParameterBuffer ID.
Definition: vaapi.h:81
uint32_t config_id
Configuration ID.
Definition: vaapi.h:65