diff options
author | wm4 <wm4@nowhere> | 2019-10-02 21:07:14 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2019-10-02 21:07:14 +0200 |
commit | 95e13e3d3e3f00ee574477e3abe3c2f497e341cb (patch) | |
tree | c3d446c8ce5552b37ee60a9c676dbca012a7a887 /video/mp_image_pool.h | |
parent | 25e70f4743c44db59fe8fc902c93a966d95ba8c3 (diff) | |
download | mpv-95e13e3d3e3f00ee574477e3abe3c2f497e341cb.tar.bz2 mpv-95e13e3d3e3f00ee574477e3abe3c2f497e341cb.tar.xz |
mp_image_pool: expose a function for reporting hw download format
Basically predicts what mp_image_hw_download() will do. It's pretty
simple if it gets the full mp_image. (Taking just a imgfmt would make
this pretty hard/impossible or inaccurate.)
Used in one of the following commits.
Diffstat (limited to 'video/mp_image_pool.h')
-rw-r--r-- | video/mp_image_pool.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/video/mp_image_pool.h b/video/mp_image_pool.h index 7c9f0463cb..3c7e6221d1 100644 --- a/video/mp_image_pool.h +++ b/video/mp_image_pool.h @@ -29,6 +29,8 @@ bool mp_image_pool_make_writeable(struct mp_image_pool *pool, struct mp_image *mp_image_hw_download(struct mp_image *img, struct mp_image_pool *swpool); +int mp_image_hw_download_get_sw_format(struct mp_image *img); + bool mp_image_hw_upload(struct mp_image *hw_img, struct mp_image *src); struct AVBufferRef; |