diff options
author | wm4 <wm4@nowhere> | 2019-10-31 15:44:09 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2019-10-31 15:44:09 +0100 |
commit | 2c43d2b75a88b8e0e8f0a715f993ffc1c8977d13 (patch) | |
tree | c32e05a5cb48910cbd3ae0f1020f18fcb0adf8b3 /video/image_writer.h | |
parent | 835586513d026bcf1e7dec4693e07c28dda8cedd (diff) | |
download | mpv-2c43d2b75a88b8e0e8f0a715f993ffc1c8977d13.tar.bz2 mpv-2c43d2b75a88b8e0e8f0a715f993ffc1c8977d13.tar.xz |
screenshot, vo_image: use global swscale/zimg parameters
Lots of dumb crap to do... something. Instead of adding yet another dumb
helper, just use the main" sws_utils API in both callers. (Which,
unfortunately, has been duplicated for glorious webp screenshots,
despite the fact that webp is crap.)
Good part: can enable zimg for screenshots (as far as needed).
Bad part: uses "default" swscale parameters instead of HQ now.
Diffstat (limited to 'video/image_writer.h')
-rw-r--r-- | video/image_writer.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/video/image_writer.h b/video/image_writer.h index d178d7398b..f6d3b58f87 100644 --- a/video/image_writer.h +++ b/video/image_writer.h @@ -57,12 +57,15 @@ int image_writer_format_from_ext(const char *ext); * * File format and compression settings are controlled via the opts parameter. * + * If global!=NULL, use command line scaler options etc. + * * NOTE: The fields w/h/width/height of the passed mp_image must be all set * accordingly. Setting w and width or h and height to different values * can be used to store snapshots of anamorphic video. */ bool write_image(struct mp_image *image, const struct image_writer_opts *opts, - const char *filename, struct mp_log *log); + const char *filename, struct mpv_global *global, + struct mp_log *log); // Debugging helper. void dump_png(struct mp_image *image, const char *filename, struct mp_log *log); |