Allocate return value in many camera functions.