Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The existing implementation only worked in 8-bit mode. By using the `ddjvu_format_set_gamma()` function that comes with djvulibre it suddenly and attractively becomes Not Our Problem™. I noticed this after doing a quick experiment with a custom power function `#ifdef __ANDROID_API__` like in https://stackoverflow.com/a/19488271/2470572 (For example, if Android define a custom power function, else `#define power(x, y) pow(x, y)`.) I believe the proper way to go about it would probably be to ignore document-specific implementations and to do it in the blitbuffer, but this is quicker. As a side effect, this fixes koreader/koreader#3493.
- Loading branch information