Merge remote-tracking branch 'remotes/origin/cairocanvas' into windows
[ardour.git] / gtk2_ardour / video_image_frame.h
index 16ea193f555c26823bcc080f80b1d0dbf6e396d8..b611ff0d9e6886364d4025831f9e00a65bd766fb 100644 (file)
@@ -34,6 +34,7 @@
 
 #include "canvas/group.h"
 #include "canvas/pixbuf.h"
+#include "canvas/image.h"
 
 namespace ARDOUR {
        class TempoSection;
@@ -69,8 +70,8 @@ class VideoImageFrame : public sigc::trackable
 
        PublicEditor& editor;
        ArdourCanvas::Group *_parent;
-       ArdourCanvas::Group *group;
-       ArdourCanvas::Pixbuf *img_pixbuf;
+       ArdourCanvas::Image *image;
+       boost::shared_ptr<ArdourCanvas::Image::Data> img;
 
        int clip_width;
        int clip_height;
@@ -80,13 +81,15 @@ class VideoImageFrame : public sigc::trackable
        std::string video_filename;
 
        double        unit_position;
-       framepos_t   frame_position;
+       framepos_t   sample_position;
        framepos_t   video_frame_number;
 
        void reposition ();
        void exposeimg ();
 
+       void fill_frame (const uint8_t r, const uint8_t g, const uint8_t b);
        void draw_line ();
+       void draw_x ();
        void cut_rightend ();
 
 
@@ -105,8 +108,4 @@ class VideoImageFrame : public sigc::trackable
 
 };
 
-extern "C" {
-       char *curl_http_get (const char *u, int *status);
-}
-
 #endif /* __ardour_video_image_frame_h__ */