https://bugs.kde.org/show_bug.cgi?id=459117

            Bug ID: 459117
           Summary: Linear gamma ICC profiles return an "Undefined"
                    transfer characteristic
           Product: krita
           Version: git master (please specify the git hash!)
          Platform: Compiled Sources
                OS: Microsoft Windows
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: Color models
          Assignee: krita-bugs-n...@kde.org
          Reporter: a...@amyspark.me
  Target Milestone: ---

SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug
symbols.
See
https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***

Linear gamma ICC profiles, such as Elle's Rec.2020 profile, return
TRC_UNDEFINED when KoColorProfile::getTransferCharacteristics() is called. This
is incorrect, as KoColorProfile::isLinear() will happily say yes and
getEstimatedTRC() will also return (1, 1, 1).

STEPS TO REPRODUCE
1. Instantiate a copy of  the following profile:
`KoColorSpaceRegistry::instance()->profileFor({},
PRIMARIES_ITU_R_BT_2020_2_AND_2100_0, TRC_LINEAR);`
2.  Query getTransferCharacteristics().

OBSERVED RESULT

It returns TRC_UNDEFINED.

EXPECTED RESULT

It returns TRC_LINEAR.


SOFTWARE/OS VERSIONS
Windows: 10 21H2
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 5.64
Qt Version: 5.12.12

ADDITIONAL INFORMATION
Commit f662063cf0

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to