Path: blob/master/dep/ffmpeg/include/libavcodec/dxva2.h
4216 views
/*1* DXVA2 HW acceleration2*3* copyright (c) 2009 Laurent Aimar4*5* This file is part of FFmpeg.6*7* FFmpeg is free software; you can redistribute it and/or8* modify it under the terms of the GNU Lesser General Public9* License as published by the Free Software Foundation; either10* version 2.1 of the License, or (at your option) any later version.11*12* FFmpeg is distributed in the hope that it will be useful,13* but WITHOUT ANY WARRANTY; without even the implied warranty of14* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU15* Lesser General Public License for more details.16*17* You should have received a copy of the GNU Lesser General Public18* License along with FFmpeg; if not, write to the Free Software19* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA20*/2122#ifndef AVCODEC_DXVA2_H23#define AVCODEC_DXVA2_H2425/**26* @file27* @ingroup lavc_codec_hwaccel_dxva228* Public libavcodec DXVA2 header.29*/3031#if !defined(_WIN32_WINNT) || _WIN32_WINNT < 0x060232#undef _WIN32_WINNT33#define _WIN32_WINNT 0x060234#endif3536#include <stdint.h>37#include <d3d9.h>38#include <dxva2api.h>3940/**41* @defgroup lavc_codec_hwaccel_dxva2 DXVA242* @ingroup lavc_codec_hwaccel43*44* @{45*/4647/**48* This structure is used to provides the necessary configurations and data49* to the DXVA2 FFmpeg HWAccel implementation.50*51* The application must make it available as AVCodecContext.hwaccel_context.52*/53struct dxva_context {54/**55* DXVA2 decoder object56*/57IDirectXVideoDecoder *decoder;5859/**60* DXVA2 configuration used to create the decoder61*/62const DXVA2_ConfigPictureDecode *cfg;6364/**65* The number of surface in the surface array66*/67unsigned surface_count;6869/**70* The array of Direct3D surfaces used to create the decoder71*/72LPDIRECT3DSURFACE9 *surface;7374/**75* A bit field configuring the workarounds needed for using the decoder76*/77uint64_t workaround;7879/**80* Private to the FFmpeg AVHWAccel implementation81*/82unsigned report_id;83};8485/**86* @}87*/8889#endif /* AVCODEC_DXVA2_H */909192