[Android] Benchmark: force SURFACE_FILL instead of FITT

Duncan McNamara git at videolan.org
Mon Aug 13 14:20:42 CEST 2018


vlc-android | branch: master | Duncan McNamara <dcn.mcnamara at gmail.com> | Mon Aug 13 14:17:36 2018 +0200| [6bb4c16a4f5c3bf33749939efd7170fa72282894] | committer: Geoffrey Métais

Benchmark: force SURFACE_FILL instead of FITT

FILL distorts the video but doesn't crop,
whereas FITT can. To have screenshot taken
more similar to those of the configuration,
FILL is better suited.

Signed-off-by: Geoffrey Métais <geoffrey.metais at gmail.com>

> https://code.videolan.org/videolan/vlc-android/commit/6bb4c16a4f5c3bf33749939efd7170fa72282894
---

 vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
index 70020918f..d42989230 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -396,7 +396,7 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
 
 
         if (mIsBenchmark) {
-            mCurrentSize = SURFACE_FIT_SCREEN;
+            mCurrentSize = SURFACE_FILL;
         } else {
             mCurrentSize = mSettings.getInt(PreferencesActivity.VIDEO_RATIO, SURFACE_BEST_FIT);
         }



More information about the Android mailing list