HDR: Add tests with HLG10 input.

PiperOrigin-RevId: 478019046
This commit is contained in:
huangdarwin 2022-09-30 17:02:37 +00:00 committed by Marc Baechinger
parent 7286155fc3
commit b9a3aa5ca1
4 changed files with 5 additions and 18 deletions

View File

@ -42,7 +42,6 @@ import java.util.concurrent.atomic.AtomicBoolean;
import org.junit.Test;
import org.junit.runner.RunWith;
// TODO(b/239172735): Add HLG tests after finding a shareable HLG file.
/** {@link Transformer} instrumentation test for applying an HDR frame edit. */
@RunWith(AndroidJUnit4.class)
public class SetHdrEditingTest {
@ -90,10 +89,7 @@ public class SetHdrEditingTest {
String testId = "transformAndTranscode_hdr10File_whenHdrEditingIsSupported";
Context context = ApplicationProvider.getApplicationContext();
if (!deviceSupportsHdrEditing(VIDEO_H265, HDR10_DEFAULT_COLOR_INFO)) {
recordTestSkipped(
context,
testId,
/* reason= */ "Skipping on this device due to lack of HDR10 editing support.");
recordTestSkipped(context, testId, /* reason= */ "Device lacks HDR10 editing support.");
return;
}
@ -119,10 +115,7 @@ public class SetHdrEditingTest {
String testId = "transformAndTranscode_hdr10File_toneMapsOrThrows_whenHdrEditingUnsupported";
Context context = ApplicationProvider.getApplicationContext();
if (deviceSupportsHdrEditing(VIDEO_H265, HDR10_DEFAULT_COLOR_INFO)) {
recordTestSkipped(
context,
testId,
/* reason= */ "Skipping on this device due to presence of HDR10 editing support.");
recordTestSkipped(context, testId, /* reason= */ "Device supports HDR10 editing.");
return;
}
@ -188,8 +181,7 @@ public class SetHdrEditingTest {
recordTestSkipped(
context,
testId,
/* reason= */ "Skipping on this API version due to lack of support for"
+ " MediaFormat#getInteger(String, int).");
/* reason= */ "API version lacks support for MediaFormat#getInteger(String, int).");
return;
}

View File

@ -36,7 +36,6 @@ import com.google.android.exoplayer2.util.Util;
import org.junit.Test;
import org.junit.runner.RunWith;
// TODO(b/239172735): Add HLG tests after finding a shareable HLG file.
/** {@link Transformer} instrumentation test for applying an HDR to SDR tone mapping edit. */
@RunWith(AndroidJUnit4.class)
public class SetHdrToSdrToneMapTest {

View File

@ -174,10 +174,7 @@ public class TransformationTest {
if (Util.SDK_INT < 25) {
// TODO(b/210593256): Remove test skipping after removing the MediaMuxer dependency.
recordTestSkipped(
context,
testId,
/* reason= */ "Skipping on this API version due to lack of muxing support");
recordTestSkipped(context, testId, /* reason= */ "API version lacks muxing support");
return;
}

View File

@ -113,8 +113,7 @@ public class EncoderPerformanceAnalysisTest {
recordTestSkipped(
context,
testId,
/* reason= */ "Skipping on this API version due to lack of support for setting operating"
+ " rate and priority.");
/* reason= */ "API version lacks support for setting operating rate and priority.");
return;
}