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
5 * Copyright (C) 2008-2009 Splitted-Desktop Systems
7 * This file is part of FFmpeg.
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.
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.
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
24 #ifndef AVCODEC_VAAPI_H
25 #define AVCODEC_VAAPI_H
29 * @ingroup lavc_codec_hwaccel_vaapi
30 * Public libavcodec VA API header.
34 #include "libavutil/attributes.h"
37 #if FF_API_STRUCT_VAAPI_CONTEXT
40 * @defgroup lavc_codec_hwaccel_vaapi VA API Decoding
41 * @ingroup lavc_codec_hwaccel
46 * This structure is used to share data between the FFmpeg library and
47 * the client video application.
48 * This shall be zero-allocated and available as
49 * AVCodecContext.hwaccel_context. All user members can be set once
50 * during initialization or through each AVCodecContext.get_buffer()
51 * function call. In any case, they must be valid prior to calling
54 * Deprecated: use AVCodecContext.hw_frames_ctx instead.
56 struct attribute_deprecated vaapi_context {
58 * Window system dependent data
61 * - decoding: Set by user
69 * - decoding: Set by user
74 * Context ID (video decode pipeline)
77 * - decoding: Set by user
84 #endif /* FF_API_STRUCT_VAAPI_CONTEXT */
86 #endif /* AVCODEC_VAAPI_H */