summaryrefslogtreecommitdiffstats
path: root/video/image_writer.h
diff options
context:
space:
mode:
authorNiklas Haas <git@haasn.dev>2023-02-13 20:59:46 +0100
committerNiklas Haas <github-daiK1o@haasn.dev>2023-02-13 21:53:41 +0100
commit01351a6412be8751d06c8ccc9baa3979c530325c (patch)
tree08fdef2cf2fde5c962b6c1b20baa3098e36dc307 /video/image_writer.h
parent862be6c2376ad5abdaf705138e5f3ba8a3f4bd82 (diff)
downloadmpv-01351a6412be8751d06c8ccc9baa3979c530325c.tar.bz2
mpv-01351a6412be8751d06c8ccc9baa3979c530325c.tar.xz
video/image_writer: add image_writer_flexible_csp
PNG only supports this since the introduction of cICP, so put a version check on the next API version bump after the cICP writing patch got merged.
Diffstat (limited to 'video/image_writer.h')
-rw-r--r--video/image_writer.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/video/image_writer.h b/video/image_writer.h
index 54871bacf0..8a9d67e5bf 100644
--- a/video/image_writer.h
+++ b/video/image_writer.h
@@ -50,6 +50,9 @@ const char *image_writer_file_ext(const struct image_writer_opts *opts);
// Return whether the selected format likely supports >8 bit per component.
bool image_writer_high_depth(const struct image_writer_opts *opts);
+// Return whether the selected format likely supports non-sRGB colorspaces
+bool image_writer_flexible_csp(const struct image_writer_opts *opts);
+
// Map file extension to format ID - return 0 (which is invalid) if unknown.
int image_writer_format_from_ext(const char *ext);