summaryrefslogtreecommitdiff
path: root/src/lib/raw_image_proxy.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-12-30 15:43:14 +0100
committerCarl Hetherington <cth@carlh.net>2025-01-05 12:58:13 +0100
commitb03f2277a205ff7e7cdaa12c6e52322ea474a7af (patch)
treed6067668105b2f0c6d0651bd1b8bd4186e0b8893 /src/lib/raw_image_proxy.cc
parente46ff5f1cf168fb73ea930f3e8469165e5f6644e (diff)
Bump libdcp for raw_convert changes.
raw_convert<string> is gone, so here we use fmt::{to_string,format} instead. Other raw_converts now use fast_float.
Diffstat (limited to 'src/lib/raw_image_proxy.cc')
-rw-r--r--src/lib/raw_image_proxy.cc9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/lib/raw_image_proxy.cc b/src/lib/raw_image_proxy.cc
index 1ad78827c..9e819140b 100644
--- a/src/lib/raw_image_proxy.cc
+++ b/src/lib/raw_image_proxy.cc
@@ -21,7 +21,6 @@
#include "raw_image_proxy.h"
#include "image.h"
-#include <dcp/raw_convert.h>
#include <dcp/util.h>
#include <dcp/warnings.h>
#include <libcxml/cxml.h>
@@ -31,6 +30,7 @@ extern "C" {
LIBDCP_DISABLE_WARNINGS
#include <libxml++/libxml++.h>
LIBDCP_ENABLE_WARNINGS
+#include <fmt/format.h>
#include "i18n.h"
@@ -42,7 +42,6 @@ using std::pair;
using std::shared_ptr;
using std::string;
using boost::optional;
-using dcp::raw_convert;
RawImageProxy::RawImageProxy(shared_ptr<const Image> image)
@@ -76,9 +75,9 @@ void
RawImageProxy::add_metadata(xmlpp::Element* element) const
{
cxml::add_text_child(element, "Type", N_("Raw"));
- cxml::add_text_child(element, "Width", raw_convert<string>(_image->size().width));
- cxml::add_text_child(element, "Height", raw_convert<string>(_image->size().height));
- cxml::add_text_child(element, "PixelFormat", raw_convert<string>(static_cast<int>(_image->pixel_format())));
+ cxml::add_text_child(element, "Width", fmt::to_string(_image->size().width));
+ cxml::add_text_child(element, "Height", fmt::to_string(_image->size().height));
+ cxml::add_text_child(element, "PixelFormat", fmt::to_string(static_cast<int>(_image->pixel_format())));
}