diff options
| author | Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> | 2025-08-07 06:38:27 +0300 |
|---|---|---|
| committer | Tomi Valkeinen <tomi.valkeinen@iki.fi> | 2025-08-07 18:33:23 +0300 |
| commit | 1c7a36421eb291fb5fb7ca20fbbeaae48db27059 (patch) | |
| tree | c4739c80d6151e5139bb4f50434a5c1136bfb62f /kms++/inc | |
| parent | 0f18e6d0616b597fc32bba78b38dfc5c922ec9a4 (diff) | |
framebuffer: Add support to deal with raw fourccs
Diffstat (limited to 'kms++/inc')
| -rw-r--r-- | kms++/inc/kms++/framebuffer.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kms++/inc/kms++/framebuffer.h b/kms++/inc/kms++/framebuffer.h index fc50b02..2594c11 100644 --- a/kms++/inc/kms++/framebuffer.h +++ b/kms++/inc/kms++/framebuffer.h @@ -1,5 +1,7 @@ #pragma once +#include <stdexcept> + #include "drmobject.h" #include "pixelformats.h" @@ -40,6 +42,7 @@ public: uint32_t width() const override { return m_width; } uint32_t height() const override { return m_height; } + uint32_t fourcc() const { return m_fourcc; } PixelFormat format() const override { return m_format; } void flush(uint32_t x, uint32_t y, uint32_t width, uint32_t height); @@ -51,6 +54,7 @@ protected: private: uint32_t m_width; uint32_t m_height; + uint32_t m_fourcc; PixelFormat m_format; }; |
