diff options
author | wm4 <wm4@nowhere> | 2017-01-12 12:51:55 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-01-12 13:58:28 +0100 |
commit | 06b30cc81f86ce31ad35399ccfc432a316a09e0d (patch) | |
tree | cb008b92b49e1eed3e52ae9d26e7bd159ce0c9f1 /video/mp_image_pool.h | |
parent | 162c2e2d00c46c989fdf116181a21f8701ad99be (diff) | |
download | mpv-06b30cc81f86ce31ad35399ccfc432a316a09e0d.tar.bz2 mpv-06b30cc81f86ce31ad35399ccfc432a316a09e0d.tar.xz |
vaapi: use libavutil functions for copying hw surfaces to memory
Makes va_surface_download() call mp_image_hw_download() for
libavutil-allocated surfaces, which in turn calls
av_hwframe_transfer_data().
mp_image_hw_download() is actually not specific to vaapi, and can be
used for any hw surface allocated by libavutil.
Diffstat (limited to 'video/mp_image_pool.h')
-rw-r--r-- | video/mp_image_pool.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/video/mp_image_pool.h b/video/mp_image_pool.h index 32beb89d9b..95e4ae57be 100644 --- a/video/mp_image_pool.h +++ b/video/mp_image_pool.h @@ -26,4 +26,7 @@ struct mp_image *mp_image_pool_new_copy(struct mp_image_pool *pool, bool mp_image_pool_make_writeable(struct mp_image_pool *pool, struct mp_image *img); +struct mp_image *mp_image_hw_download(struct mp_image *img, + struct mp_image_pool *swpool); + #endif |