Fix the bug of incorrect context state recovery at Intra search

States were not recovered properly for element SecondMpmIdx and for TMP and MIP estimation, therefore estimated costs got unpredictable bias. A lambda function is added to simplify the code.

This MR replaces !576 (closed)

Results:

All Intra Main 10
Over ECM-11 Y U V EncT DecT
Class A1 -0.01% -0.04% 0.06% 101.3% 101.4%
Class A2 0.00% -0.03% 0.08% 101.3% 102.1%
Class B 0.00% 0.12% 0.00% 101.4% 101.4%
Class C 0.01% -0.04% 0.04% 98.7% 98.3%
Class E 0.00% 0.11% 0.08% 100.0% 99.0%
Overall 0.00% 0.03% 0.05% 100.5% 100.4%
Class D -0.04% 0.05% 0.02% 101.3% 102.5%
Class F 0.02% -0.02% 0.08% 102.6% 100.7%
Class TGM 0.01% 0.01% 0.00% 101.6% 100.8%
Edited by Gleb Verba

Merge request reports

Loading