Sure. As a several years Hyperion user, I am happy I can give something back to the community.
Beiträge von lupus11
-
-
Quick question, did you complie Hyperion.NG from the current non stable version, or from the Latest release?I used the latest GIT (non stable). But have no idea about HA details.
-
Which code line is meant exactly?
I know it is just a quick hack and should be configurable, but for me it does the job at the moment.
FramebufferFrameGrabber.cpp:
For hyperion.ng I changed
switch (vinfo.bits_per_pixel)
{
case 16: pixelFormat = PIXELFORMAT_BGR16; break;
case 24: pixelFormat = PIXELFORMAT_BGR24; break;
case 32: pixelFormat = PIXELFORMAT_RGB32; break; // was PIXELFORMAT_BGR32
default:
Error(_log, "Unknown pixel format: %d bits per pixel", vinfo.bits_per_pixel);
close(_fbfd);
return -1;
}For hyperion I changed
if (vinfo.bits_per_pixel == 16)
{
pixelFormat = PIXELFORMAT_BGR16;
}
else if (vinfo.bits_per_pixel == 24)
{
pixelFormat = PIXELFORMAT_BGR24;
}
else if (vinfo.bits_per_pixel == 32)
{
pixelFormat = PIXELFORMAT_RGB32; // was PIXELFORMAT_BGR32
} -
Tested and it looks like it works perfectly, more testing a bit later! Thank you!
Cool. Thanks for the info. -
There you go (but untested, try and report :))
-
I finally ended up installing the compiler and debugger and found out that (at least on my box) the framebuffer format is RGB32.
The framegrabber of original Hyperion asssumes BGR32. So I changed the single line of code and voilà, problem solved.
In case anybody else with the same problem wants to give the version a try: -
Exactly the same here. Have a S912 box from China running Core Elec + hyperion.ng. I can either set the RGB order correctly for playing video or for static content like menus, pictures etc. Any chance of switching this in the config file ?
The same happens with "standard" hyperion.