Customising output bit depth, color format, dither, deband, hw resizer

  • Since LibreELEC on a RPI4 always performs range conversion from limited to full for HDMI output at the source input bit depth with at least 8 bits, there is an inherent loss of precision. Reardonia commits at Kodi added dithering, but this doesn't solve the problem and adds unneeded computational power when actual tv displays allow for higher bith depths. The obvious choice would be to set the framebuffer and output to a higher than source bit depth according to EDID. This would discard the need for dithering, as simple rounding or clamping would be enough and just be more precise. Same for 10-bit source content, HDR or SDR. Tvs like mine accept 12-bit. Scaling is also affected. But range conversion is always taking place, since HDMI is forced set to full output. It doesn't output limited range.

    I know that this might be a Kodi affair and that I should point out to them, but being hardware dependent (KMS/DMS kernel and such) I think it could have a point.