Multithread mode to decode jpeg

Change-Id: I6e1bb8e10fc3da129e2d50e45269e146999370e5