Put Image in dcpomatic:: to avoid Fastvideo name clash.
authorCarl Hetherington <cth@carlh.net>
Mon, 10 Aug 2020 22:57:24 +0000 (00:57 +0200)
committerCarl Hetherington <cth@carlh.net>
Sun, 13 Sep 2020 18:22:43 +0000 (20:22 +0200)
36 files changed:
src/lib/bitmap_text.h
src/lib/content_text.h
src/lib/dcp_video.cc
src/lib/ffmpeg_decoder.h
src/lib/ffmpeg_file_encoder.h
src/lib/ffmpeg_image_proxy.cc
src/lib/ffmpeg_image_proxy.h
src/lib/filter_graph.h
src/lib/image.cc
src/lib/image.h
src/lib/image_proxy.h
src/lib/j2k_image_proxy.cc
src/lib/j2k_image_proxy.h
src/lib/player.h
src/lib/player_video.cc
src/lib/player_video.h
src/lib/position_image.h
src/lib/raw_image_proxy.cc
src/lib/raw_image_proxy.h
src/lib/text_decoder.h
src/lib/video_decoder.h
src/lib/video_filter_graph.cc
src/lib/video_filter_graph.h
src/wx/film_viewer.h
src/wx/gl_video_view.cc
src/wx/gl_video_view.h
src/wx/simple_video_view.h
src/wx/video_view.h
src/wx/video_waveform_plot.cc
src/wx/video_waveform_plot.h
test/client_server_test.cc
test/image_test.cc
test/make_black_test.cc
test/pixel_formats_test.cc
test/test.cc
test/test.h

index 2314c2db0cec2ad1a521c24fcc008bd640e20cca..2748322e0a375ded47fd133d4f5384dbaa5fd6a4 100644 (file)
 #include "rect.h"
 #include <boost/shared_ptr.hpp>
 
-class Image;
+namespace dcpomatic {
+       class Image;
+}
 
 class BitmapText
 {
 public:
-       BitmapText (boost::shared_ptr<Image> i, dcpomatic::Rect<double> r)
+       BitmapText (boost::shared_ptr<dcpomatic::Image> i, dcpomatic::Rect<double> r)
                : image (i)
                , rectangle (r)
        {}
 
-       boost::shared_ptr<Image> image;
+       boost::shared_ptr<dcpomatic::Image> image;
        /** Area that the subtitle covers on its corresponding video, expressed in
         *  proportions of the image size; e.g. rectangle.x = 0.5 would mean that
         *  the rectangle starts half-way across the video.
index 0c0df1ee63bdce15f3c5d9905af302c31a10c43d..d6bcc7a80e2957048c56dc51d8ba55d18701b69c 100644 (file)
@@ -28,7 +28,9 @@
 #include <dcp/subtitle_string.h>
 #include <list>
 
-class Image;
+namespace dcpomatic {
+       class Image;
+}
 
 class ContentText
 {
@@ -48,7 +50,7 @@ private:
 class ContentBitmapText : public ContentText
 {
 public:
-       ContentBitmapText (dcpomatic::ContentTime f, boost::shared_ptr<Image> im, dcpomatic::Rect<double> r)
+       ContentBitmapText (dcpomatic::ContentTime f, boost::shared_ptr<dcpomatic::Image> im, dcpomatic::Rect<double> r)
                : ContentText (f)
                , sub (im, r)
        {}
index 36928b3fcfb8ac4f22c1cf674fa612d2a755a6a3..440571b760705c0dec18627e444e569d2b2eccba 100644 (file)
@@ -65,6 +65,8 @@ using dcp::raw_convert;
 #if BOOST_VERSION >= 106100
 using namespace boost::placeholders;
 #endif
+using namespace dcpomatic;
+
 
 #define DCI_COEFFICENT (48.0 / 52.37)
 
index 65f36a00461b9115ca67fea8e7ee60c60a944ef8..fc15456db0f814f193d14a7835bb57bc18d85263 100644 (file)
@@ -32,11 +32,14 @@ extern "C" {
 #include <boost/thread/mutex.hpp>
 #include <stdint.h>
 
+namespace dcpomatic {
+       class Image;
+}
+
+class AudioBuffers;
+class FFmpegAudioStream;
 class Log;
 class VideoFilterGraph;
-class FFmpegAudioStream;
-class AudioBuffers;
-class Image;
 struct ffmpeg_pts_offset_test;
 
 /** @class FFmpegDecoder
@@ -76,7 +79,7 @@ private:
        /** true if we have a subtitle which has not had emit_stop called for it yet */
        bool _have_current_subtitle;
 
-       boost::shared_ptr<Image> _black_image;
+       boost::shared_ptr<dcpomatic::Image> _black_image;
 
        std::vector<boost::optional<dcpomatic::ContentTime> > _next_time;
 };
