From 63f506966cc4e9c459b3bcb430a11481f9d3a24a Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 9 Jul 2014 17:05:26 +0100 Subject: Split up image_proxy.{cc,h} --- src/lib/image_proxy.h | 52 +++++---------------------------------------------- 1 file changed, 5 insertions(+), 47 deletions(-) (limited to 'src/lib/image_proxy.h') diff --git a/src/lib/image_proxy.h b/src/lib/image_proxy.h index 9807d027d..1a23001cb 100644 --- a/src/lib/image_proxy.h +++ b/src/lib/image_proxy.h @@ -17,6 +17,9 @@ */ +#ifndef DCPOMATIC_IMAGE_PROXY_H +#define DCPOMATIC_IMAGE_PROXY_H + /** @file src/lib/image_proxy.h * @brief ImageProxy and subclasses. */ @@ -64,51 +67,6 @@ protected: boost::shared_ptr _log; }; -class RawImageProxy : public ImageProxy -{ -public: - RawImageProxy (boost::shared_ptr, boost::shared_ptr log); - RawImageProxy (boost::shared_ptr xml, boost::shared_ptr socket, boost::shared_ptr log); - - boost::shared_ptr image () const; - void add_metadata (xmlpp::Node *) const; - void send_binary (boost::shared_ptr) const; - -private: - boost::shared_ptr _image; -}; - -class MagickImageProxy : public ImageProxy -{ -public: - MagickImageProxy (boost::filesystem::path, boost::shared_ptr log); - MagickImageProxy (boost::shared_ptr xml, boost::shared_ptr socket, boost::shared_ptr log); - - boost::shared_ptr image () const; - void add_metadata (xmlpp::Node *) const; - void send_binary (boost::shared_ptr) const; - -private: - Magick::Blob _blob; - mutable boost::shared_ptr _image; -}; - -class J2KImageProxy : public ImageProxy -{ -public: - J2KImageProxy (boost::shared_ptr frame, dcp::Size, boost::shared_ptr log); - J2KImageProxy (boost::shared_ptr frame, dcp::Size, dcp::Eye, boost::shared_ptr log); - J2KImageProxy (boost::shared_ptr xml, boost::shared_ptr socket, boost::shared_ptr log); - - boost::shared_ptr image () const; - void add_metadata (xmlpp::Node *) const; - void send_binary (boost::shared_ptr) const; - -private: - boost::shared_ptr _mono; - boost::shared_ptr _stereo; - dcp::Size _size; - dcp::Eye _eye; -}; - boost::shared_ptr image_proxy_factory (boost::shared_ptr xml, boost::shared_ptr socket, boost::shared_ptr log); + +#endif -- cgit v1.2.3