a jpg encoder with mixed systemc for high level synthesis