summaryrefslogtreecommitdiff
path: root/src/lib/image.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-02-02 22:39:43 +0000
committerCarl Hetherington <cth@carlh.net>2015-02-02 22:39:43 +0000
commit7a1bd472537fee593a3f088655324861d24e804b (patch)
tree42319544a2413d1252c9465f29acbc0b7b5299e9 /src/lib/image.cc
parentb255fcca7f57c7068603a104adbb645fe5701c21 (diff)
Changes to libdcp API.
Diffstat (limited to 'src/lib/image.cc')
-rw-r--r--src/lib/image.cc13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/lib/image.cc b/src/lib/image.cc
index 3df498c87..2085b54ee 100644
--- a/src/lib/image.cc
+++ b/src/lib/image.cc
@@ -525,7 +525,7 @@ Image::bytes_per_pixel (int c) const
* @param s Size in pixels.
*/
Image::Image (AVPixelFormat p, dcp::Size s, bool aligned)
- : dcp::Image (s)
+ : _size (s)
, _pixel_format (p)
, _aligned (aligned)
{
@@ -567,8 +567,8 @@ Image::allocate ()
}
Image::Image (Image const & other)
- : dcp::Image (other)
- , _pixel_format (other._pixel_format)
+ : _size (other._size)
+ , _pixel_format (other._pixel_format)
, _aligned (other._aligned)
{
allocate ();
@@ -585,7 +585,7 @@ Image::Image (Image const & other)
}
Image::Image (AVFrame* frame)
- : dcp::Image (dcp::Size (frame->width, frame->height))
+ : _size (frame->width, frame->height)
, _pixel_format (static_cast<AVPixelFormat> (frame->format))
, _aligned (true)
{
@@ -604,7 +604,7 @@ Image::Image (AVFrame* frame)
}
Image::Image (shared_ptr<const Image> other, bool aligned)
- : dcp::Image (other)
+ : _size (other->_size)
, _pixel_format (other->_pixel_format)
, _aligned (aligned)
{
@@ -637,8 +637,7 @@ Image::operator= (Image const & other)
void
Image::swap (Image & other)
{
- dcp::Image::swap (other);
-
+ std::swap (_size, other._size);
std::swap (_pixel_format, other._pixel_format);
for (int i = 0; i < 4; ++i) {