summaryrefslogtreecommitdiffstats
path: root/player/screenshot.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2019-10-31 15:44:09 +0100
committerwm4 <wm4@nowhere>2019-10-31 15:44:09 +0100
commit2c43d2b75a88b8e0e8f0a715f993ffc1c8977d13 (patch)
treec32e05a5cb48910cbd3ae0f1020f18fcb0adf8b3 /player/screenshot.h
parent835586513d026bcf1e7dec4693e07c28dda8cedd (diff)
downloadmpv-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 'player/screenshot.h')
-rw-r--r--player/screenshot.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/player/screenshot.h b/player/screenshot.h
index 1ccee790d6..990cb9503b 100644
--- a/player/screenshot.h
+++ b/player/screenshot.h
@@ -23,6 +23,7 @@
struct MPContext;
struct mp_image;
struct mp_log;
+struct mpv_global;
// One time initialization at program start.
void screenshot_init(struct MPContext *mpctx);
@@ -32,9 +33,10 @@ void screenshot_flip(struct MPContext *mpctx);
/* Return the image converted to the given format. If the pixel aspect ratio is
* not 1:1, the image is scaled as well. Returns NULL on failure.
+ * If global!=NULL, use command line scaler options etc.
*/
struct mp_image *convert_image(struct mp_image *image, int destfmt,
- struct mp_log *log);
+ struct mpv_global *global, struct mp_log *log);
// Handlers for the user-facing commands.
void cmd_screenshot(void *p);