Reduce scope of temporary arrays
Reduce scope of temporary arrays

Change-Id: Id59effcc6a27974ceaea3aed0d321dc478cda64b

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