configure: add build option for each codec

all codecs are built by default,
you can explicitly disable one (for example jpegdec) by '--enable-jpegdec=no'
fix mistake on jpeg mimetype: image/jpeg
h264dec: drain dpb (output all pictures) upon EOS
h264dec: exception handling in flushOutport/decodeSequenceEnd

1. when there is error occured before, flushOutport/decodeSequenceEnd
   needs handle exception, for example m_DPBManager hasn't initialized yet.
2. drainDPB should happen regardless current picture decoding succeed or not.
3. include config.h of parsers for logs

sign-off-by: Zhao, Halley <halley.zhao@intel.com>
             Wei, ChangzhiX <changzhix.wei@intel.com>
version: update version info for libs
h264dec: fix spliteFields for PAFF

for picture-adaptive frame-fields, when we build a ref list for field, we
need splite frame to fields. and seconds field need inherit first fields's
poc and reference states (short or long).
h264dec: fix long term ref picture mark as unused for reference bug.

SPEC: 8.2.5.4.4
All pictures for which LongTermFrameIdx is greater than
max_long_term_frame_idx_plus1-1 and that are marked as
"used for long-term reference" are  marked as "unused for reference".

VaapiPictureH264 use int32_t for longTermFrameIdx,
but uint32_t is used for longTermFrameIdx in execRefPicMarkingAdaptive1().
when some clips have nagtive longTermFrameIdx(-1) and mmco equals to 4,
No long term ref picture will be marked as "unused for reference",
for example: MR3_TANDBERG_B.264.

Signed-off-by: Zhong Cong <congx.zhong@intel.com>
h264dec: fix miss frame when negtive poc in stream

getOutputByMinPOC will return surface with smallest poc.
But surface pool use uint32_t hold poc.some bit stream have negtive poc, like CVMANL1_TOSHIBA_B.264.
The surface with negtive poc will never get chance to output
Replace the data type

1.Update data types, including replacing 'uint8' to 'uint8_t',
 'int8' to 'int8_t', 'uint16' to 'uint16_t', 'int16' to 'int16_t',
 'uint32' to 'uint32_t', 'int32' to 'int32_t', 'uint64' to 'uint64_t',
 'int64' to 'int64_t', 'boolean' to 'bool', 'INT32_MAX' to 'INT_MAX'

2.Remove the file 'basictype.h', and the add file 'common_def.h' in folder 'common'

3.Add the file 'common_def.h' into the directory 'common',
    which includes the define of 'TRUE',
    'FALSE' and the macro 'N_ELEMENTS(array)'

4.Update Makefile.am, Configure.ac

5.Add the copyright and version into common_def.h