Path: blob/a-new-beginning/libavcodec.xcframework/ios-arm64-simulator/libavcodec.framework/Headers/dxva2.h
2 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#define FF_DXVA2_WORKAROUND_SCALING_LIST_ZIGZAG 1 ///< Work around for DXVA2 and old UVD/UVD+ ATI video cards48#define FF_DXVA2_WORKAROUND_INTEL_CLEARVIDEO 2 ///< Work around for DXVA2 and old Intel GPUs with ClearVideo interface4950/**51* This structure is used to provides the necessary configurations and data52* to the DXVA2 FFmpeg HWAccel implementation.53*54* The application must make it available as AVCodecContext.hwaccel_context.55*/56struct dxva_context {57/**58* DXVA2 decoder object59*/60IDirectXVideoDecoder *decoder;6162/**63* DXVA2 configuration used to create the decoder64*/65const DXVA2_ConfigPictureDecode *cfg;6667/**68* The number of surface in the surface array69*/70unsigned surface_count;7172/**73* The array of Direct3D surfaces used to create the decoder74*/75LPDIRECT3DSURFACE9 *surface;7677/**78* A bit field configuring the workarounds needed for using the decoder79*/80uint64_t workaround;8182/**83* Private to the FFmpeg AVHWAccel implementation84*/85unsigned report_id;86};8788/**89* @}90*/9192#endif /* AVCODEC_DXVA2_H */939495