X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fraw_image_proxy.cc;h=e73a1543d34faabe40467f284065e00784bb09ca;hb=05c37bfdb86be26497d5baa448a0cbda20e33bed;hp=7e0688d13eee5beacb75a1810d7997c3e934babb;hpb=946dbad9821e676f1d8fdc5abba459da54b8e84c;p=dcpomatic.git diff --git a/src/lib/raw_image_proxy.cc b/src/lib/raw_image_proxy.cc index 7e0688d13..e73a1543d 100644 --- a/src/lib/raw_image_proxy.cc +++ b/src/lib/raw_image_proxy.cc @@ -17,29 +17,28 @@ */ +#include "raw_image_proxy.h" +#include "image.h" +#include "raw_convert.h" +#include extern "C" { #include } #include -#include -#include -#include "raw_image_proxy.h" -#include "image.h" #include "i18n.h" using std::string; using boost::shared_ptr; +using boost::optional; -RawImageProxy::RawImageProxy (shared_ptr image, shared_ptr log) - : ImageProxy (log) - , _image (image) +RawImageProxy::RawImageProxy (shared_ptr image) + : _image (image) { } -RawImageProxy::RawImageProxy (shared_ptr xml, shared_ptr socket, shared_ptr log) - : ImageProxy (log) +RawImageProxy::RawImageProxy (shared_ptr xml, shared_ptr socket) { dcp::Size size ( xml->number_child ("Width"), xml->number_child ("Height") @@ -50,7 +49,7 @@ RawImageProxy::RawImageProxy (shared_ptr xml, shared_ptr soc } shared_ptr -RawImageProxy::image () const +RawImageProxy::image (optional) const { return _image; } @@ -59,9 +58,9 @@ void RawImageProxy::add_metadata (xmlpp::Node* node) const { node->add_child("Type")->add_child_text (N_("Raw")); - node->add_child("Width")->add_child_text (dcp::raw_convert (_image->size().width)); - node->add_child("Height")->add_child_text (dcp::raw_convert (_image->size().height)); - node->add_child("PixelFormat")->add_child_text (dcp::raw_convert (_image->pixel_format ())); + node->add_child("Width")->add_child_text (raw_convert (_image->size().width)); + node->add_child("Height")->add_child_text (raw_convert (_image->size().height)); + node->add_child("PixelFormat")->add_child_text (raw_convert (_image->pixel_format ())); } void