diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-01-23 15:04:54 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-01-23 15:04:54 +0000 |
| commit | 52821965206bce3e5d47200d838e54996857d212 (patch) | |
| tree | 345a0ea61c8323b3eb413a6b8b5226cd76546c50 /src/lib/image.h | |
| parent | d58f9adc515ac0c0193a4998fed3605f4e2c6e11 (diff) | |
Make sure inputs to sws_scale are aligned, as I think they must be.
Diffstat (limited to 'src/lib/image.h')
| -rw-r--r-- | src/lib/image.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/image.h b/src/lib/image.h index 5ca3f337c..23f13a648 100644 --- a/src/lib/image.h +++ b/src/lib/image.h @@ -68,6 +68,8 @@ public: /** @return Size of the image, in pixels */ virtual libdcp::Size size () const = 0; + virtual bool aligned () const = 0; + int components () const; int lines (int) const; @@ -107,6 +109,7 @@ public: int * line_size () const; int * stride () const; libdcp::Size size () const; + bool aligned () const; private: /* Not allowed */ @@ -131,6 +134,7 @@ public: int * line_size () const; int * stride () const; libdcp::Size size () const; + bool aligned () const; protected: void allocate (); |
