This code never clipped the values, which resulted in inconsistent behavior with the LUT version it was supposed to be replacing. As an added bonus, I realized I can also easily implement parity with the gain parameter.
This code never clipped the values, which resulted in inconsistent behavior with the LUT version it was supposed to be replacing. As an added bonus, I realized I can also easily implement parity with the gain parameter.
VideoLAN code repository instance