pixel-buffer: Add the concept of device rotation

System Internals / Plymouth - Hans de Goede [redhat.com] - 10 April 2018 15:32 EDT

On some devices the LCD panel is mounted in the casing in such a way that the up/top side of the panel does not match with the top side of the device (e.g. it is mounted upside-down).

This commit adds support to the ply-pixel-buffer code to create buffers which take device rotation into account and which will rotate the picture to compensate.

https://bugs.freedesktop.org/show_bug.cgi?id=104714

0e4e268 pixel-buffer: Add the concept of device rotation
src/libply-splash-core/ply-pixel-buffer.c | 109 +++++++++++++++++++++++++++---
src/libply-splash-core/ply-pixel-buffer.h | 9 +++
2 files changed, 110 insertions(+), 8 deletions(-)

Upstream: cgit.freedesktop.org


  • Share