summaryrefslogtreecommitdiffstats
path: root/video/mp_image.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-11-03 23:55:16 +0100
committerwm4 <wm4@nowhere>2013-11-03 23:55:16 +0100
commit6f17410f88fd3765b6598b4e706b1d03ee85efe8 (patch)
tree20847e88cd1c5780f58eef1ccf1c32743d5b4f37 /video/mp_image.h
parent3b5f8ea571b2227097840ff3e0be0168fdd813eb (diff)
downloadmpv-6f17410f88fd3765b6598b4e706b1d03ee85efe8.tar.bz2
mpv-6f17410f88fd3765b6598b4e706b1d03ee85efe8.tar.xz
mp_image: add helper for copying image attributes
This enw function is similar to mp_image_set_params(), but doesn't force setting "hard" parameters like image size and format.
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 e198c4e547..f7e7353475 100644
--- a/video/mp_image.h
+++ b/video/mp_image.h
@@ -153,6 +153,9 @@ void mp_image_params_from_image(struct mp_image_params *params,
void mp_image_set_params(struct mp_image *image,
const struct mp_image_params *params);
+void mp_image_set_attributes(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);