Use a resolution that should be encode-able on all devices

The image in the test has a resolution of 1x1 which some device will reject.

PiperOrigin-RevId: 649039791
This commit is contained in:
claincly 2024-07-03 05:30:21 -07:00 committed by Copybara-Service
parent 0b96f4372f
commit b9d101f090

View file

@ -27,6 +27,7 @@ import android.view.SurfaceView;
import androidx.media3.common.Effect;
import androidx.media3.common.MediaItem;
import androidx.media3.effect.GlEffect;
import androidx.media3.effect.Presentation;
import androidx.media3.exoplayer.ExoPlayer;
import androidx.media3.transformer.Composition;
import androidx.media3.transformer.CompositionPlayer;
@ -346,7 +347,10 @@ public class VideoTimestampConsistencyTest {
prependVideoEffects(
editedMediaItems,
/* effects= */ ImmutableList.of(
(GlEffect) (context, useHdr) -> timestampRecordingShaderProgram));
(GlEffect) (context, useHdr) -> timestampRecordingShaderProgram,
// Use a resolution that all devices should support.
Presentation.createForWidthAndHeight(
/* width= */ 320, /* height= */ 240, Presentation.LAYOUT_SCALE_TO_FIT)));
@SuppressWarnings("unused")
ExportTestResult result =