Reduce scope of locals
Reduce scope of locals

Change-Id: I46fe14a799254b9430ef178d1450bb170496a724

GrokImageCompression/aom,GrokImageCompression/aom,GrokImageCompression/aom,GrokImageCompression/aom,GrokImageCompression/aom,GrokImageCompression/aom