mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00
Merge pull request #1025 from v-novaltd:dsparano-exo209
PiperOrigin-RevId: 612485043 (cherry picked from commit bbdaf2b092c1cf909502fc49fb7bedf7a5b5b9b8)
This commit is contained in:
parent
cf9ff4de45
commit
e28d772423
@ -22,6 +22,7 @@ import androidx.annotation.Nullable;
|
||||
import androidx.media3.common.ColorInfo;
|
||||
import androidx.media3.common.Format;
|
||||
import androidx.media3.common.Player;
|
||||
import androidx.media3.common.VideoSize;
|
||||
import androidx.media3.common.util.Assertions;
|
||||
import androidx.media3.common.util.UnstableApi;
|
||||
import androidx.media3.exoplayer.DecoderCounters;
|
||||
@ -127,6 +128,7 @@ public class DebugTextViewHelper {
|
||||
@UnstableApi
|
||||
protected String getVideoString() {
|
||||
Format format = player.getVideoFormat();
|
||||
VideoSize videoSize = player.getVideoSize();
|
||||
DecoderCounters decoderCounters = player.getVideoDecoderCounters();
|
||||
if (format == null || decoderCounters == null) {
|
||||
return "";
|
||||
@ -136,11 +138,11 @@ public class DebugTextViewHelper {
|
||||
+ "(id:"
|
||||
+ format.id
|
||||
+ " r:"
|
||||
+ format.width
|
||||
+ videoSize.width
|
||||
+ "x"
|
||||
+ format.height
|
||||
+ videoSize.height
|
||||
+ getColorInfoString(format.colorInfo)
|
||||
+ getPixelAspectRatioString(format.pixelWidthHeightRatio)
|
||||
+ getPixelAspectRatioString(videoSize.pixelWidthHeightRatio)
|
||||
+ getDecoderCountersBufferCountString(decoderCounters)
|
||||
+ " vfpo: "
|
||||
+ getVideoFrameProcessingOffsetAverageString(
|
||||
|
Loading…
x
Reference in New Issue
Block a user