index 19674d249f94f1bb29ccdaa834bece14398d26a8..0701c1779787d10e7de421c1bcb42883e1c453d4 100644 (file)
@@ -94,10 +94,10 @@ private:
 
        boost::shared_ptr<AudioBuffers> _pending_audio;
 
-       /** Store of shared_ptr<Image> to keep them alive whilst raw pointers into
+       /** Store of shared_ptr<dcpomatic::Image> to keep them alive whilst raw pointers into
            their data have been passed to FFmpeg.
        */
-       std::map<uint8_t*, boost::shared_ptr<const Image> > _pending_images;
+       std::map<uint8_t*, boost::shared_ptr<const dcpomatic::Image> > _pending_images;
        boost::mutex _pending_images_mutex;
 
        static int _video_stream_index;
index f2b72059b9a013f59bad2c66e7ad56baa1dc207d..3cd9841151f8d15a6aca20ae9d937bd2ebe3e885 100644 (file)
@@ -47,6 +47,8 @@ using boost::shared_ptr;
 using boost::optional;
 using boost::dynamic_pointer_cast;
 using dcp::raw_convert;
+using namespace dcpomatic;
+
 
 FFmpegImageProxy::FFmpegImageProxy (boost::filesystem::path path)
        : _data (path)
index aa77003a4f9169c90bbf47471806700369f6b96e..77cfa2fabba087fa9da57dbe7a54ad3ef381711e 100644 (file)
@@ -49,6 +49,6 @@ private:
            failed-decode errors can give more detail.
        */
        boost::optional<boost::filesystem::path> _path;
-       mutable boost::shared_ptr<Image> _image;
+       mutable boost::shared_ptr<dcpomatic::Image> _image;
        mutable boost::mutex _mutex;
 };
