Port jpeg_mem_dest for in-memory operations

 * Dependency for vendor code

Change-Id: I635e0d53b2bfd884aea1faee81146da633bb56e9