summaryrefslogtreecommitdiff
path: root/media/libjxl/src/tools/viewer/load_jxl.h
diff options
context:
space:
mode:
Diffstat (limited to 'media/libjxl/src/tools/viewer/load_jxl.h')
-rw-r--r--media/libjxl/src/tools/viewer/load_jxl.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/media/libjxl/src/tools/viewer/load_jxl.h b/media/libjxl/src/tools/viewer/load_jxl.h
new file mode 100644
index 0000000000..594f646f01
--- /dev/null
+++ b/media/libjxl/src/tools/viewer/load_jxl.h
@@ -0,0 +1,20 @@
+// Copyright (c) the JPEG XL Project Authors. All rights reserved.
+//
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+#ifndef TOOLS_VIEWER_LOAD_JXL_H_
+#define TOOLS_VIEWER_LOAD_JXL_H_
+
+#include <QByteArray>
+#include <QImage>
+#include <QString>
+
+namespace jxl {
+
+QImage loadJxlImage(const QString& filename, const QByteArray& targetIccProfile,
+ qint64* elapsed, bool* usedRequestedProfile = nullptr);
+
+} // namespace jxl
+
+#endif // TOOLS_VIEWER_LOAD_JXL_H_