123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- #ifndef AVCODEC_DXVA2_H
- #define AVCODEC_DXVA2_H
- #if !defined(_WIN32_WINNT) || _WIN32_WINNT < 0x0602
- #undef _WIN32_WINNT
- #define _WIN32_WINNT 0x0602
- #endif
- #include <stdint.h>
- #include <d3d9.h>
- #include <dxva2api.h>
- #define FF_DXVA2_WORKAROUND_SCALING_LIST_ZIGZAG 1
- #define FF_DXVA2_WORKAROUND_INTEL_CLEARVIDEO 2
- struct dxva_context {
-
- IDirectXVideoDecoder *decoder;
-
- const DXVA2_ConfigPictureDecode *cfg;
-
- unsigned surface_count;
-
- LPDIRECT3DSURFACE9 *surface;
-
- uint64_t workaround;
-
- unsigned report_id;
- };
- #endif
|