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 module ffmpeg.libavcodec.vaapi; 25 26 extern (C): 27 import ffmpeg; @nogc nothrow: 28 29 /** 30 * @file 31 * @ingroup lavc_codec_hwaccel_vaapi 32 * Public libavcodec VA API header. 33 */ 34 35 /** 36 * @defgroup lavc_codec_hwaccel_vaapi VA API Decoding 37 * @ingroup lavc_codec_hwaccel 38 * @{ 39 */ 40 41 /** 42 * This structure is used to share data between the FFmpeg library and 43 * the client video application. 44 * This shall be zero-allocated and available as 45 * AVCodecContext.hwaccel_context. All user members can be set once 46 * during initialization or through each AVCodecContext.get_buffer() 47 * function call. In any case, they must be valid prior to calling 48 * decoding functions. 49 * 50 * Deprecated: use AVCodecContext.hw_frames_ctx instead. 51 */ 52 struct vaapi_context 53 { 54 /** 55 * Window system dependent data 56 * 57 * - encoding: unused 58 * - decoding: Set by user 59 */ 60 void* display; 61 62 /** 63 * Configuration ID 64 * 65 * - encoding: unused 66 * - decoding: Set by user 67 */ 68 uint config_id; 69 70 /** 71 * Context ID (video decode pipeline) 72 * 73 * - encoding: unused 74 * - decoding: Set by user 75 */ 76 uint context_id; 77 } 78 79 /* @} */ 80 81 /* FF_API_STRUCT_VAAPI_CONTEXT */ 82 83 /* AVCODEC_VAAPI_H */