codec: jpeg encoder implemented

This patch implements jpeg encoder using libjpeg.

Signed-off-by: Rafaël Carré <funman@videolan.org>