summaryrefslogtreecommitdiff
path: root/libkms++util/cpuframebuffer.cpp
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2016-06-11 20:17:35 +0300
committerTomi Valkeinen <tomi.valkeinen@ti.com>2016-06-11 20:17:35 +0300
commit17d180891f1e237ea5d25835999a8b23a6e7946d (patch)
tree5963fe4d338f6272daf55c76ed355effb47afc71 /libkms++util/cpuframebuffer.cpp
parent38a71ee72c47f3287c327113ce411f236cac05ef (diff)
rename dirs
Diffstat (limited to 'libkms++util/cpuframebuffer.cpp')
-rw-r--r--libkms++util/cpuframebuffer.cpp36
1 files changed, 0 insertions, 36 deletions
diff --git a/libkms++util/cpuframebuffer.cpp b/libkms++util/cpuframebuffer.cpp
deleted file mode 100644
index 1f14ddc..0000000
--- a/libkms++util/cpuframebuffer.cpp
+++ /dev/null
@@ -1,36 +0,0 @@
-#include <map>
-
-#include "cpuframebuffer.h"
-
-using namespace std;
-
-namespace kms {
-
-CPUFramebuffer::CPUFramebuffer(uint32_t width, uint32_t height, PixelFormat format)
- : m_width(width), m_height(height), m_format(format)
-{
- const PixelFormatInfo& format_info = get_pixel_format_info(m_format);
-
- m_num_planes = format_info.num_planes;
-
- for (unsigned i = 0; i < format_info.num_planes; ++i) {
- const PixelFormatPlaneInfo& pi = format_info.planes[i];
- FramebufferPlane& plane = m_planes[i];
-
- plane.stride = width * pi.bitspp / 8;
- plane.size = plane.stride * height/ pi.ysub;
- plane.offset = 0;
- plane.map = new uint8_t[plane.size];
- }
-}
-
-CPUFramebuffer::~CPUFramebuffer()
-{
- for (unsigned i = 0; i < m_num_planes; ++i) {
- FramebufferPlane& plane = m_planes[i];
-
- delete plane.map;
- }
-}
-
-}