From 74fbdfa044fe06992191aebb3c0d2f03c97f9f32 Mon Sep 17 00:00:00 2001 From: Nick Deakin Date: Tue, 25 Apr 2023 17:47:39 -0400 Subject: SilkFX: add gainmap metadata testing Add the ability to test adjustments to the gainmap metadata and compare to the original metadata. Bug: 279647216 Test: Played with new gainmap metadata menu; working as intended Change-Id: Icec81a693e03c1cf2d4a854b06ebdfb05565b518 --- tests/SilkFX/res/layout/gainmap_image.xml | 33 ++- tests/SilkFX/res/layout/gainmap_metadata.xml | 264 +++++++++++++++++++ .../com/android/test/silkfx/hdr/GainmapImage.kt | 20 +- .../test/silkfx/hdr/GainmapMetadataEditor.kt | 284 +++++++++++++++++++++ 4 files changed, 593 insertions(+), 8 deletions(-) create mode 100644 tests/SilkFX/res/layout/gainmap_metadata.xml create mode 100644 tests/SilkFX/src/com/android/test/silkfx/hdr/GainmapMetadataEditor.kt diff --git a/tests/SilkFX/res/layout/gainmap_image.xml b/tests/SilkFX/res/layout/gainmap_image.xml index 89bbb709d0bf..b0ed9147585e 100644 --- a/tests/SilkFX/res/layout/gainmap_image.xml +++ b/tests/SilkFX/res/layout/gainmap_image.xml @@ -34,7 +34,7 @@ android:layout_width="wrap_content" android:layout_weight="1" android:layout_height="wrap_content" - android:text="SDR original" /> + android:text="SDR" /> + android:text="HDR" /> + + - + android:layout_height="wrap_content" + android:orientation="horizontal"> + + + +