1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 ~ Copyright (C) 2023 The Android Open Source Project 4 ~ 5 ~ Licensed under the Apache License, Version 2.0 (the "License"); 6 ~ you may not use this file except in compliance with the License. 7 ~ You may obtain a copy of the License at 8 ~ 9 ~ http://www.apache.org/licenses/LICENSE-2.0 10 ~ 11 ~ Unless required by applicable law or agreed to in writing, software 12 ~ distributed under the License is distributed on an "AS IS" BASIS, 13 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 ~ See the License for the specific language governing permissions and 15 ~ limitations under the License. 16 --> 17 18<com.android.test.silkfx.hdr.GainmapDecodeTest xmlns:android="http://schemas.android.com/apk/res/android" 19 android:layout_width="match_parent" 20 android:layout_height="match_parent" 21 android:orientation="vertical"> 22 23 <LinearLayout 24 android:layout_width="match_parent" 25 android:layout_height="wrap_content" 26 android:orientation="horizontal"> 27 28 <Button 29 android:id="@+id/decode_full" 30 android:layout_width="0dp" 31 android:layout_height="wrap_content" 32 android:layout_weight="1" 33 android:text="Decode full" /> 34 35 <Button 36 android:id="@+id/decode_subsampled4" 37 android:layout_width="0dp" 38 android:layout_height="wrap_content" 39 android:layout_weight="1" 40 android:text="Decode subsampled (1/4th)" /> 41 42 <Button 43 android:id="@+id/decode_scaled66" 44 android:layout_width="0dp" 45 android:layout_height="wrap_content" 46 android:layout_weight="1" 47 android:text="Decode scaled (66%)" /> 48 49 <Button 50 android:id="@+id/decode_crop" 51 android:layout_width="0dp" 52 android:layout_height="wrap_content" 53 android:layout_weight="1" 54 android:text="Decode croppedSquare" /> 55 56 <Button 57 android:id="@+id/decode_cropScaled33" 58 android:layout_width="0dp" 59 android:layout_height="wrap_content" 60 android:layout_weight="1" 61 android:text="Decode croppedSquare(33%)" /> 62 63 </LinearLayout> 64 65 <TextView 66 android:id="@+id/source_info" 67 android:layout_width="wrap_content" 68 android:layout_height="wrap_content" /> 69 70 <LinearLayout 71 android:layout_width="match_parent" 72 android:layout_height="match_parent" 73 android:orientation="horizontal"> 74 75 <LinearLayout 76 android:layout_width="0dp" 77 android:layout_height="match_parent" 78 android:orientation="vertical" 79 android:layout_weight="1"> 80 81 <TextView 82 android:id="@+id/sdr_label" 83 android:layout_width="wrap_content" 84 android:layout_height="wrap_content" /> 85 86 <ImageView 87 android:id="@+id/sdr_source" 88 android:layout_width="match_parent" 89 android:layout_height="match_parent" 90 android:layout_margin="8dp" 91 android:scaleType="fitStart" /> 92 </LinearLayout> 93 94 <LinearLayout 95 android:layout_width="0dp" 96 android:layout_height="match_parent" 97 android:orientation="vertical" 98 android:layout_weight="1"> 99 100 <TextView 101 android:id="@+id/gainmap_label" 102 android:layout_width="wrap_content" 103 android:layout_height="wrap_content" /> 104 105 <ImageView 106 android:id="@+id/gainmap" 107 android:layout_width="match_parent" 108 android:layout_height="match_parent" 109 android:layout_margin="8dp" 110 android:scaleType="fitStart" /> 111 </LinearLayout> 112 113 </LinearLayout> 114 115</com.android.test.silkfx.hdr.GainmapDecodeTest>