diff options
| author | Comment <tim@gray.(none)> | 2013-07-26 22:46:00 +0100 |
|---|---|---|
| committer | Comment <tim@gray.(none)> | 2013-07-26 22:46:00 +0100 |
| commit | 3d7eea02aa7a155b84c8c74ecbfd55a1941a9297 (patch) | |
| tree | d49d6ac97a0df08f5ea7e6c6c291acca0f65cd12 /rotord/Pixels.h | |
| parent | 7092eaaae3e844a68804b8a6b6825381e9a81443 (diff) | |
tidy files
Diffstat (limited to 'rotord/Pixels.h')
| -rw-r--r-- | rotord/Pixels.h | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/rotord/Pixels.h b/rotord/Pixels.h deleted file mode 100644 index b6f5865..0000000 --- a/rotord/Pixels.h +++ /dev/null @@ -1,28 +0,0 @@ -#include <stdint.h> -#include <algorithm> -//for now always uint8_t* rather than templated - -class Pixels{ - public: - Pixels(); - ~Pixels(); - void allocate(int w, int h, int channels); - bool isAllocated() const; - void setFromExternalPixels(uint8_t * newPixels,int w, int h, int channels); - uint8_t * getPixels(); - int getWidth() const; - int getHeight() const; - void clear(); - void swap(Pixels & pix); - int getBytesPerPixel() const; - int getNumChannels() const; - void set(uint8_t val); - private: - uint8_t * pixels; - int width; - int height; - int channels; - bool bAllocated; - bool pixelsOwner; // if set from external data don't delete it -}; - |
