summaryrefslogtreecommitdiffstats
path: root/video/mp_image.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-11-12 19:19:16 +0100
committerwm4 <wm4@nowhere>2014-11-12 19:30:59 +0100
commit41365313433875b0ac2f1fa0e6d14ffa4f5e4e8d (patch)
tree9e14faf39d8ec96e828c142b44eb72cef892b727 /video/mp_image.h
parent509997ec129dc68466dc14abfc5e3e1b26e1279e (diff)
downloadmpv-41365313433875b0ac2f1fa0e6d14ffa4f5e4e8d.tar.bz2
mpv-41365313433875b0ac2f1fa0e6d14ffa4f5e4e8d.tar.xz
video: move formatting of image parameters to separate function
Diffstat (limited to 'video/mp_image.h')
-rw-r--r--video/mp_image.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/video/mp_image.h b/video/mp_image.h
index 9cdc7fdf77..feedd24174 100644
--- a/video/mp_image.h
+++ b/video/mp_image.h
@@ -142,6 +142,10 @@ struct mp_image *mp_image_new_external_ref(struct mp_image *img, void *arg,
void mp_image_params_guess_csp(struct mp_image_params *params);
+char *mp_image_params_to_str_buf(char *b, size_t bs,
+ const struct mp_image_params *p);
+#define mp_image_params_to_str(p) mp_image_params_to_str_buf((char[64]){0}, 64, p)
+
bool mp_image_params_valid(const struct mp_image_params *p);
bool mp_image_params_equal(const struct mp_image_params *p1,
const struct mp_image_params *p2);