Less effective than the approach in vf_tonemap_opencl because there is no peak detection, but it's still a good idea to implement this.