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<RelativeLayout
19    xmlns:android="http://schemas.android.com/apk/res/android"
20    android:layout_width="match_parent"
21    android:layout_height="wrap_content">
22
23    <LinearLayout
24        android:layout_width="wrap_content"
25        android:layout_height="wrap_content"
26        android:layout_centerHorizontal="true"
27        android:padding="8dp"
28        android:orientation="vertical"
29        android:background="#444444">
30
31        <TextView
32            android:id="@+id/gainmap_metadata_title"
33            android:layout_width="match_parent"
34            android:layout_height="wrap_content"
35            android:layout_marginBottom="10dp"
36            android:text="Metadata for &quot;HDR (test)&quot; (values in linear space):" />
37
38        <LinearLayout
39            android:layout_width="match_parent"
40            android:layout_height="wrap_content"
41            android:layout_marginBottom="10dp"
42            android:orientation="horizontal">
43
44            <TextView
45                android:id="@+id/gainmap_metadata_gainmapmin_text"
46                android:layout_width="match_parent"
47                android:layout_weight="1"
48                android:layout_height="wrap_content"
49                android:text="Gain Map Min:" />
50
51            <TextView
52                android:id="@+id/gainmap_metadata_gainmapmin_val"
53                android:layout_width="wrap_content"
54                android:layout_height="wrap_content"
55                android:ems="4"
56                android:text="TODO" />
57
58            <SeekBar
59                android:id="@+id/gainmap_metadata_gainmapmin"
60                android:min="0"
61                android:max="100"
62                android:layout_width="150dp"
63                android:layout_height="wrap_content" />
64
65        </LinearLayout>
66
67        <LinearLayout
68            android:layout_width="match_parent"
69            android:layout_height="wrap_content"
70            android:layout_marginBottom="10dp"
71            android:orientation="horizontal">
72
73            <TextView
74                android:id="@+id/gainmap_metadata_gainmapmax_text"
75                android:layout_width="match_parent"
76                android:layout_weight="1"
77                android:layout_height="wrap_content"
78                android:text="Gain Map Max:" />
79
80            <TextView
81                android:id="@+id/gainmap_metadata_gainmapmax_val"
82                android:layout_width="wrap_content"
83                android:layout_height="wrap_content"
84                android:ems="4"
85                android:text="TODO" />
86
87            <SeekBar
88                android:id="@+id/gainmap_metadata_gainmapmax"
89                android:min="0"
90                android:max="100"
91                android:layout_width="150dp"
92                android:layout_height="wrap_content" />
93
94        </LinearLayout>
95
96        <LinearLayout
97            android:layout_width="match_parent"
98            android:layout_height="wrap_content"
99            android:layout_marginBottom="10dp"
100            android:orientation="horizontal">
101
102            <TextView
103                android:id="@+id/gainmap_metadata_capacitymin_text"
104                android:layout_width="match_parent"
105                android:layout_weight="1"
106                android:layout_height="wrap_content"
107                android:text="Capacity Min:" />
108
109            <TextView
110                android:id="@+id/gainmap_metadata_capacitymin_val"
111                android:layout_width="wrap_content"
112                android:layout_height="wrap_content"
113                android:ems="4"
114                android:text="TODO" />
115
116            <SeekBar
117                android:id="@+id/gainmap_metadata_capacitymin"
118                android:min="0"
119                android:max="100"
120                android:layout_width="150dp"
121                android:layout_height="wrap_content" />
122
123        </LinearLayout>
124
125        <LinearLayout
126            android:layout_width="match_parent"
127            android:layout_height="wrap_content"
128            android:layout_marginBottom="10dp"
129            android:orientation="horizontal">
130
131            <TextView
132                android:id="@+id/gainmap_metadata_capacitymax_text"
133                android:layout_width="match_parent"
134                android:layout_weight="1"
135                android:layout_height="wrap_content"
136                android:text="Capacity Max:" />
137
138            <TextView
139                android:id="@+id/gainmap_metadata_capacitymax_val"
140                android:layout_width="wrap_content"
141                android:layout_height="wrap_content"
142                android:ems="4"
143                android:text="TODO" />
144
145            <SeekBar
146                android:id="@+id/gainmap_metadata_capacitymax"
147                android:min="0"
148                android:max="100"
149                android:layout_width="150dp"
150                android:layout_height="wrap_content" />
151
152        </LinearLayout>
153
154        <LinearLayout
155            android:layout_width="match_parent"
156            android:layout_height="wrap_content"
157            android:layout_marginBottom="10dp"
158            android:orientation="horizontal">
159
160            <TextView
161                android:id="@+id/gainmap_metadata_gamma_text"
162                android:layout_width="match_parent"
163                android:layout_weight="1"
164                android:layout_height="wrap_content"
165                android:text="Gamma:" />
166
167            <TextView
168                android:id="@+id/gainmap_metadata_gamma_val"
169                android:layout_width="wrap_content"
170                android:layout_height="wrap_content"
171                android:ems="4"
172                android:text="TODO" />
173
174            <SeekBar
175                android:id="@+id/gainmap_metadata_gamma"
176                android:min="0"
177                android:max="100"
178                android:layout_width="150dp"
179                android:layout_height="wrap_content" />
180
181        </LinearLayout>
182
183        <LinearLayout
184            android:layout_width="match_parent"
185            android:layout_height="wrap_content"
186            android:layout_marginBottom="10dp"
187            android:orientation="horizontal">
188
189            <TextView
190                android:id="@+id/gainmap_metadata_offsetsdr_text"
191                android:layout_width="match_parent"
192                android:layout_weight="1"
193                android:layout_height="wrap_content"
194                android:text="Offset SDR:" />
195
196            <TextView
197                android:id="@+id/gainmap_metadata_offsetsdr_val"
198                android:layout_width="wrap_content"
199                android:layout_height="wrap_content"
200                android:ems="4"
201                android:text="TODO" />
202
203            <SeekBar
204                android:id="@+id/gainmap_metadata_offsetsdr"
205                android:min="0"
206                android:max="100"
207                android:layout_width="150dp"
208                android:layout_height="wrap_content" />
209
210        </LinearLayout>
211
212        <LinearLayout
213            android:layout_width="match_parent"
214            android:layout_height="wrap_content"
215            android:layout_marginBottom="10dp"
216            android:orientation="horizontal">
217
218            <TextView
219                android:id="@+id/gainmap_metadata_offsethdr_text"
220                android:layout_width="match_parent"
221                android:layout_weight="1"
222                android:layout_height="wrap_content"
223                android:text="Offset HDR:" />
224
225            <TextView
226                android:id="@+id/gainmap_metadata_offsethdr_val"
227                android:layout_width="wrap_content"
228                android:layout_height="wrap_content"
229                android:ems="4"
230                android:text="TODO" />
231
232            <SeekBar
233                android:id="@+id/gainmap_metadata_offsethdr"
234                android:min="0"
235                android:max="100"
236                android:layout_width="150dp"
237                android:layout_height="wrap_content" />
238
239        </LinearLayout>
240
241        <LinearLayout
242            android:layout_width="match_parent"
243            android:layout_height="wrap_content"
244            android:orientation="horizontal">
245
246            <Button
247                android:id="@+id/gainmap_metadata_reset"
248                android:layout_width="match_parent"
249                android:layout_weight="1"
250                android:layout_height="wrap_content"
251                android:text="Reset" />
252
253            <Button
254                android:id="@+id/gainmap_metadata_done"
255                android:layout_width="match_parent"
256                android:layout_weight="1"
257                android:layout_height="wrap_content"
258                android:text="Done" />
259
260        </LinearLayout>
261
262    </LinearLayout>
263
264</RelativeLayout>
265