summaryrefslogtreecommitdiff
path: root/kms++
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2017-02-10 11:13:05 +0200
committerTomi Valkeinen <tomi.valkeinen@ti.com>2017-02-10 11:13:05 +0200
commita42ce13524c52fabac747dde2fd5ab6e15b43139 (patch)
tree68ae322ebb6f2e11df6fccfdd3f179e85722c534 /kms++
parent38b625b629a48e8cf070a749111a641d45394634 (diff)
omapfb: add constructor with fourcc
Diffstat (limited to 'kms++')
-rw-r--r--kms++/inc/kms++/omap/omapframebuffer.h1
-rw-r--r--kms++/src/omap/omapframebuffer.cpp5
2 files changed, 6 insertions, 0 deletions
diff --git a/kms++/inc/kms++/omap/omapframebuffer.h b/kms++/inc/kms++/omap/omapframebuffer.h
index b39ede6..16d6cf8 100644
--- a/kms++/inc/kms++/omap/omapframebuffer.h
+++ b/kms++/inc/kms++/omap/omapframebuffer.h
@@ -12,6 +12,7 @@ class OmapCard;
class OmapFramebuffer : public MappedFramebuffer
{
public:
+ OmapFramebuffer(OmapCard& card, uint32_t width, uint32_t height, const std::string& fourcc);
OmapFramebuffer(OmapCard& card, uint32_t width, uint32_t height, PixelFormat format);
virtual ~OmapFramebuffer();
diff --git a/kms++/src/omap/omapframebuffer.cpp b/kms++/src/omap/omapframebuffer.cpp
index a3a696d..e1e2234 100644
--- a/kms++/src/omap/omapframebuffer.cpp
+++ b/kms++/src/omap/omapframebuffer.cpp
@@ -22,6 +22,11 @@ using namespace std;
namespace kms
{
+OmapFramebuffer::OmapFramebuffer(OmapCard& card, uint32_t width, uint32_t height, const string& fourcc)
+ : OmapFramebuffer(card, width, height, FourCCToPixelFormat(fourcc))
+{
+}
+
OmapFramebuffer::OmapFramebuffer(OmapCard& card, uint32_t width, uint32_t height, PixelFormat format)
: MappedFramebuffer(card, width, height), m_omap_card(card), m_format(format)
{