jpegdec: Add JPEG picture decoder

Signed-off-by: Li Xiaowei <xiaowei.a.li@intel.com>
jpegdec: fixes for mimeType and offset for next scan
replace G_N_ELEMENTS to N_ELEMENTS

in vaapidecoder_h264.ccp and vc1parser.c