diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2015-10-31 12:40:00 +0200 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2015-11-13 17:55:48 +0200 |
commit | 0f904fb2b2836035bd7564deeb2e115369b73c98 (patch) | |
tree | 11fc8665e02e64b967f2fd4b19807636d38a4436 /libkmstest | |
parent | 6642f7c22409f470d195ade8951295a4a6762373 (diff) |
dumbfb: lazy mmap
Diffstat (limited to 'libkmstest')
-rw-r--r-- | libkmstest/conv.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libkmstest/conv.cpp b/libkmstest/conv.cpp index 45f4a75..cd5f8d6 100644 --- a/libkmstest/conv.cpp +++ b/libkmstest/conv.cpp @@ -6,7 +6,7 @@ namespace kms { -static RGB read_rgb(const DumbFramebuffer& fb, int x, int y) +static RGB read_rgb(DumbFramebuffer& fb, int x, int y) { uint32_t *pc = (uint32_t *)(fb.map(0) + fb.stride(0) * y); @@ -15,13 +15,13 @@ static RGB read_rgb(const DumbFramebuffer& fb, int x, int y) return RGB((c >> 16) & 0xff, (c >> 8) & 0xff, c & 0xff); } -static YUV read_rgb_as_yuv(const DumbFramebuffer& fb, int x, int y) +static YUV read_rgb_as_yuv(DumbFramebuffer& fb, int x, int y) { RGB rgb = read_rgb(fb, x, y); return YUV(rgb); } -static void fb_rgb_to_packed_yuv(DumbFramebuffer& dst_fb, const DumbFramebuffer& src_fb) +static void fb_rgb_to_packed_yuv(DumbFramebuffer& dst_fb, DumbFramebuffer& src_fb) { unsigned w = src_fb.width(); unsigned h = src_fb.height(); @@ -56,7 +56,7 @@ static void fb_rgb_to_packed_yuv(DumbFramebuffer& dst_fb, const DumbFramebuffer& } } -static void fb_rgb_to_semiplanar_yuv(DumbFramebuffer& dst_fb, const DumbFramebuffer& src_fb) +static void fb_rgb_to_semiplanar_yuv(DumbFramebuffer& dst_fb, DumbFramebuffer& src_fb) { unsigned w = src_fb.width(); unsigned h = src_fb.height(); @@ -91,7 +91,7 @@ static void fb_rgb_to_semiplanar_yuv(DumbFramebuffer& dst_fb, const DumbFramebuf } } -static void fb_rgb_to_rgb565(DumbFramebuffer& dst_fb, const DumbFramebuffer& src_fb) +static void fb_rgb_to_rgb565(DumbFramebuffer& dst_fb, DumbFramebuffer& src_fb) { unsigned w = src_fb.width(); unsigned h = src_fb.height(); @@ -113,7 +113,7 @@ static void fb_rgb_to_rgb565(DumbFramebuffer& dst_fb, const DumbFramebuffer& src } } -void color_convert(DumbFramebuffer& dst, const DumbFramebuffer &src) +void color_convert(DumbFramebuffer& dst, DumbFramebuffer &src) { switch (dst.format()) { case PixelFormat::NV12: |