vaapi: add libva-x11 dependency.

Signed-off-by: Zhong Cong <congx.zhong@intel.com>
tests: add encoder for h264 format.

Signed-off-by: Zhong Cong <congx.zhong@intel.com>
common: Enable log system

Use export LIBYAMI_LOG_LEVEL=log_level to set the control flag, export LIBYAMI_LOG=log_file to set the file location

Signed-off-by: Tang Xin <xin.t.tang@intel.com>
fix build for h264 encoder test

remove test/.libs
test: additional fix, including the fail when debug is enabled
When the resolution is changed, need to notify the up layer
h264enc: add m_paramLock for parameter access
h264enc: move m_maxOutputBuffer base class

defer m_maxOutputBuffer calculation until it is explicitly required.
 - sometimes parameter are set one by one, we needn't calculate every time
 - video resolution may not set yet
h264enc: insert sps/pps bytestream in yami instead of by driver

add OUTPUT_STREAM_HEADER support which is required for chrome
v4l2vea
insert emulation byte for sps/pps byte stream
v4l2: add v4l2 wrapper for yami

= There are four threads in the wrapper library.
    - Two threads for v4l2 interface:
      one for device pool, one for device operation (deque, enque etc)
    - Two threads are internal worker to drive data input and output respectively.

= Device thread owns yami encoder before input/output thread launch and
  after input/output thread exit.
= encoder->stop() defers to device _close() instead of STREAMOFF ioctl.
= Dynamic encoder parameter change (bitrate/framerate etc) are accepted
  in device operation thread, and executed in input thread, with mutex lock.
= Add mutex locker for encoder (factory) cache,
  avoid thread issue when there are multiple encoders.
= assume initial buffers status are at client side.
test: add v4l2 encode test
test: v4l2encode use encodehelp.h for command line parameters
test: 1.add vp8 decode test 2.add jpeg decode test