Replacing 1 << mi_{width, height}_log2() with lookup tables. Change-Id: Iba91ff1e797a83517e2cd7c3ab86cba39f39415b