Open Iridahonda opened 6 years ago
Hi!
What file I need to edit for this? V4L2Grabber.cpp?
Thanks!
What pixel formats does your grabber support ? Would it be easier to do this via v4l control settings ?
Hi
I am thinking this is what I need:
https://hyperion-project.org/threads/color-correction-add-3d-lut-correction.2594/
I see lildadou has made a start with a port to Hyperion.
Br
/T
This is more of a feature request:
When watching HDR video the Hyperion colours are washed out due to not be able to handle BT 2100 video properly in the grabber. I have yet to find a V4L2 HDR grabber. One potential solution could be to add a remote control on/off button that when on increases the colour vibrance (by a settable amount) so HDR video can be displayed with colours that match the TV more closely. Better still use the 3dlut for 2100 to 706 the same as Kodi.
Edit: I made a test. The following works.
case PIXELFORMAT_UYVY: { int index = lineLength ySource + xSource 2; uint8_t y = data[index+1]; uint8_t u = ((xSource&1) == 0) ? data[index ] : data[index-2]; uint8_t v = ((xSource&1) == 0) ? data[index+2] : data[index ]; u = ((u - 128) 2) + 128; //Scale factor of 2 to increase vibrance of U and V v = ((v - 128) 2) + 128;
yuv2rgb(y, u, v, rgb.red, rgb.green, rgb.blue);