Move Socket to dcpomatic_socket.{cc,h}.
[dcpomatic.git] / src / lib / image.h
index e1f8d0ddd4c1d7597b17c78ce8449479e3e9f44a..814ad1c5895a8c7d6edd8f5ed7563c4479c306cd 100644 (file)
 #ifndef DCPOMATIC_IMAGE_H
 #define DCPOMATIC_IMAGE_H
 
-#include <string>
-#include <boost/shared_ptr.hpp>
-#include <boost/function.hpp>
+#include "position.h"
+#include "position_image.h"
+#include "types.h"
+#include <dcp/image.h>
 extern "C" {
 #include <libavcodec/avcodec.h>
 #include <libavfilter/avfilter.h>
 }
-#include <dcp/image.h>
-#include "util.h"
-#include "position.h"
-#include "position_image.h"
+#include <boost/shared_ptr.hpp>
+#include <boost/function.hpp>
+#include <string>
 
 class Scaler;
+class Socket;
 
 class Image : public dcp::Image
 {
@@ -48,9 +49,9 @@ public:
        Image& operator= (Image const &);
        ~Image ();
        
-       uint8_t ** data () const;
+       uint8_t * const * data () const;
        int * line_size () const;
-       int * stride () const;
+       int const * stride () const;
        dcp::Size size () const;
        bool aligned () const;
 
@@ -67,6 +68,7 @@ public:
        void make_transparent ();
        void alpha_blend (boost::shared_ptr<const Image> image, Position<int> pos);
        void copy (boost::shared_ptr<const Image> image, Position<int> pos);
+       void fade (float);
 
        void read_from_socket (boost::shared_ptr<Socket>);
        void write_to_socket (boost::shared_ptr<Socket>) const;