dashplayer: Fix green frame issue on session timeout

* Avoid rendering video buffer which signals EOS as it does
  not contain valid video data.

CRs-Fixed: 476333

Change-Id: I10e3a0cb1e2dc9e1574d5e2b05f6339e868ac6fe
mm-video: Add data corrupt flag on output buffers when required

- If non-IDR frames received after seek operation, corrupted YUV frames
  are displayed.
- Add OMX_BUFFERFLAG_DATACORRUPT flag to each output buffer till
  OMX_BUFFERFLAG_SYNCFRAME received.
- IL client can skip rendering, if DATACORRUPT flag observed.

Change-Id: I9bad6635397a03a55fd602740cc520cb807cf701
CRs-Fixed: 472798
mm-video: vdec: Fix movie studio crash

This change updates crop information with latest data
available with the driver.

CRs-fixed: 487314
Change-Id: I04a54a47b34442cf38695913f5a97eb5663e36da
Merge "mm-video: vdec: Fix movie studio crash"
Merge "mm-video: Add data corrupt flag on output buffers when required"
mm-video: vidc: Enable data corrupt flag for MPEG2 & VC1 only

- Update output buffers with data corrupt flag when required
  for MPEG2 and VC1 decoders only.
- Enable data corrupt flag irrespective of frame type if sync
  frame not received.
- Do not set data corrupt flag at the start of the playback and
  set when seek operation is made and sync frame not received yet.

Change-Id: I1b887a324909b8d2ad23c67fe0f4c7733f6d69f7
mm-video: vdec: Allow client to set TURBO mode

- Allow client to set TURBO mode to video decoder.
- TURBO mode will set the maximum supported
  perfomance level to video driver.
- Based on frame drops due to delayed video frames
  client can set TURBO mode to video decoder when
  required.

Change-Id: I9e9c7ad3ed0345b36358361b394e0b1d7ce5cf74
Merge "mm-video: vidc: Enable data corrupt flag for MPEG2 & VC1 only"
DashCodec: keep cache of formats to support b2b format change

     - when format change takes place too fast, it will pick up wrong
       format.
     - keep a cache of formats and only issue one sendFormatChange per
       crop change.
     - clear format cache when flushing

Change-Id: Ib45f3c5ac7764b4dd1edc4ac6c6f11390c33c151
CRs-Fixed: 475092
Fix for the flicker while changing the resolution in DashPlayer

- Just notify the message of MEDIA_SET_VIDEO_SIZE to JAVA Layer,
  while beginning to play the streaming.
- After the streaming begin to play, don't notify this message,
  while changing the resolution or seek operation finished.
- If we don't set video size,
  windowsmanager will adapt the dimension of the clip by itself.

Change-Id: I6a79d13159cd9bf33e0f483c7e1b71690f071011

CRs-fixed: 451993
mm-video: Adjust 3 byte start code address, if multiple DMX entries found

- Core is not able to decode bit stream, when three byte start code
  0X000001 is a part of consecutive NAL's provided in single ETB.
- Start address of NAL entry in DMX should be moved one byte backward
  as video core skipping 0X0000 skipping in every NAL bit stream.

Change-Id: Ia816175e7b821dcb30200a3bd934896efd3ea20f
CRs-Fixed: 468664
DashPlayer: Notify position for video EOS buffer immediately

Notify current rendering position for video EOS buffer immediately,
without waiting for 100ms between subsequent updates.

CRs-Fixed: 489546
Change-Id: I9a8f346a68ff5c333d96e5ae24980e0ed1b27903
Merge "mm-video: Adjust 3 byte start code address, if multiple DMX entries found"
Merge "DashPlayer: Notify position for video EOS buffer immediately"
DashPlayer: Add support for dumpsys in DashPlayer

Added functionality in DashPlayer to dump playback statistics to file.

Change-Id: I0f95684f10db376731f622f06d17cc262480ecd3
DashPlayer: Notify seek position to dash source

Notify seek position to dash source to make sure that
if text samples arrive before audio/video, the time
out for sending text samples is not wrongly calculated.

CRs-Fixed: 492376

Change-Id: I952e474d92936532956c1d456b6ad1d554402405
Merge "mm-video: vdec: Allow client to set TURBO mode"
Merge "DashPlayer: Add support for dumpsys in DashPlayer"
Merge "dashplayer: Fix green frame issue on session timeout"
Merge "DashCodec: keep cache of formats to support b2b format change"