tree: f8fa46e77ed912702a33b7461f2d583a012a23c6 [path history] [tgz]
  1. src/
  2. Android.bp
  3. AndroidManifest.xml
  4. AndroidTest.xml
  5. DynamicConfig.xml
  6. OWNERS
  7. README.md
tests/tests/mediaediting/README.md

CTS mediaediting tests

The tests are organized into following testcases

TestCaseDescription
TranscodeQualityTestTranscode input and validate output using ssim
VideoResolutionTestTransform resolution of input videos and validate output resolution
TransformReverseTransformIdentityTestTest verify that quality shouldn't be reduced too much when scaling/resizing and then reversing the operation.
TransformHdrToSdrToneMapTestTest transform HDR to SDR ToneMapping for given input and verify that ouput shouldn't have HDR profile.
TransformVideoAspectRatioTest transform aspects ratio of input videos and validate the output resolution according to the requested aspect ratio.

List of tests and helper classes imported from [androidx.media3.transformer](https://github.com/androidx/media/tree/release/libraries/transformer when it was at version 1.1.1) and changes done in them.

AndroidTestUtil.java

No Change.

ExportTestResult.java

No Change.

FallbackDetails.java

No Change.

FileUtil.java

No Change.

MssimCalculator.java

No change.

SsimHelper.java

No change.

TransformerAndroidTestRunner.java

No Change.

VideoDecodingWrapper.java

No change.

TranscodeQualityTest.java

Parameterize TranscodeQualityTest and added more test vectors in it.

List of new helper class and Tests added.

###MediaEditingUtil.java It has paths for the input clips required for TranscodeQualityTest. Test now uses MediaPreparer to download zip file mentioned in DynamicConfig.xml and use input clips from sdcard. Added util function to parse width, height and roationDegree from muxed output.

VideoResolutionTest.java

Test transform resolution of input videos and validate the output resolution.

TransformReverseTransformIdentityTest.java

Test verify that quality shouldn't be reduced too much when scaling/resizing and then reversing the operation.

TransformHdrToSdrToneMapTest.java

Test transform HDR to SDR ToneMapping for given input and verify that ouput shouldn't have HDR profile.

TransformVideoAspectRatio.java

Test transform aspects ratio of input videos and validate the output resolution according to the requested aspect ratio.