summaryrefslogtreecommitdiffstats
path: root/video/mp_image.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-02-20 13:15:50 +0100
committerwm4 <wm4@nowhere>2017-02-20 13:15:50 +0100
commitfefc5a8f735a62f3dd317fd18e51e33959c07690 (patch)
treea799fa43126866c596739cca4ad9f3e262aa8a41 /video/mp_image.h
parent79272e1469a591e753240b5e8e7a3069194759da (diff)
downloadmpv-fefc5a8f735a62f3dd317fd18e51e33959c07690.tar.bz2
mpv-fefc5a8f735a62f3dd317fd18e51e33959c07690.tar.xz
lavfi: use mp_image to store the filter pad format
Preparation for enabling hw filters. mp_image_params can't have an AVHWFramesContext reference (because it can't hold any allocations, and isn't meant to hold "active" data in the first place. So just use a mp_image. It has all real data removed, because that would essentially leak 1 frame once the decoder or renderer don't need it anymore.
Diffstat (limited to 'video/mp_image.h')
-rw-r--r--video/mp_image.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/video/mp_image.h b/video/mp_image.h
index 6606f19c90..e3ffd55adc 100644
--- a/video/mp_image.h
+++ b/video/mp_image.h
@@ -124,6 +124,7 @@ int mp_image_plane_h(struct mp_image *mpi, int plane);
void mp_image_setfmt(mp_image_t* mpi, int out_fmt);
void mp_image_steal_data(struct mp_image *dst, struct mp_image *src);
+void mp_image_unref_data(struct mp_image *img);
struct mp_image *mp_image_new_dummy_ref(struct mp_image *img);
struct mp_image *mp_image_new_custom_ref(struct mp_image *img, void *arg,