X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Flib%2Fimage.h;h=23b88dd7601066c022bb457f116b8c252c7be256;hb=c98c87afe29d9ef74bdced8a9c96d7752f3fe80f;hp=e455f22c6333ccef2fa48353d5f1cafdcd192e3c;hpb=01502a0fd529f308be248b6f8264c3a8642fce49;p=dcpomatic.git diff --git a/src/lib/image.h b/src/lib/image.h index e455f22c6..23b88dd76 100644 --- a/src/lib/image.h +++ b/src/lib/image.h @@ -31,16 +31,17 @@ extern "C" { #include #include } -#include +#include #include "util.h" #include "position.h" +#include "position_image.h" class Scaler; -class Image : public libdcp::Image +class Image : public dcp::Image { public: - Image (AVPixelFormat, libdcp::Size, bool); + Image (AVPixelFormat, dcp::Size, bool); Image (AVFrame *); Image (Image const &); Image (boost::shared_ptr, bool); @@ -50,20 +51,22 @@ public: uint8_t ** data () const; int * line_size () const; int * stride () const; - libdcp::Size size () const; + dcp::Size size () const; bool aligned () const; int components () const; int line_factor (int) const; int lines (int) const; - boost::shared_ptr scale (libdcp::Size, Scaler const *, AVPixelFormat, bool aligned) const; - boost::shared_ptr post_process (std::string, bool aligned) const; - void alpha_blend (boost::shared_ptr image, Position pos); - void copy (boost::shared_ptr image, Position pos); + boost::shared_ptr scale (dcp::Size, Scaler const *, AVPixelFormat, bool aligned) const; boost::shared_ptr crop (Crop c, bool aligned) const; + + 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 read_from_socket (boost::shared_ptr); void write_to_socket (boost::shared_ptr) const; @@ -88,4 +91,6 @@ private: bool _aligned; }; +extern PositionImage merge (std::list images); + #endif