Skip to content

gainmap_weight was calculated incorrectly #372

Description

@hushhw

In jpegc.cpp, it seems that the calculation of gainmap_weight is incorrect

gainmap_weight = CLIP3(0.0f, gainmap_weight, 1.0f);

The range of gainmap_weight should be from 0 to 1, but it seems like the gainmap_weight and 0.0f have been reversed here

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions