surfaceproxy: add "duration" property.
decoder: propagate buffer duration downstream.
vaapidecode: improve "no free surface" conditions.

Previously, vaapidecode would wait up to one second until a free surface
is available, or it aborts decoding. Now, vaapidecode waits until the
last decoded surface was to be presented, plus one second. Besides, end
times are now expressed relative to the monotonic clock.
vaapidecode: simplify codec lookup from caps.

Add new gst_vaapi_codec_from_caps() helper to determine codec type from
the specified caps. Don't globally expose this function since this is
really trivial and only used in the vaapidecode element.
vaapidecode: don't reset decoder if codec type is the same.

Reset, i.e. destroy then create, the decoder in _setcaps() handler only
if the underlying codec type actually changed. This makes it possible
to be more tolerant with certain MPEG-2 streams that get parsed to
form caps that are compatible with the previous state but minor changes
to "codec-data".
codecparsers: jpeg: add missing includes.
vaapidownload: port to 1.0 - Initial commit
plugins: include "sysdeps.h" instead of "config.h".
glibcompat: add replacement for g_cond_wait_until().
configure: fix check for libva-glx and libva-drm.
wayland: set opaque region for YUV surface.

This allows the compositor to optimize redraws and cull away changes
obscured by the video surface.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
vaapidownload: Fix type mismatch error
docs: fix build for make dist.
vaapiupload: port to 1.0, Initial commit with the following known bugs,
 ---- no direct rendering support
 ---- Miniobject mem leak
vaapipostproc: port to 1.0, Initial commit
debian: fix packaging on recent Ubuntu platforms.

Use explicit GStreamer plugins path.
vaapisurfacememory: Fix the crash with mpeg2 interlaced decoding.
,,,,known bugs:
--flickering during interlaced content rendering
--mpeg2 trasport stream is failing to decode when using playbin (after the update to gstreamer-0.11.99)
--video caps is just "video/x-raw" instead of (video/x-surface in 0.10)which wont allow playbin to automatically select vaapidecode unless manually specify "video-sink=vaapisink"
NEWS: updates.
README: updates.
h264: exclusively use GstAdapter, drop sub-buffer hack.

Maintaining the sub-buffer is rather suboptimal especially since we
were also maintaining a GstAdapter. Now, we only use the GstAdapter
thus requiring minor extra parsing when receiving avcC buffers.