• Adrian Grange's avatar
    Fix rounding in ARNR calculation · 928b34e8
    Adrian Grange authored
    The rounding of the ARNR filter output prior to
    normalization by the filter strength was incorrect
    when strength = 0.
    
    In this case 1 << (strength - 1) would not create the
    required rounding of 0, rather it would outrange. This
    patch fixes this issue.
    
    Change-Id: I771809ba34d6052b17d34c870ea11ff67b418dab
    928b34e8
temporal_filter.c 15.7 KB