mm-video-v4l2: test: Support Start Code Search for codec switch

Codec switch use case requires help from driver to make the decision
of switching to a different codec. To test this feature the user
shall set the Start Code Search (SCS) threshold to the desired value,
the recommended value is w*h*2 of the clip being decoded. The
application counts the number of errors towards the decision of doing
the codec switch but instead it will just close the session informing
the user the reason of the end of the session. The number of errors
before closing the session is also configurable.

Change-Id: I6d556af8a8ad367831e5a54f5f8884a5c09919f2
2 files changed