summaryrefslogtreecommitdiff
path: root/libkmstest/extcpuframebuffer.cpp
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2016-05-23 09:54:08 +0300
committerTomi Valkeinen <tomi.valkeinen@ti.com>2016-05-23 09:54:08 +0300
commita5c28bcb2ead34e921617711ebf94ffcb5d72878 (patch)
treee2f93259f63407357c70b06a7d59c24fde5a3901 /libkmstest/extcpuframebuffer.cpp
parent0bc5bbd6766949d651f98e12981d79c86ce0bf99 (diff)
File/dir renames
Diffstat (limited to 'libkmstest/extcpuframebuffer.cpp')
-rw-r--r--libkmstest/extcpuframebuffer.cpp50
1 files changed, 0 insertions, 50 deletions
diff --git a/libkmstest/extcpuframebuffer.cpp b/libkmstest/extcpuframebuffer.cpp
deleted file mode 100644
index 145168f..0000000
--- a/libkmstest/extcpuframebuffer.cpp
+++ /dev/null
@@ -1,50 +0,0 @@
-
-#include "extcpuframebuffer.h"
-#include "test.h"
-
-using namespace std;
-
-namespace kms
-{
-
-ExtCPUFramebuffer::ExtCPUFramebuffer(uint32_t width, uint32_t height, PixelFormat format,
- uint8_t* buffer, uint32_t pitch)
- : 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;
-
- ASSERT(m_num_planes == 1);
-
- const PixelFormatPlaneInfo& pi = format_info.planes[0];
- FramebufferPlane& plane = m_planes[0];
-
- plane.stride = pitch;
- plane.size = plane.stride * height / pi.ysub;
- plane.map = buffer;
-}
-
-ExtCPUFramebuffer::ExtCPUFramebuffer(uint32_t width, uint32_t height, PixelFormat format,
- uint8_t* buffers[4], uint32_t pitches[4])
- : 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 = pitches[i];
- plane.size = plane.stride * height / pi.ysub;
- plane.map = buffers[i];
- }
-}
-
-ExtCPUFramebuffer::~ExtCPUFramebuffer()
-{
-}
-
-}