diff options
author | wm4 <wm4@nowhere> | 2016-06-28 20:04:16 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-06-28 20:07:56 +0200 |
commit | 17c5738cb43382831407400312f0f0d4989d115c (patch) | |
tree | b82531fa0f5925b01353d34d23ba78a420fc4f34 /video/decode/d3d.h | |
parent | d5615102d5bce7c506279a2578a34da25f91301f (diff) | |
download | mpv-17c5738cb43382831407400312f0f0d4989d115c.tar.bz2 mpv-17c5738cb43382831407400312f0f0d4989d115c.tar.xz |
d3d: merge angle_common.h into d3d.h
OK, this was dumb. The file didn't have much to do with ANGLE, and the
functionality can simply be moved to d3d.c. That file contains helpers
for decoding, but can always be present (on Windows) since it doesn't
access any D3D specific libavcodec APIs. Thus it doesn't need to be
conditionally built like the actual hwaccel wrappers.
Diffstat (limited to 'video/decode/d3d.h')
-rw-r--r-- | video/decode/d3d.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/video/decode/d3d.h b/video/decode/d3d.h index 15c423ab8c..16a8dc0258 100644 --- a/video/decode/d3d.h +++ b/video/decode/d3d.h @@ -19,6 +19,9 @@ #define MPV_DECODE_D3D_H #include <windows.h> +#include <d3d11.h> + +#include <stdbool.h> #include <inttypes.h> struct mp_image; @@ -62,4 +65,6 @@ BOOL is_clearvideo(const GUID *mode_guid); void copy_nv12(struct mp_image *dest, uint8_t *src_bits, unsigned src_pitch, unsigned surf_height); +bool d3d11_check_decoding(ID3D11Device *dev); + #endif |