Add test for edid parsing and fix reading gamma

Authored by gladhorn on Jul 27 2018, 2:08 PM.

Description

Add test for edid parsing and fix reading gamma

Summary:
The bug in reading the gamma value was there from the start (2012),
dividing the number by 100 will result in a truncated value.
Add test so that we can verify that the parsing of the EDIDs work,
it will be easy to add other problematic EDIDs later on.

Let edidDecodeFraction return float

All uses of the function are QQuaternion setters which take floats.
This saves a bunch of conversions and should thus be faster. The edid
test shows that the result is unchanged in all digits.

Reviewers: Plasma, romangg

Reviewed By: Plasma, romangg

Subscribers: romangg, plasma-devel

Tags: Plasma

Differential Revision: https://phabricator.kde.org/D14418

Details

Committed
gladhornJul 27 2018, 2:09 PM
Reviewer
Plasma
Differential Revision
D14418: Add test for edid parsing and fix reading gamma
Parents
R110:931cead9c138: Fix memory leak in test
Branches
Unknown
Tags
Unknown