JPEG/R Optimization: remove repeating log2() calculation

Bug: 264715926
Test: jpegr_test.cpp recoverymapmath_test.cpp
Change-Id: If135b1003b7835c9c59418f61842c26724eb6e80
3 files changed