mediav2 CTS: Add support for validating encoded output stream

Per frame psnr is computed for encoded clip and this is compared against
pre configured threshold. Clips that donot exceed this threshold are
marked for failure.

Bug: 227609586
Test: atest android.mediav2.cts.CodecEncoderSurfaceTest \
android.mediav2.cts.VideoEncoderTest

Change-Id: I287d7e778630bd664110e4f3ed5962ff87d4d8b5
4 files changed