summaryrefslogtreecommitdiff
path: root/src/lib/image_jpeg.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-12-18 23:34:26 +0100
committerCarl Hetherington <cth@carlh.net>2022-04-29 00:27:17 +0200
commit59c4edb69ba926d3790198cd2b62dc601944a632 (patch)
tree5f209c2aa5cbf60ec194bc1ab25ea63c75c4e854 /src/lib/image_jpeg.h
parent7ec6c86c913fba820870565ee757fdf43ae47433 (diff)
Add image_as_jpeg()
Diffstat (limited to 'src/lib/image_jpeg.h')
-rw-r--r--src/lib/image_jpeg.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/lib/image_jpeg.h b/src/lib/image_jpeg.h
new file mode 100644
index 000000000..5c017fc2c
--- /dev/null
+++ b/src/lib/image_jpeg.h
@@ -0,0 +1,22 @@
+/*
+ Copyright (C) 2021 Carl Hetherington <cth@carlh.net>
+
+ This file is part of DCP-o-matic.
+
+ DCP-o-matic is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ DCP-o-matic is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with DCP-o-matic. If not, see <http://www.gnu.org/licenses/>.
+
+*/
+
+
+dcp::ArrayData image_as_jpeg (std::shared_ptr<const Image> image, int quality);