- Image (AVPixelFormat p)
- : _pixel_format (p)
- {}
-
- virtual ~Image () {}
-
- /** @return Array of pointers to arrays of the component data */
- virtual uint8_t ** data () const = 0;
-
- /** @return Array of sizes of the data in each line, in bytes (without any alignment padding bytes) */
- virtual int * line_size () const = 0;
-
- /** @return Array of strides for each line (including any alignment padding bytes) */
- virtual int * stride () const = 0;
+ Image (AVPixelFormat, dcp::Size, bool);
+ Image (AVFrame *);
+ Image (Image const &);
+ Image (boost::shared_ptr<const Image>, bool);
+ Image& operator= (Image const &);
+ ~Image ();
+
+ uint8_t * const * data () const;
+ int const * line_size () const;
+ int const * stride () const;
+ dcp::Size size () const;
+ bool aligned () const;
+
+ int planes () const;
+ int components () const;
+ int line_factor (int) const;
+ dcp::Size sample_size (int) const;