mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
Fixed Amlogic framebuffer pixel format
Issue: https://hyperion-project.org/threads/coreelec-hyperion-ng.3286/#post-13727
This commit is contained in:
parent
cffe33eda8
commit
e5335c5395
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user