X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Flib%2Fimage.h;h=89cd98f7b281bd6cfe68a758e3b8ceb33625d3a9;hp=8cf4a72f71e62f432e020a9f65e273787997becf;hb=e60bb3e51bd1508b149e6b8f6608f09b5196ae26;hpb=f07d5125a7b609320682689abe40781f096ca25e diff --git a/src/lib/image.h b/src/lib/image.h index 8cf4a72f7..89cd98f7b 100644 --- a/src/lib/image.h +++ b/src/lib/image.h @@ -47,7 +47,7 @@ public: Image (boost::shared_ptr, bool); Image& operator= (Image const &); ~Image (); - + uint8_t * const * data () const; int * line_size () const; int const * stride () const; @@ -61,7 +61,7 @@ public: boost::shared_ptr scale (dcp::Size, dcp::YUVToRGB yuv_to_rgb, 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, dcp::YUVToRGB yuv_to_rgb, AVPixelFormat, bool aligned) const; - + void make_black (); void make_transparent (); void alpha_blend (boost::shared_ptr image, Position pos); @@ -70,14 +70,14 @@ public: void read_from_socket (boost::shared_ptr); void write_to_socket (boost::shared_ptr) const; - + AVPixelFormat pixel_format () const { return _pixel_format; } private: friend struct pixel_formats_test; - + void allocate (); void swap (Image &); float bytes_per_pixel (int) const;