index 10298cb74297babfebcb03d0ddc377d77591d482..8f98f9f7685174496f7aaee1d145af0fcb94bcb5 100644 (file)
@@ -32,7 +32,6 @@ extern "C" {
 
 struct AVFilterContext;
 struct AVFrame;
-class Image;
 class Filter;
 
 /** @class FilterGraph
index 002c7df9ad11fb9e80947fcf51300096c5df27d2..3a33f72f549dbcd4f134e4ef027ba32cd1e44e39 100644 (file)
@@ -54,6 +54,7 @@ using std::list;
 using std::runtime_error;
 using boost::shared_ptr;
 using dcp::Size;
+using namespace dcpomatic;
 
 int
 Image::vertical_factor (int n) const
@@ -613,9 +614,9 @@ Image::alpha_blend (shared_ptr<const Image> other, Position<int> position)
                                double const b = lut_in[op[blue]];
 
                                /* RGB to XYZ, including Bradford transform and DCI companding */
-                               double const x = max (0.0, min (65535.0, r * fast_matrix[0] + g * fast_matrix[1] + b * fast_matrix[2]));
-                               double const y = max (0.0, min (65535.0, r * fast_matrix[3] + g * fast_matrix[4] + b * fast_matrix[5]));
-                               double const z = max (0.0, min (65535.0, r * fast_matrix[6] + g * fast_matrix[7] + b * fast_matrix[8]));
+                               double const x = std::max(0.0, std::min(65535.0, r * fast_matrix[0] + g * fast_matrix[1] + b * fast_matrix[2]));
+                               double const y = std::max(0.0, std::min(65535.0, r * fast_matrix[3] + g * fast_matrix[4] + b * fast_matrix[5]));
+                               double const z = std::max(0.0, std::min(65535.0, r * fast_matrix[6] + g * fast_matrix[7] + b * fast_matrix[8]));
 
                                /* Out gamma LUT and blend */
                                tp[0] = lrint(lut_out[lrint(x)] * 65535) * alpha + tp[0] * (1 - alpha);
@@ -743,7 +744,7 @@ Image::copy (shared_ptr<const Image> other, Position<int> position)
        DCPOMATIC_ASSERT (_pixel_format == AV_PIX_FMT_RGB24 && other->pixel_format() == AV_PIX_FMT_RGB24);
        DCPOMATIC_ASSERT (position.x >= 0 && position.y >= 0);
 
-       int const N = min (position.x + other->size().width, size().width) - position.x;
+       int const N = std::min (position.x + other->size().width, size().width) - position.x;
        for (int ty = position.y, oy = 0; ty < size().height && oy < other->size().height; ++ty, ++oy) {
                uint8_t * const tp = data()[0] + ty * stride()[0] + position.x * 3;
                uint8_t * const op = other->data()[0] + oy * other->stride()[0];
@@ -1031,7 +1032,7 @@ Image::aligned () const
 }
 
 PositionImage
-merge (list<PositionImage> images)
+dcpomatic::merge (list<PositionImage> images)
 {
        if (images.empty ()) {
                return PositionImage ();
@@ -1056,7 +1057,7 @@ merge (list<PositionImage> images)
 }
 
 bool
-operator== (Image const & a, Image const & b)
+dcpomatic::operator== (Image const & a, Image const & b)
 {
        if (a.planes() != b.planes() || a.pixel_format() != b.pixel_format() || a.aligned() != b.aligned()) {
                return false;
index 46633df679d00b9f6eceee34be126711c0fd5d85..c7e725d5540953a294464a6f22b03981f6d5be1e 100644 (file)
@@ -38,6 +38,8 @@ extern "C" {
 struct AVFrame;
 class Socket;
 
+namespace dcpomatic {
+
 class Image : public boost::enable_shared_from_this<Image>
 {
 public:
@@ -107,4 +109,6 @@ private:
 extern PositionImage merge (std::list<PositionImage> images);
 extern bool operator== (Image const & a, Image const & b);
 
+}
+
 #endif
index 08516e718bb4dbfe34ae5f07a81ef16abfe3265b..446fb83347a63f558f173f555c742031d881444a 100644 (file)
@@ -33,7 +33,10 @@ extern "C" {
 #include <boost/optional.hpp>
 #include <boost/utility.hpp>
 
-class Image;
+namespace dcpomatic {
+       class Image;
+}
+
 class Socket;
 
 namespace xmlpp {
@@ -61,20 +64,20 @@ public:
        virtual ~ImageProxy () {}
 
        struct Result {
-               Result (boost::shared_ptr<Image> image_, int log2_scaling_)
+               Result (boost::shared_ptr<dcpomatic::Image> image_, int log2_scaling_)
                        : image (image_)
                        , log2_scaling (log2_scaling_)
                        , error (false)
                {}
 
-               Result (boost::shared_ptr<Image> image_, int log2_scaling_, bool error_)
+               Result (boost::shared_ptr<dcpomatic::Image> image_, int log2_scaling_, bool error_)
                        : image (image_)
                        , log2_scaling (log2_scaling_)
                        , error (error_)
                {}
 
                /** Image (which will be aligned) */
-               boost::shared_ptr<Image> image;
+               boost::shared_ptr<dcpomatic::Image> image;
                /** log2 of any scaling down that has already been applied to the image;
                 *  e.g. if the image is already half the size of the original, this value
                 *  will be 1.
index df4af0cf984450c7f8e944105797334546c5a9af..c8a561d252c43457a1f79613e604de8fbbac9372 100644 (file)
@@ -48,6 +48,8 @@ using boost::optional;
 using boost::dynamic_pointer_cast;
 using dcp::Data;
 using dcp::raw_convert;
+using namespace dcpomatic;
+
 
 /** Construct a J2KImageProxy from a JPEG2000 file */
 J2KImageProxy::J2KImageProxy (boost::filesystem::path path, dcp::Size size, AVPixelFormat pixel_format)
index 71bcffb2c50754460736700310ad0af8f002cb3b..78e0cbd9bafcd0868040c5c3b2945ba1168eec5a 100644 (file)
@@ -79,7 +79,7 @@ private:
        dcp::Data _data;
        dcp::Size _size;
        boost::optional<dcp::Eye> _eye;
-       mutable boost::shared_ptr<Image> _image;
+       mutable boost::shared_ptr<dcpomatic::Image> _image;
        mutable boost::optional<dcp::Size> _target_size;
        mutable boost::optional<int> _reduce;
        AVPixelFormat _pixel_format;
index ea81ae939bb85e181e557502e1258921543f8849..17c9233cdbe62160c13d366f8fdeb3bb9e5fd659 100644 (file)
@@ -170,7 +170,7 @@ private:
         *  the size of preview in a window.
         */
        dcp::Size _video_container_size;
-       boost::shared_ptr<Image> _black_image;
+       boost::shared_ptr<dcpomatic::Image> _black_image;
 
        /** true if the player should ignore all video; i.e. never produce any */
        bool _ignore_video;
index 10e798ed510644a86e03d11249d737139268d3b0..1a4c9028d3c186dd887dae15c8975556329f5fd0 100644 (file)
@@ -42,6 +42,7 @@ using boost::optional;
 using boost::function;
 using dcp::Data;
 using dcp::raw_convert;
+using namespace dcpomatic;
 
 PlayerVideo::PlayerVideo (
        shared_ptr<const ImageProxy> in,
index 1a4a01d58cd8af449647a7f222a66e83f16b7146..9fd313a15eb03c51911ada209487fc4d57a0af28 100644 (file)
@@ -34,7 +34,10 @@ extern "C" {
 #include <boost/thread/mutex.hpp>
 #include <boost/noncopyable.hpp>
 
-class Image;
+namespace dcpomatic {
+       class Image;
+}
+
 class ImageProxy;
 class Film;
 class Socket;
@@ -68,7 +71,7 @@ public:
        void set_text (PositionImage);
 
        void prepare (boost::function<AVPixelFormat (AVPixelFormat)> pixel_format, bool aligned, bool fast);
-       boost::shared_ptr<Image> image (boost::function<AVPixelFormat (AVPixelFormat)> pixel_format, bool aligned, bool fast) const;
+       boost::shared_ptr<dcpomatic::Image> image (boost::function<AVPixelFormat (AVPixelFormat)> pixel_format, bool aligned, bool fast) const;
 
        static AVPixelFormat force (AVPixelFormat, AVPixelFormat);
        static AVPixelFormat keep_xyz_or_rgb (AVPixelFormat);
@@ -134,7 +137,7 @@ private:
        boost::optional<Frame> _video_frame;
 
        mutable boost::mutex _mutex;
-       mutable boost::shared_ptr<Image> _image;
+       mutable boost::shared_ptr<dcpomatic::Image> _image;
        /** _crop that was used to make _image */
        mutable Crop _image_crop;
        /** _inter_size that was used to make _image */
index 3e6d833e78a996a32b301df7446d0d85f0aa3313..bcae4d15919eebed1ec99259b2d244a437fc834e 100644 (file)
 #include "position.h"
 #include <boost/shared_ptr.hpp>
 
-class Image;
+namespace dcpomatic {
+       class Image;
+}
 
 class PositionImage
 {
 public:
        PositionImage () {}
 
-       PositionImage (boost::shared_ptr<Image> i, Position<int> p)
+       PositionImage (boost::shared_ptr<dcpomatic::Image> i, Position<int> p)
                : image (i)
                , position (p)
        {}
 
-       boost::shared_ptr<Image> image;
+       boost::shared_ptr<dcpomatic::Image> image;
        Position<int> position;
 
        bool same (PositionImage const & other) const;
index 09902c3a29b5c0a5844b83fe50f932e5039b34e0..09b73da8e66bd1cd139c876039907a256ce6c8ea 100644 (file)
@@ -40,6 +40,7 @@ using boost::shared_ptr;
 using boost::dynamic_pointer_cast;
 using boost::optional;
 using dcp::raw_convert;
+using namespace dcpomatic;
 
 RawImageProxy::RawImageProxy (shared_ptr<Image> image)
        : _image (image)
index 7971d4a109a82d0ed8ff741a19a99088b15ffe04..52df5756cde4cd2dfb95681aad310e74ddf16fc6 100644 (file)
@@ -26,7 +26,7 @@
 class RawImageProxy : public ImageProxy
 {
 public:
-       explicit RawImageProxy (boost::shared_ptr<Image>);
+       explicit RawImageProxy (boost::shared_ptr<dcpomatic::Image>);
        RawImageProxy (boost::shared_ptr<cxml::Node> xml, boost::shared_ptr<Socket> socket);
 
        Result image (
@@ -39,7 +39,7 @@ public:
        size_t memory_used () const;
 
 private:
-       boost::shared_ptr<Image> _image;
+       boost::shared_ptr<dcpomatic::Image> _image;
 };
 
 #endif
index fba9b59472b74047db2d45761321582a833faf7e..f844278912c4039d3596785c76eb97311d5aa2ab 100644 (file)
@@ -33,7 +33,9 @@ namespace sub {
        class Subtitle;
 }
 
-class Image;
+namespace dcpomatic {
+       class Image;
+}
 
 class TextDecoder : public DecoderPart
 {
@@ -48,8 +50,8 @@ public:
                return _position;
        }
 
-       void emit_bitmap_start (dcpomatic::ContentTime from, boost::shared_ptr<Image> image, dcpomatic::Rect<double> rect);
-       void emit_bitmap (dcpomatic::ContentTimePeriod period, boost::shared_ptr<Image> image, dcpomatic::Rect<double> rect);
+       void emit_bitmap_start (dcpomatic::ContentTime from, boost::shared_ptr<dcpomatic::Image> image, dcpomatic::Rect<double> rect);
+       void emit_bitmap (dcpomatic::ContentTimePeriod period, boost::shared_ptr<dcpomatic::Image> image, dcpomatic::Rect<double> rect);
        void emit_plain_start (dcpomatic::ContentTime from, std::list<dcp::SubtitleString> s);
        void emit_plain_start (dcpomatic::ContentTime from, sub::Subtitle const & subtitle);
        void emit_plain (dcpomatic::ContentTimePeriod period, std::list<dcp::SubtitleString> s);
index dca8eef11482b8a473b800670f270adfc6f42000..89b6d78d47f274c95f47a30a85067e9b1232b3e2 100644 (file)
 #include <boost/signals2.hpp>
 #include <boost/shared_ptr.hpp>
 
-class VideoContent;
+class FrameIntervalChecker;
 class ImageProxy;
-class Image;
 class Log;
-class FrameIntervalChecker;
+class VideoContent;
 
 /** @class VideoDecoder
  *  @brief Parent for classes which decode video.
index 9b297c87bf63549e6736b1134e168c650bd1c026..717638ef5e1877bf0c1b954353348840ffbb7dc0 100644 (file)
@@ -35,6 +35,8 @@ using std::vector;
 using std::string;
 using std::make_pair;
 using boost::shared_ptr;
+using namespace dcpomatic;
+
 
 VideoFilterGraph::VideoFilterGraph (dcp::Size s, AVPixelFormat p, dcp::Fraction r)
        : _size (s)
index 19cb24e363c4b34c540fa6b8df5dcc2129bcf633..f0249f1dd82b92f5666edc3b2a9ea04f78319cc3 100644 (file)
@@ -26,7 +26,7 @@ public:
        VideoFilterGraph (dcp::Size s, AVPixelFormat p, dcp::Fraction r);
 
        bool can_process (dcp::Size s, AVPixelFormat p) const;
-       std::list<std::pair<boost::shared_ptr<Image>, int64_t> > process (AVFrame * frame);
+       std::list<std::pair<boost::shared_ptr<dcpomatic::Image>, int64_t> > process (AVFrame * frame);
 
 protected:
        std::string src_parameters () const;
index 11a4731fca82648c1fbf5a47593d1572d51bd526..cd92f1beb02d13a6cc35fec72ecc81e2a8c82c5b 100644 (file)
@@ -34,14 +34,13 @@ DCPOMATIC_DISABLE_WARNINGS
 #include <wx/wx.h>
 DCPOMATIC_ENABLE_WARNINGS
 
-class wxToggleButton;
-class FFmpegPlayer;
-class Image;
-class RGBPlusAlphaImage;
-class PlayerVideo;
-class Player;
 class Butler;
 class ClosedCaptionsDialog;
+class FFmpegPlayer;
+class Player;
+class PlayerVideo;
+class RGBPlusAlphaImage;
+class wxToggleButton;
 
 /** @class FilmViewer
  *  @brief A wx widget to view a Film.
index a82d5a27688e156f0c5eab8f8b7aa82fdc6de02d..c4ee53b1e24626e009fe995c4d35ad4b4986fc4f 100644 (file)
@@ -51,6 +51,7 @@
 using std::cout;
 using boost::shared_ptr;
 using boost::optional;
+using namespace dcpomatic;
 
 
 static void
index e1a7fc1acdba7b3237b50b163f355c3714b31ba3..a024c2401b4d22c83d206772fa1ed8cf3e795737 100644 (file)
@@ -54,7 +54,7 @@ public:
        }
 
 private:
-       void set_image (boost::shared_ptr<const Image> image);
+       void set_image (boost::shared_ptr<const dcpomatic::Image> image);
        void set_image_and_draw ();
        void draw (Position<int> inter_position, dcp::Size inter_size);
        void thread ();
index 323047adaca9182fcc237c0dfa6a330aa3f6cfd7..7750af7da76109db3d47dbdef35083f80b723675 100644 (file)
@@ -42,7 +42,7 @@ public:
        bool display_next_frame (bool non_blocking);
 
 private:
-       void set_image (boost::shared_ptr<const Image> image) {
+       void set_image (boost::shared_ptr<const dcpomatic::Image> image) {
                _image = image;
        }
 
@@ -51,7 +51,7 @@ private:
        void timer ();
 
        wxPanel* _panel;
-       boost::shared_ptr<const Image> _image;
+       boost::shared_ptr<const dcpomatic::Image> _image;
        wxTimer _timer;
        Position<int> _inter_position;
        dcp::Size _inter_size;
index 50ea40fc76e081ae7ba16711d3a1c2adfdf9b66f..825273373b9bde74161c63a4c537058f4fab12c8 100644 (file)
 #include <boost/thread.hpp>
 #include <boost/noncopyable.hpp>
 
-class Image;
-class wxWindow;
 class FilmViewer;
 class PlayerVideo;
+class wxWindow;
+
+namespace dcpomatic {
+       class Image;
+}
 
 class VideoView : public ExceptionStore, public boost::noncopyable
 {
index c6fa883fa871c227b321dea92819d126998cd922..7e356597ec68159eba91f75bebb29f6234877419 100644 (file)
@@ -39,6 +39,8 @@ using std::string;
 using boost::weak_ptr;
 using boost::shared_ptr;
 using dcp::locale_convert;
+using namespace dcpomatic;
+
 
 int const VideoWaveformPlot::_vertical_margin = 8;
 int const VideoWaveformPlot::_pixel_values = 4096;
index 1e38f58906b35d4b7f5d7b00802bcb1126943785..ecb43e27200dcdbc97bcc22784e4899194401b86 100644 (file)
@@ -30,10 +30,13 @@ namespace dcp {
        class OpenJPEGImage;
 }
 
-class PlayerVideo;
-class Image;
+namespace dcpomatic {
+       class Image;
+}
+
 class Film;
 class FilmViewer;
+class PlayerVideo;
 
 class VideoWaveformPlot : public wxPanel
 {
@@ -60,7 +63,7 @@ private:
 
        boost::weak_ptr<const Film> _film;
        boost::shared_ptr<dcp::OpenJPEGImage> _image;
-       boost::shared_ptr<const Image> _waveform;
+       boost::shared_ptr<const dcpomatic::Image> _waveform;
        bool _dirty;
        bool _enabled;
        int _component;
index 75cee85b325e5e4d2b452463af3ca21231edd67f..6146bdeb07112980fd33d3c157ed336aacd4222d 100644 (file)
@@ -47,6 +47,8 @@ using boost::thread;
 using boost::optional;
 using boost::weak_ptr;
 using dcp::Data;
+using namespace dcpomatic;
+
 
 void
 do_remote_encode (shared_ptr<DCPVideo> frame, EncodeServerDescription description, Data locally_encoded)
index 5fccf6b9ba7acdf158febe3decdb8a61b609a3f6..b45d9a97b6a24992c0fce78ae83b5a056243dc04 100644 (file)
@@ -34,6 +34,8 @@ using std::string;
 using std::list;
 using std::cout;
 using boost::shared_ptr;
+using namespace dcpomatic;
+
 
 BOOST_AUTO_TEST_CASE (aligned_image_test)
 {
index 2ed5db8eff55c91286e7045fde006460328bae39..ddcb772d34e197537eee1f6e86e61950c6d43085 100644 (file)
@@ -33,6 +33,8 @@ extern "C" {
 #include "lib/image.h"
 
 using std::list;
+using namespace dcpomatic;
+
 
 BOOST_AUTO_TEST_CASE (make_black_test)
 {
index 952cc0af91039cce392b11f130cb64ce453aee61..e8659cd7e9570c25ea870a66941e368d9b89f071 100644 (file)
@@ -36,6 +36,7 @@ extern "C" {
 
 using std::list;
 using std::cout;
+using namespace dcpomatic;
 
 /** @struct Case
  *  @brief  A test case for pixel_formats_test.
index 32d32f98879f8ddefcf16f7d19447085d5d873a6..b044a2819acd17576b0e8c9e223e23a23c1dcb7e 100644 (file)
@@ -509,7 +509,7 @@ wait_for_jobs ()
 }
 
 void
-write_image (shared_ptr<const Image> image, boost::filesystem::path file, string format, MagickCore::StorageType pixel_type)
+write_image (shared_ptr<const dcpomatic::Image> image, boost::filesystem::path file, string format, MagickCore::StorageType pixel_type)
 {
        using namespace MagickCore;
 
index b620a68a0802195982b02ddf365a22563cb2e8ce..0c1e304e0a2e64b32f53dd0e316b6d29438800e4 100644 (file)
@@ -26,9 +26,11 @@ DCPOMATIC_ENABLE_WARNINGS
 #include <boost/shared_ptr.hpp>
 
 class Film;
-class Image;
 class Log;
 
+namespace dcpomatic {
+       class Image;
+}
 
 class TestPaths
 {
@@ -52,7 +54,7 @@ extern void check_file (boost::filesystem::path, boost::filesystem::path);
 extern void check_ffmpeg (boost::filesystem::path, boost::filesystem::path, int audio_tolerance);
 extern void check_image (boost::filesystem::path, boost::filesystem::path, double threshold = 0.01);
 extern boost::filesystem::path test_film_dir (std::string);
-extern void write_image (boost::shared_ptr<const Image> image, boost::filesystem::path file, std::string format, MagickCore::StorageType pixel_type = MagickCore::CharPixel);
+extern void write_image (boost::shared_ptr<const dcpomatic::Image> image, boost::filesystem::path file, std::string format, MagickCore::StorageType pixel_type = MagickCore::CharPixel);
 boost::filesystem::path dcp_file (boost::shared_ptr<const Film> film, std::string prefix);
 void check_one_frame (boost::filesystem::path dcp, int64_t index, boost::filesystem::path ref);
 extern boost::filesystem::path subtitle_file (boost::shared_ptr<Film> film);