diff options
| author | Carl Hetherington <cth@carlh.net> | 2012-12-16 16:26:37 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2012-12-16 16:26:37 +0000 |
| commit | aabc7a911b874d8e5e0929c7c031d06029fe96b5 (patch) | |
| tree | 2b32b7908e251699e52829022caa44c5b4419467 /src/lib/image.h | |
| parent | 1fe3f08c50ba230c2eb2506d51287878679bdcb7 (diff) | |
Various hacks to subtitles etc.
Diffstat (limited to 'src/lib/image.h')
| -rw-r--r-- | src/lib/image.h | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/src/lib/image.h b/src/lib/image.h index 7c118f338..0cd38da11 100644 --- a/src/lib/image.h +++ b/src/lib/image.h @@ -72,7 +72,7 @@ public: boost::shared_ptr<Image> scale_and_convert_to_rgb (Size, int, Scaler const *) const; boost::shared_ptr<Image> scale (Size, Scaler const *) const; boost::shared_ptr<Image> post_process (std::string) const; - void alpha_blend (boost::shared_ptr<Image> image, Position pos); + void alpha_blend (boost::shared_ptr<const Image> image, Position pos); void make_black (); @@ -134,7 +134,7 @@ class AlignedImage : public SimpleImage { public: AlignedImage (AVPixelFormat, Size); - AlignedImage (boost::shared_ptr<Image>); + AlignedImage (boost::shared_ptr<const Image>); }; /** @class CompactImage @@ -144,7 +144,21 @@ class CompactImage : public SimpleImage { public: CompactImage (AVPixelFormat, Size); - CompactImage (boost::shared_ptr<Image>); + CompactImage (boost::shared_ptr<const Image>); +}; + +class RGBPlusAlphaImage : public SimpleImage +{ +public: + RGBPlusAlphaImage (boost::shared_ptr<const Image>); + ~RGBPlusAlphaImage (); + + uint8_t* alpha () const { + return _alpha; + } + +private: + uint8_t* _alpha; }; #endif |
