Fix font_id_map errors when importing DCP subtitles that have no
[dcpomatic.git] / src / lib / ffmpeg_image_proxy.h
index 62b99d280f42e4b7f42f790e2cb52f0be66d475b..b2b0260b5437eab63ae99bc66e8d30ad76349ddd 100644 (file)
@@ -19,6 +19,7 @@
 */
 
 #include "image_proxy.h"
+#include "types.h"
 #include <dcp/array_data.h>
 #include <boost/thread/mutex.hpp>
 #include <boost/filesystem.hpp>
@@ -28,16 +29,17 @@ class FFmpegImageProxy : public ImageProxy
 public:
        explicit FFmpegImageProxy (boost::filesystem::path);
        explicit FFmpegImageProxy (dcp::ArrayData);
-       FFmpegImageProxy (boost::shared_ptr<cxml::Node> xml, boost::shared_ptr<Socket> socket);
+       FFmpegImageProxy (std::shared_ptr<Socket> socket);
 
        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 (boost::shared_ptr<Socket>) const;
-       bool same (boost::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);
@@ -49,6 +51,6 @@ private:
            failed-decode errors can give more detail.
        */
        boost::optional<boost::filesystem::path> _path;
-       mutable boost::shared_ptr<Image> _image;
+       mutable std::shared_ptr<Image> _image;
        mutable boost::mutex _mutex;
 };