summaryrefslogtreecommitdiffstats
path: root/filters/f_hwtransfer.h
diff options
context:
space:
mode:
Diffstat (limited to 'filters/f_hwtransfer.h')
-rw-r--r--filters/f_hwtransfer.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/filters/f_hwtransfer.h b/filters/f_hwtransfer.h
index 4595cb393d..567bf92213 100644
--- a/filters/f_hwtransfer.h
+++ b/filters/f_hwtransfer.h
@@ -30,3 +30,12 @@ struct mp_hwupload *mp_hwupload_create(struct mp_filter *parent, int hw_imgfmt);
// and otherwise a format that likely results in the least loss.
// Returns 0 if completely unsupported.
int mp_hwupload_find_upload_format(struct mp_hwupload *u, int imgfmt);
+
+// A filter which downloads sw frames from hw. Ignores sw frames.
+struct mp_hwdownload {
+ struct mp_filter *f;
+
+ struct mp_image_pool *pool;
+};
+
+struct mp_hwdownload *mp_hwdownload_create(struct mp_filter *parent);