Fixed Amlogic framebuffer pixel format

Issue: https://hyperion-project.org/threads/coreelec-hyperion-ng.3286/#post-13727
This commit is contained in:
Paulchen Panther 2019-03-08 23:51:50 +01:00 committed by GitHub
parent cffe33eda8
commit e5335c5395
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,7 +46,11 @@ int FramebufferFrameGrabber::grabFrame(Image<ColorRgb> & image)
{ {
case 16: pixelFormat = PIXELFORMAT_BGR16; break; case 16: pixelFormat = PIXELFORMAT_BGR16; break;
case 24: pixelFormat = PIXELFORMAT_BGR24; break; case 24: pixelFormat = PIXELFORMAT_BGR24; break;
#ifdef ENABLE_AMLOGIC
case 32: pixelFormat = PIXELFORMAT_RGB32; break;
#else
case 32: pixelFormat = PIXELFORMAT_BGR32; break; case 32: pixelFormat = PIXELFORMAT_BGR32; break;
#endif
default: default:
Error(_log, "Unknown pixel format: %d bits per pixel", vinfo.bits_per_pixel); Error(_log, "Unknown pixel format: %d bits per pixel", vinfo.bits_per_pixel);
close(_fbfd); close(_fbfd);