transcoding: Add capability check for transcoder tests

For MediaTranscodingManager tests, added checks to
confirm that the source and destination formats are
supported by the codecs created using createDecoderByType
and createEncoderByType, respectively, before transcoding.

Bug: 197267191
Test: atest CtsMediaTranscodingTestCases:
android.media.mediatranscoding.cts.MediaTranscodingManagerTest

Change-Id: I63a1442c41d94965e783ae3d1231e693ad303b62
(cherry picked from commit 105febd6f9f654c209061d68ac98f31949bbc9b5)
1 file changed