summaryrefslogtreecommitdiffstats
path: root/video/mp_image.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-07-18 13:42:57 +0200
committerwm4 <wm4@nowhere>2013-07-18 13:44:17 +0200
commitdc73b200db5b13138e9b8829d61b55c7db8f48b4 (patch)
treef7969b82c977b9ebf788c42dc2d8902e962e98e4 /video/mp_image.h
parentb81f5e2757f3c3270500a8dcfdafaab7d717dd2a (diff)
downloadmpv-dc73b200db5b13138e9b8829d61b55c7db8f48b4.tar.bz2
mpv-dc73b200db5b13138e9b8829d61b55c7db8f48b4.tar.xz
mp_image: one utility function to set image parameters
Diffstat (limited to 'video/mp_image.h')
-rw-r--r--video/mp_image.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/video/mp_image.h b/video/mp_image.h
index 7324423967..141483eedd 100644
--- a/video/mp_image.h
+++ b/video/mp_image.h
@@ -143,6 +143,9 @@ bool mp_image_params_equals(const struct mp_image_params *p1,
void mp_image_params_from_image(struct mp_image_params *params,
const struct mp_image *image);
+void mp_image_set_params(struct mp_image *image,
+ const struct mp_image_params *params);
+
struct AVFrame;
void mp_image_copy_fields_from_av_frame(struct mp_image *dst,
struct AVFrame *src);