summaryrefslogtreecommitdiffstats
path: root/video/mp_image.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2020-05-22 14:18:35 +0200
committerwm4 <wm4@nowhere>2020-05-22 14:18:35 +0200
commit77f730f63c340fc88e8c3db0cb73cff1807d7432 (patch)
tree0e5c9491454fe367534837b5103455a4b977a016 /video/mp_image.h
parent1be32529b161d6c67d51004062ee4e6280036fb3 (diff)
downloadmpv-77f730f63c340fc88e8c3db0cb73cff1807d7432.tar.bz2
mpv-77f730f63c340fc88e8c3db0cb73cff1807d7432.tar.xz
mp_image: add helper for clearing regions outside of a rectangle
Not sure if generally useful; the following commit uses it.
Diffstat (limited to 'video/mp_image.h')
-rw-r--r--video/mp_image.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/video/mp_image.h b/video/mp_image.h
index 5b7eada496..dd82251464 100644
--- a/video/mp_image.h
+++ b/video/mp_image.h
@@ -137,6 +137,8 @@ void mp_image_setrefp(struct mp_image **p_img, struct mp_image *new_value);
void mp_image_unrefp(struct mp_image **p_img);
void mp_image_clear(struct mp_image *mpi, int x0, int y0, int x1, int y1);
+void mp_image_clear_rc(struct mp_image *mpi, struct mp_rect rc);
+void mp_image_clear_rc_inv(struct mp_image *mpi, struct mp_rect rc);
void mp_image_crop(struct mp_image *img, int x0, int y0, int x1, int y1);
void mp_image_crop_rc(struct mp_image *img, struct mp_rect rc);
void mp_image_vflip(struct mp_image *img);