summaryrefslogtreecommitdiff
path: root/libkmstest/colorbar.cpp
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2016-03-15 11:46:09 +0200
committerTomi Valkeinen <tomi.valkeinen@ti.com>2016-03-15 11:57:49 +0200
commit83d27aa30549194068fef320f735245a7735a5ea (patch)
tree05d8d4e6bb36c1b902f9fcb19a79ea9b9573ed28 /libkmstest/colorbar.cpp
parent79394ef6686cd525471c20f9bda0b8c983b63010 (diff)
Add IMappedFramebuffer and remove MappedBuffer
Diffstat (limited to 'libkmstest/colorbar.cpp')
-rw-r--r--libkmstest/colorbar.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/libkmstest/colorbar.cpp b/libkmstest/colorbar.cpp
index 811b81c..9daf4d6 100644
--- a/libkmstest/colorbar.cpp
+++ b/libkmstest/colorbar.cpp
@@ -37,7 +37,7 @@ static const uint16_t colors16[] = {
colors32[11].rgb565(),
};
-static void drm_draw_color_bar_rgb888(DumbFramebuffer& buf, int old_xpos, int xpos, int width)
+static void drm_draw_color_bar_rgb888(IMappedFramebuffer& buf, int old_xpos, int xpos, int width)
{
for (unsigned y = 0; y < buf.height(); ++y) {
RGB bcol = colors32[y * ARRAY_SIZE(colors32) / buf.height()];
@@ -53,7 +53,7 @@ static void drm_draw_color_bar_rgb888(DumbFramebuffer& buf, int old_xpos, int xp
}
}
-static void drm_draw_color_bar_rgb565(DumbFramebuffer& buf, int old_xpos, int xpos, int width)
+static void drm_draw_color_bar_rgb565(IMappedFramebuffer& buf, int old_xpos, int xpos, int width)
{
static_assert(ARRAY_SIZE(colors32) == ARRAY_SIZE(colors16), "bad colors arrays");
@@ -71,7 +71,7 @@ static void drm_draw_color_bar_rgb565(DumbFramebuffer& buf, int old_xpos, int xp
}
}
-static void drm_draw_color_bar_semiplanar_yuv(DumbFramebuffer& buf, int old_xpos, int xpos, int width)
+static void drm_draw_color_bar_semiplanar_yuv(IMappedFramebuffer& buf, int old_xpos, int xpos, int width)
{
const uint8_t colors[] = {
0xff,
@@ -99,7 +99,7 @@ static void drm_draw_color_bar_semiplanar_yuv(DumbFramebuffer& buf, int old_xpos
}
}
-void draw_color_bar(DumbFramebuffer& buf, int old_xpos, int xpos, int width)
+void draw_color_bar(IMappedFramebuffer& buf, int old_xpos, int xpos, int width)
{
switch (buf.format()) {
case PixelFormat::NV12: