@@ -59,6 +59,7 @@ public final class ConfigurationActivity extends AppCompatActivity {
5959 public static final String TRIM_START_MS = "trim_start_ms" ;
6060 public static final String TRIM_END_MS = "trim_end_ms" ;
6161 public static final String ENABLE_FALLBACK = "enable_fallback" ;
62+ public static final String ENABLE_DEBUG_PREVIEW = "enable_debug_preview" ;
6263 public static final String ENABLE_REQUEST_SDR_TONE_MAPPING = "enable_request_sdr_tone_mapping" ;
6364 public static final String ENABLE_HDR_EDITING = "enable_hdr_editing" ;
6465 public static final String DEMO_EFFECTS_SELECTIONS = "demo_effects_selections" ;
@@ -120,6 +121,7 @@ public final class ConfigurationActivity extends AppCompatActivity {
120121 private @ MonotonicNonNull Spinner rotateSpinner ;
121122 private @ MonotonicNonNull CheckBox trimCheckBox ;
122123 private @ MonotonicNonNull CheckBox enableFallbackCheckBox ;
124+ private @ MonotonicNonNull CheckBox enableDebugPreviewCheckBox ;
123125 private @ MonotonicNonNull CheckBox enableRequestSdrToneMappingCheckBox ;
124126 private @ MonotonicNonNull CheckBox enableHdrEditingCheckBox ;
125127 private @ MonotonicNonNull Button selectDemoEffectsButton ;
@@ -200,6 +202,7 @@ protected void onCreate(@Nullable Bundle savedInstanceState) {
200202 trimEndMs = C .TIME_UNSET ;
201203
202204 enableFallbackCheckBox = findViewById (R .id .enable_fallback_checkbox );
205+ enableDebugPreviewCheckBox = findViewById (R .id .enable_debug_preview_checkbox );
203206 enableRequestSdrToneMappingCheckBox = findViewById (R .id .request_sdr_tone_mapping_checkbox );
204207 enableRequestSdrToneMappingCheckBox .setEnabled (isRequestSdrToneMappingSupported ());
205208 findViewById (R .id .request_sdr_tone_mapping ).setEnabled (isRequestSdrToneMappingSupported ());
@@ -237,6 +240,7 @@ protected void onNewIntent(Intent intent) {
237240 "rotateSpinner" ,
238241 "trimCheckBox" ,
239242 "enableFallbackCheckBox" ,
243+ "enableDebugPreviewCheckBox" ,
240244 "enableRequestSdrToneMappingCheckBox" ,
241245 "enableHdrEditingCheckBox" ,
242246 "demoEffectsSelections"
@@ -275,6 +279,7 @@ private void startTransformation(View view) {
275279 bundle .putLong (TRIM_END_MS , trimEndMs );
276280 }
277281 bundle .putBoolean (ENABLE_FALLBACK , enableFallbackCheckBox .isChecked ());
282+ bundle .putBoolean (ENABLE_DEBUG_PREVIEW , enableDebugPreviewCheckBox .isChecked ());
278283 bundle .putBoolean (
279284 ENABLE_REQUEST_SDR_TONE_MAPPING , enableRequestSdrToneMappingCheckBox .isChecked ());
280285 bundle .putBoolean (ENABLE_HDR_EDITING , enableHdrEditingCheckBox .isChecked ());
@@ -377,6 +382,7 @@ private void selectDemoEffect(DialogInterface dialog, int which, boolean isCheck
377382 "resolutionHeightSpinner" ,
378383 "scaleSpinner" ,
379384 "rotateSpinner" ,
385+ "enableDebugPreviewCheckBox" ,
380386 "enableRequestSdrToneMappingCheckBox" ,
381387 "enableHdrEditingCheckBox" ,
382388 "selectDemoEffectsButton"
@@ -397,6 +403,7 @@ private void onRemoveAudio(View view) {
397403 "resolutionHeightSpinner" ,
398404 "scaleSpinner" ,
399405 "rotateSpinner" ,
406+ "enableDebugPreviewCheckBox" ,
400407 "enableRequestSdrToneMappingCheckBox" ,
401408 "enableHdrEditingCheckBox" ,
402409 "selectDemoEffectsButton"
@@ -416,6 +423,7 @@ private void onRemoveVideo(View view) {
416423 "resolutionHeightSpinner" ,
417424 "scaleSpinner" ,
418425 "rotateSpinner" ,
426+ "enableDebugPreviewCheckBox" ,
419427 "enableRequestSdrToneMappingCheckBox" ,
420428 "enableHdrEditingCheckBox" ,
421429 "selectDemoEffectsButton"
@@ -426,6 +434,7 @@ private void enableTrackSpecificOptions(boolean isAudioEnabled, boolean isVideoE
426434 resolutionHeightSpinner .setEnabled (isVideoEnabled );
427435 scaleSpinner .setEnabled (isVideoEnabled );
428436 rotateSpinner .setEnabled (isVideoEnabled );
437+ enableDebugPreviewCheckBox .setEnabled (isVideoEnabled );
429438 enableRequestSdrToneMappingCheckBox .setEnabled (
430439 isRequestSdrToneMappingSupported () && isVideoEnabled );
431440 enableHdrEditingCheckBox .setEnabled (isVideoEnabled );
0 commit comments