Improvements to arc codec-test

This change makes numerous improvements to the arc codec-test:
 - Allow rendering to a surface, to support more accurate performance
   benchmarking.
 - Add tests that render to the provided surface (instead of immediately
   releasing buffers), to support benchmarking fps-limited decoding.
 - Add test argument to use software decoder instead of hw decoder.
 - Add test argument that causes video decoder to loop until the test
   receives a signal to stop, for more reliable performance
   benchmarking.
 - Add dropped frame measurement.

Test: tests pass as per updated README
Bug: 143584325
Bug: 142423642
Bug: 142948390

Change-Id: Ibb8a7bce62354f060b2e5bd7c073762dc4acf8d2
(cherry picked from commit a93839d271a9e163a0d9c901a7442b50fbb1d38c)
9 files changed