From e5335c539522c9245ed7e29f8fbcaca2d9105ff7 Mon Sep 17 00:00:00 2001 From: Paulchen Panther Date: Fri, 8 Mar 2019 23:51:50 +0100 Subject: [PATCH] Fixed Amlogic framebuffer pixel format Issue: https://hyperion-project.org/threads/coreelec-hyperion-ng.3286/#post-13727 --- libsrc/grabber/framebuffer/FramebufferFrameGrabber.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libsrc/grabber/framebuffer/FramebufferFrameGrabber.cpp b/libsrc/grabber/framebuffer/FramebufferFrameGrabber.cpp index 9cf2675b..a14cf805 100755 --- a/libsrc/grabber/framebuffer/FramebufferFrameGrabber.cpp +++ b/libsrc/grabber/framebuffer/FramebufferFrameGrabber.cpp @@ -46,7 +46,11 @@ int FramebufferFrameGrabber::grabFrame(Image & image) { case 16: pixelFormat = PIXELFORMAT_BGR16; break; case 24: pixelFormat = PIXELFORMAT_BGR24; break; +#ifdef ENABLE_AMLOGIC + case 32: pixelFormat = PIXELFORMAT_RGB32; break; +#else case 32: pixelFormat = PIXELFORMAT_BGR32; break; +#endif default: Error(_log, "Unknown pixel format: %d bits per pixel", vinfo.bits_per_pixel); close(_fbfd);