mirror of
https://github.com/samsonjs/media.git
synced 2026-04-26 14:57:47 +00:00
302 lines
11 KiB
XML
302 lines
11 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Copyright 2021 The Android Open Source Project
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
-->
|
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
tools:context=".ConfigurationActivity">
|
|
|
|
<TextView
|
|
android:id="@+id/configuration_text_view"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="24dp"
|
|
android:layout_marginStart="32dp"
|
|
android:layout_marginEnd="32dp"
|
|
android:text="@string/configuration"
|
|
android:textSize="24sp"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
<Button
|
|
android:id="@+id/select_preset_button"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="32dp"
|
|
android:layout_marginStart="8dp"
|
|
android:text="@string/select_preset_title"
|
|
android:textSize="12sp"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@+id/configuration_text_view" />
|
|
|
|
<Button
|
|
android:id="@+id/select_local_file_button"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="32dp"
|
|
android:layout_marginEnd="8dp"
|
|
android:text="@string/select_local_file_title"
|
|
android:textSize="12sp"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@+id/configuration_text_view" />
|
|
<TextView
|
|
android:id="@+id/selected_file_text_view"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="12dp"
|
|
android:layout_marginStart="32dp"
|
|
android:layout_marginEnd="32dp"
|
|
android:paddingLeft="24dp"
|
|
android:paddingRight="24dp"
|
|
android:textSize="12sp"
|
|
android:gravity="center"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@+id/select_preset_button" />
|
|
<androidx.core.widget.NestedScrollView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:padding="4dp"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@+id/selected_file_text_view"
|
|
app:layout_constraintBottom_toTopOf="@+id/select_audio_effects_button">
|
|
<TableLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:stretchColumns="0"
|
|
android:shrinkColumns="0"
|
|
android:layout_marginTop="32dp"
|
|
android:measureWithLargestChild="true"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintBottom_toBottomOf="parent">
|
|
<TableRow
|
|
android:layout_weight="1">
|
|
<TextView
|
|
android:layout_gravity="center_vertical"
|
|
android:text="@string/remove_audio" />
|
|
<CheckBox
|
|
android:layout_gravity="end"
|
|
android:id="@+id/remove_audio_checkbox"/>
|
|
</TableRow>
|
|
<TableRow android:layout_weight="1">
|
|
<TextView
|
|
android:layout_gravity="center_vertical"
|
|
android:text="@string/remove_video"/>
|
|
<CheckBox
|
|
android:id="@+id/remove_video_checkbox"
|
|
android:layout_gravity="end" />
|
|
</TableRow>
|
|
<TableRow
|
|
android:layout_weight="1">
|
|
<TextView
|
|
android:layout_gravity="center_vertical"
|
|
android:text="@string/flatten_for_slow_motion"/>
|
|
<CheckBox
|
|
android:id="@+id/flatten_for_slow_motion_checkbox"
|
|
android:layout_gravity="end" />
|
|
</TableRow>
|
|
<TableRow
|
|
android:layout_weight="1">
|
|
<TextView
|
|
android:layout_gravity="center_vertical"
|
|
android:text="@string/force_audio_track" />
|
|
<CheckBox
|
|
android:id="@+id/force_audio_track_checkbox"
|
|
android:layout_gravity="end" />
|
|
</TableRow>
|
|
<TableRow
|
|
android:layout_weight="1"
|
|
android:gravity="center_vertical" >
|
|
<TextView
|
|
android:id="@+id/audio_mime_text_view"
|
|
android:text="@string/audio_mime"/>
|
|
<Spinner
|
|
android:id="@+id/audio_mime_spinner"
|
|
android:layout_gravity="end|center_vertical"
|
|
android:gravity="end" />
|
|
</TableRow>
|
|
<TableRow
|
|
android:layout_weight="1"
|
|
android:gravity="center_vertical" >
|
|
<TextView
|
|
android:id="@+id/video_mime_text_view"
|
|
android:text="@string/video_mime"/>
|
|
<Spinner
|
|
android:id="@+id/video_mime_spinner"
|
|
android:layout_gravity="end|center_vertical"
|
|
android:gravity="end" />
|
|
</TableRow>
|
|
<TableRow
|
|
android:layout_weight="1"
|
|
android:gravity="center_vertical" >
|
|
<TextView
|
|
android:id="@+id/resolution_height_text_view"
|
|
android:text="@string/resolution_height"/>
|
|
<Spinner
|
|
android:id="@+id/resolution_height_spinner"
|
|
android:layout_gravity="end|center_vertical"
|
|
android:gravity="end" />
|
|
</TableRow>
|
|
<TableRow
|
|
android:layout_weight="1"
|
|
android:gravity="center_vertical" >
|
|
<TextView
|
|
android:id="@+id/scale"
|
|
android:text="@string/scale"/>
|
|
<Spinner
|
|
android:id="@+id/scale_spinner"
|
|
android:layout_gravity="end|center_vertical"
|
|
android:gravity="end" />
|
|
</TableRow>
|
|
<TableRow
|
|
android:layout_weight="1"
|
|
android:gravity="center_vertical" >
|
|
<TextView
|
|
android:id="@+id/rotate"
|
|
android:text="@string/rotate"/>
|
|
<Spinner
|
|
android:id="@+id/rotate_spinner"
|
|
android:layout_gravity="end|center_vertical"
|
|
android:gravity="end" />
|
|
</TableRow>
|
|
<TableRow
|
|
android:layout_weight="1">
|
|
<TextView
|
|
android:layout_gravity="center_vertical"
|
|
android:id="@+id/trim"
|
|
android:text="@string/trim" />
|
|
<CheckBox
|
|
android:id="@+id/trim_checkbox"
|
|
android:layout_gravity="end" />
|
|
</TableRow>
|
|
<TableRow
|
|
android:layout_weight="1">
|
|
<TextView
|
|
android:layout_gravity="center_vertical"
|
|
android:text="@string/enable_fallback" />
|
|
<CheckBox
|
|
android:id="@+id/enable_fallback_checkbox"
|
|
android:layout_gravity="end"
|
|
android:checked="true"/>
|
|
</TableRow>
|
|
<TableRow
|
|
android:layout_weight="1">
|
|
<TextView
|
|
android:layout_gravity="center_vertical"
|
|
android:text="@string/enable_analyzer_mode" />
|
|
<CheckBox
|
|
android:id="@+id/enable_analyzer_mode_checkbox"
|
|
android:layout_gravity="end"
|
|
android:checked="false"/>
|
|
</TableRow>
|
|
<TableRow
|
|
android:layout_weight="1">
|
|
<TextView
|
|
android:layout_gravity="center_vertical"
|
|
android:text="@string/enable_debug_preview" />
|
|
<CheckBox
|
|
android:id="@+id/enable_debug_preview_checkbox"
|
|
android:layout_gravity="end"
|
|
android:checked="true"/>
|
|
</TableRow>
|
|
<TableRow
|
|
android:layout_weight="1">
|
|
<TextView
|
|
android:layout_gravity="center_vertical"
|
|
android:text="@string/enable_debug_tracing" />
|
|
<CheckBox
|
|
android:id="@+id/enable_debug_tracing_checkbox"
|
|
android:layout_gravity="end"
|
|
android:checked="false"/>
|
|
</TableRow>
|
|
<TableRow
|
|
android:layout_weight="1">
|
|
<TextView
|
|
android:layout_gravity="center_vertical"
|
|
android:text="@string/abort_slow_export" />
|
|
<CheckBox
|
|
android:id="@+id/abort_slow_export_checkbox"
|
|
android:layout_gravity="end"/>
|
|
</TableRow>
|
|
<TableRow
|
|
android:layout_weight="1">
|
|
<TextView
|
|
android:layout_gravity="center_vertical"
|
|
android:text="@string/use_media3_muxer" />
|
|
<CheckBox
|
|
android:id="@+id/use_media3_muxer_checkbox"
|
|
android:layout_gravity="end"/>
|
|
</TableRow>
|
|
<TableRow
|
|
android:layout_weight="1">
|
|
<TextView
|
|
android:layout_gravity="center_vertical"
|
|
android:text="@string/produce_fragmented_mp4" />
|
|
<CheckBox
|
|
android:id="@+id/produce_fragmented_mp4_checkbox"
|
|
android:layout_gravity="end"/>
|
|
</TableRow>
|
|
<TableRow
|
|
android:layout_weight="1"
|
|
android:gravity="center_vertical" >
|
|
<TextView
|
|
android:id="@+id/hdr_mode"
|
|
android:text="@string/hdr_mode"/>
|
|
<Spinner
|
|
android:id="@+id/hdr_mode_spinner"
|
|
android:layout_gravity="end|center_vertical"
|
|
android:gravity="end" />
|
|
</TableRow>
|
|
</TableLayout>
|
|
</androidx.core.widget.NestedScrollView>
|
|
<Button
|
|
android:id="@+id/select_audio_effects_button"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="32dp"
|
|
android:layout_marginStart="32dp"
|
|
android:layout_marginEnd="32dp"
|
|
android:text="@string/select_audio_effects"
|
|
app:layout_constraintBottom_toTopOf="@+id/select_video_effects_button"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent" />
|
|
<Button
|
|
android:id="@+id/select_video_effects_button"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="32dp"
|
|
android:layout_marginStart="32dp"
|
|
android:layout_marginEnd="32dp"
|
|
android:text="@string/select_video_effects"
|
|
app:layout_constraintBottom_toTopOf="@+id/export_button"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent" />
|
|
<Button
|
|
android:id="@+id/export_button"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="28dp"
|
|
android:layout_marginStart="32dp"
|
|
android:layout_marginEnd="32dp"
|
|
android:text="@string/export"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent" />
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|