[Encoder ME] add memory allocation basics for FME

reviewed at https://rbcommons.com/s/OpenH264/r/271/