00001 /* 00002 * Video Acceleration API (shared data between FFmpeg and the video player) 00003 * HW decode acceleration for MPEG-2, MPEG-4, H.264 and VC-1 00004 * 00005 * Copyright (C) 2008-2009 Splitted-Desktop Systems 00006 * 00007 * This file is part of FFmpeg. 00008 * 00009 * FFmpeg is free software; you can redistribute it and/or 00010 * modify it under the terms of the GNU Lesser General Public 00011 * License as published by the Free Software Foundation; either 00012 * version 2.1 of the License, or (at your option) any later version. 00013 * 00014 * FFmpeg is distributed in the hope that it will be useful, 00015 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00017 * Lesser General Public License for more details. 00018 * 00019 * You should have received a copy of the GNU Lesser General Public 00020 * License along with FFmpeg; if not, write to the Free Software 00021 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 00022 */ 00023 00024 #ifndef AVCODEC_VAAPI_H 00025 #define AVCODEC_VAAPI_H 00026 00033 #include <stdint.h> 00034 00050 struct vaapi_context { 00057 void *display; 00058 00065 uint32_t config_id; 00066 00073 uint32_t context_id; 00074 00081 uint32_t pic_param_buf_id; 00082 00089 uint32_t iq_matrix_buf_id; 00090 00097 uint32_t bitplane_buf_id; 00098 00105 uint32_t *slice_buf_ids; 00106 00113 unsigned int n_slice_buf_ids; 00114 00121 unsigned int slice_buf_ids_alloc; 00122 00129 void *slice_params; 00130 00137 unsigned int slice_param_size; 00138 00145 unsigned int slice_params_alloc; 00146 00153 unsigned int slice_count; 00154 00160 const uint8_t *slice_data; 00161 00168 uint32_t slice_data_size; 00169 }; 00170 00171 /* @} */ 00172 00173 #endif /* AVCODEC_VAAPI_H */