diff options
author | wm4 <wm4@nowhere> | 2017-06-08 21:16:11 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-06-08 21:51:25 +0200 |
commit | 0754cbc83eb030ed3c0f0666e8b7c2481631e513 (patch) | |
tree | b4df7e128e0e65704ae62e5a19a73651def4f284 /video/decode/d3d.h | |
parent | 79dc1834f5932b36b0a2b48388654d2c4dcd2817 (diff) | |
download | mpv-0754cbc83eb030ed3c0f0666e8b7c2481631e513.tar.bz2 mpv-0754cbc83eb030ed3c0f0666e8b7c2481631e513.tar.xz |
d3d: add support for new libavcodec hwaccel API
Unfortunately quite a mess, in particular due to the need to have some
compatibility with the old API. (The old API will be supported only in
short term.)
Diffstat (limited to 'video/decode/d3d.h')
-rw-r--r-- | video/decode/d3d.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/video/decode/d3d.h b/video/decode/d3d.h index 6caeb2dc03..334f12151e 100644 --- a/video/decode/d3d.h +++ b/video/decode/d3d.h @@ -71,4 +71,12 @@ struct mp_image *d3d11_download_image(struct mp_hwdec_ctx *ctx, struct mp_image *mpi, struct mp_image_pool *swpool); +struct AVBufferRef; +struct IDirect3DDevice9; + +void d3d_hwframes_refine(struct lavc_ctx *ctx, struct AVBufferRef *hw_frames_ctx); + +struct AVBufferRef *d3d11_wrap_device_ref(ID3D11Device *device); +struct AVBufferRef *d3d9_wrap_device_ref(struct IDirect3DDevice9 *device); + #endif |