From 95e13e3d3e3f00ee574477e3abe3c2f497e341cb Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 2 Oct 2019 21:07:14 +0200 Subject: 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. --- video/mp_image_pool.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'video/mp_image_pool.h') 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; -- cgit v1.2.3