video: bmp: Update RLE8 support to use the write function
authorSimon Glass <sjg@chromium.org>
Fri, 19 Nov 2021 20:23:55 +0000 (13:23 -0700)
committerAnatolij Gustschin <agust@denx.de>
Sun, 26 Dec 2021 22:02:19 +0000 (23:02 +0100)
commit646e169aa0e6e699aa9aa861a0b2ad6705031cba
treea6060d5f75c6ea536646d1d18a956caa5df7c8af
parent51f92c143019de3ad719d8ee7bcab8c1d9d87d1c
video: bmp: Update RLE8 support to use the write function

Update this code to use write_pix8() rather than writing the pixels only
for a single supported display depth. This allows us to support any
depth.

Add some more tests too.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/video/video_bmp.c
test/dm/video.c