Note that newer libsub version is required.
[dcpomatic.git] / src / lib / ffmpeg_image_proxy.h
index 48317ed75c7ae16d3d3d61c30e729a9ec9c4976c..b567fadee0825e2c6506746c6d44739c999132ea 100644 (file)
@@ -19,7 +19,6 @@
 */
 
 #include "image_proxy.h"
-#include "types.h"
 #include <dcp/array_data.h>
 #include <boost/thread/mutex.hpp>
 #include <boost/filesystem.hpp>
@@ -34,12 +33,12 @@ public:
        Result image (
                Image::Alignment alignment,
                boost::optional<dcp::Size> size = boost::optional<dcp::Size> ()
-               ) const;
+               ) const override;
 
-       void add_metadata (xmlpp::Node *) const;
-       void write_to_socket (std::shared_ptr<Socket>) const;
-       bool same (std::shared_ptr<const ImageProxy> other) const;
-       size_t memory_used () const;
+       void add_metadata (xmlpp::Node *) const override;
+       void write_to_socket (std::shared_ptr<Socket>) const override;
+       bool same (std::shared_ptr<const ImageProxy> other) const override;
+       size_t memory_used () const override;
 
        int avio_read (uint8_t* buffer, int const amount);
        int64_t avio_seek (int64_t const pos, int whence);
@@ -51,6 +50,6 @@ private:
            failed-decode errors can give more detail.
        */
        boost::optional<boost::filesystem::path> _path;
-       mutable std::shared_ptr<Image> _image;
+       mutable std::shared_ptr<const Image> _image;
        mutable boost::mutex _mutex;
 };