util: add test pattern support for big-endian XRGB1555/RGB565
authorGeert Uytterhoeven <geert@linux-m68k.org>
Sun, 3 Jul 2022 13:25:58 +0000 (15:25 +0200)
committerDmitry Baryshkov <dbaryshkov@gmail.com>
Tue, 31 Oct 2023 13:24:32 +0000 (13:24 +0000)
commit6f00a73485ba8cce6035b4c6e8995dc078afa05c
treea93e7468e41b9cd72db35c36ff6aa58cd865539c
parentbc37db5c669f850dc785acd723fdd79cdb7c597b
util: add test pattern support for big-endian XRGB1555/RGB565

Add support for drawing the SMPTE and tiles test patterns in buffers
using big-endian formats.

For now this is limited to XRGB1555 and RGB565, which are the most
common big-endian formats.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
---
v5:
  - Add Reviewed-by,

v4:
  - No changes,

v3:
  - Increase indentation after definition of cpu_to_be16(),

v2:
  - New.
tests/util/pattern.c