X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fimage.h;h=172250eb1bb253ffd6a87e9998951ca6b534a7c3;hb=edbb857ebfc7fa0f423ab6f402736f46a4fa058b;hp=5eba11041713f42ecc252648a7789505dbba467b;hpb=2e504b33eb9f38cac629ad31b7c107fb0cf5efda;p=dcpomatic.git diff --git a/src/lib/image.h b/src/lib/image.h index 5eba11041..172250eb1 100644 --- a/src/lib/image.h +++ b/src/lib/image.h @@ -34,6 +34,7 @@ extern "C" { #include #include "util.h" #include "position.h" +#include "position_image.h" class Scaler; @@ -63,8 +64,10 @@ public: boost::shared_ptr crop_scale_window (Crop c, dcp::Size, dcp::Size, Scaler const *, AVPixelFormat, bool aligned) const; void make_black (); + void make_transparent (); void alpha_blend (boost::shared_ptr image, Position pos); void copy (boost::shared_ptr image, Position pos); + void fade (float); void read_from_socket (boost::shared_ptr); void write_to_socket (boost::shared_ptr) const; @@ -73,8 +76,10 @@ public: return _pixel_format; } + std::string digest () const; + private: - friend class pixel_formats_test; + friend struct pixel_formats_test; void allocate (); void swap (Image &); @@ -89,4 +94,7 @@ private: bool _aligned; }; +extern PositionImage merge (std::list images); +extern bool operator== (Image const & a, Image const & b); + #endif