diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2016-06-11 21:46:24 +0300 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2016-06-11 21:46:24 +0300 |
commit | 9916712a62169606d845510028a3ea6f84bd442f (patch) | |
tree | aca4e1bec39500812111c43a8ecee862edae0002 /kms++/framebuffer.h | |
parent | 736b295100ce441e800457bcbd08cb36db543ff2 (diff) |
kms++: organize into subdirs
Diffstat (limited to 'kms++/framebuffer.h')
-rw-r--r-- | kms++/framebuffer.h | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/kms++/framebuffer.h b/kms++/framebuffer.h deleted file mode 100644 index cbf705d..0000000 --- a/kms++/framebuffer.h +++ /dev/null @@ -1,40 +0,0 @@ -#pragma once - -#include "drmobject.h" -#include "pixelformats.h" - -namespace kms -{ -class Framebuffer : public DrmObject -{ -public: - Framebuffer(Card& card, uint32_t id); - virtual ~Framebuffer(); - - uint32_t width() const { return m_width; } - uint32_t height() const { return m_height; } -protected: - Framebuffer(Card& card, uint32_t width, uint32_t height); - -private: - uint32_t m_width; - uint32_t m_height; -}; - -class IMappedFramebuffer { -public: - virtual ~IMappedFramebuffer() { } - - virtual uint32_t width() const = 0; - virtual uint32_t height() const = 0; - - virtual PixelFormat format() const = 0; - virtual unsigned num_planes() const = 0; - - virtual uint32_t stride(unsigned plane) const = 0; - virtual uint32_t size(unsigned plane) const = 0; - virtual uint32_t offset(unsigned plane) const = 0; - virtual uint8_t* map(unsigned plane) = 0; -}; - -} |