From b03f2277a205ff7e7cdaa12c6e52322ea474a7af Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 30 Dec 2024 15:43:14 +0100 Subject: Bump libdcp for raw_convert changes. raw_convert is gone, so here we use fmt::{to_string,format} instead. Other raw_converts now use fast_float. --- src/lib/j2k_image_proxy.cc | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'src/lib/j2k_image_proxy.cc') diff --git a/src/lib/j2k_image_proxy.cc b/src/lib/j2k_image_proxy.cc index 023723c8b..8fb387158 100644 --- a/src/lib/j2k_image_proxy.cc +++ b/src/lib/j2k_image_proxy.cc @@ -27,7 +27,6 @@ #include #include #include -#include #include #include #include @@ -35,6 +34,7 @@ LIBDCP_DISABLE_WARNINGS #include LIBDCP_ENABLE_WARNINGS +#include #include #include "i18n.h" @@ -48,7 +48,6 @@ using std::shared_ptr; using std::string; using boost::optional; using dcp::ArrayData; -using dcp::raw_convert; /** Construct a J2KImageProxy from a JPEG2000 file */ @@ -195,12 +194,12 @@ void J2KImageProxy::add_metadata(xmlpp::Element* element) const { cxml::add_text_child(element, "Type", N_("J2K")); - cxml::add_text_child(element, "Width", raw_convert(_size.width)); - cxml::add_text_child(element, "Height", raw_convert(_size.height)); + cxml::add_text_child(element, "Width", fmt::to_string(_size.width)); + cxml::add_text_child(element, "Height", fmt::to_string(_size.height)); if (_eye) { - cxml::add_text_child(element, "Eye", raw_convert(static_cast(_eye.get()))); + cxml::add_text_child(element, "Eye", fmt::to_string(static_cast(_eye.get()))); } - cxml::add_text_child(element, "Size", raw_convert(_data->size())); + cxml::add_text_child(element, "Size", fmt::to_string(_data->size())); } -- cgit v1.2.3