#include "util.h"
class Scaler;
-class RGBFrameImage;
class SimpleImage;
/** @class Image
AVPixelFormat _pixel_format; ///< FFmpeg's way of describing the pixel format of this Image
};
-/** @class FrameImage
- * @brief An Image that is held in an AVFrame.
- */
-class FrameImage : public Image
-{
-public:
- FrameImage (AVFrame *);
- ~FrameImage ();
-
- uint8_t ** data () const;
- int * line_size () const;
- int * stride () const;
- libdcp::Size size () const;
- bool aligned () const;
-
-private:
- /* Not allowed */
- FrameImage (FrameImage const &);
- FrameImage& operator= (FrameImage const &);
-
- AVFrame* _frame;
- int* _line_size;
-};
-
/** @class SimpleImage
* @brief An Image for which memory is allocated using a `simple' av_malloc().
*/
{
public:
SimpleImage (AVPixelFormat, libdcp::Size, bool);
+ SimpleImage (AVFrame *);
SimpleImage (SimpleImage const &);
SimpleImage (boost::shared_ptr<const Image>);
SimpleImage& operator= (SimpleImage const &);