mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
- refactored framebuffer grabber to use ImageResampler
- added OsxGrabber for OSX - added binary for imx6 (cubox-i) and updated install script Former-commit-id: 2c55e292c842c67e54ce36bd91e4f6303b98687a
This commit is contained in:
@@ -91,6 +91,22 @@ void ImageResampler::processImage(const uint8_t * data, int width, int height, i
|
||||
yuv2rgb(y, u, v, rgb.red, rgb.green, rgb.blue);
|
||||
}
|
||||
break;
|
||||
case PIXELFORMAT_BGR16:
|
||||
{
|
||||
int index = lineLength * ySource + xSource * 2;
|
||||
rgb.blue = (data[index] & 0x1f) << 3;
|
||||
rgb.green = (((data[index+1] & 0x7) << 3) | (data[index] & 0xE0) >> 5) << 2;
|
||||
rgb.red = (data[index+1] & 0xF8);
|
||||
}
|
||||
break;
|
||||
case PIXELFORMAT_BGR24:
|
||||
{
|
||||
int index = lineLength * ySource + xSource * 3;
|
||||
rgb.blue = data[index ];
|
||||
rgb.green = data[index+1];
|
||||
rgb.red = data[index+2];
|
||||
}
|
||||
break;
|
||||
case PIXELFORMAT_RGB32:
|
||||
{
|
||||
int index = lineLength * ySource + xSource * 4;
|
||||
|
Reference in New Issue
Block a user