diff options
Diffstat (limited to 'image_writer.c')
-rw-r--r-- | image_writer.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/image_writer.c b/image_writer.c index 2ac2c223a1..dc7ff96199 100644 --- a/image_writer.c +++ b/image_writer.c @@ -318,3 +318,10 @@ int write_image(struct mp_image *image, const struct image_writer_opts *opts, return success; } + +void dump_png(struct mp_image *image, const char *filename) +{ + struct image_writer_opts opts = image_writer_opts_defaults; + opts.format = "png"; + write_image(image, &opts, filename); +} |