mm-video-v4l2: vdec: Support adaptive playback mode

In this mode client checks and sets an extension to indicate
that the content can change resolution, within the pre-
announced maximum height/width. Component over-allocates
buffers for the max resolution and dbp, and notifies client
of any crop change when resolution changes within bounds.
Stride changes are updated in gralloc-metadata so HWC/GPU
can intrepret the stride correctly.

Resolution changes beyond set max width/height will result in
port-reconfiguration notification, while adapting to the new
resolution.

Change-Id: Ibdb49d3f30e86ae86ae68c934d63c556710cfa8e
4 files changed