[non-BE] [rend-non-BE] [split-non-BE][allow-regression] Resolve "MASA metadata ratio scaling issues in reading, verification, and writing"

Reason why this change is needed

  • A wrong scaling is done for MASA ratios in various places when writing and reading (only decoder write is correct). This causes systematic errors. In addition, a large complexity is hit in the ratio sanitization stage as everything hits the normalization when it should only hit rarely.

Description of the change

  • Adjust MASA reading, renderer side writing, and two instances of normalization (encoder and renderer). Saturation also added before normalization step to guard against situations where MASA metadata could contain ratio values that are higher (e.g., uint8 value 255 in all) than they should be.

Affected operating points

  • Can be non-BE for any BASOP encoder or renderer tests where MASA metadata is read or written (so MASA and OMASA formats)

Closes #2529 (closed)

Edited by Tapani Pihlajakuja

Merge request reports

Loading