Add jpeg encoder.

Add jpeg encoder with default quality value:50.
Signed-off-by: Tang, Xin <xin.t.tang@intel.com>
?this means for (i = 0; i <= 1; i++)?