Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix] DjVu gamma correction #921

Merged
merged 3 commits into from
Jun 10, 2019
Merged

[fix] DjVu gamma correction #921

merged 3 commits into from
Jun 10, 2019

Commits on Jun 10, 2019

  1. [fix] DjVu gamma correction

    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.
    Frenzie committed Jun 10, 2019
    Configuration menu
    Copy the full SHA
    dd170ab View commit details
    Browse the repository at this point in the history
  2. whitespace typo

    Frenzie committed Jun 10, 2019
    Configuration menu
    Copy the full SHA
    b082d1c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    553189a View commit details
    Browse the repository at this point in the history