summaryrefslogtreecommitdiff
path: root/src/image.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-02-02 22:33:27 +0000
committerCarl Hetherington <cth@carlh.net>2015-02-02 22:33:27 +0000
commit989f182558193a51e0a26603fb2ca59f827216a0 (patch)
tree7d2b2511967e5417838a4343341e5aa9d26cf2b8 /src/image.h
parent0d7fe66361a40702cb97357955cf35256f1d2c26 (diff)
Remove Image and ARGBImage and just dump RGB data into
uint8_t* buffers. This is hopefully simpler than trying to come up with some Image hierarchy that suits everything.
Diffstat (limited to 'src/image.h')
-rw-r--r--src/image.h46
1 files changed, 0 insertions, 46 deletions
diff --git a/src/image.h b/src/image.h
deleted file mode 100644
index 7033564f..00000000
--- a/src/image.h
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- Copyright (C) 2012-2014 Carl Hetherington <cth@carlh.net>
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-
-*/
-
-#include "util.h"
-
-namespace dcp {
-
-class Image
-{
-public:
- Image (Size);
- Image (Image const &);
- Image (boost::shared_ptr<const Image>);
-
- virtual ~Image () {}
- virtual uint8_t * const * data () const = 0;
- /** @return array of strides in bytes */
- virtual int const * stride () const = 0;
-
- Size size () const {
- return _size;
- }
-
-protected:
- virtual void swap (Image& other);
-
- Size _size;
-};
-
-}