mirror of
https://github.com/androidx/media.git
synced 2025-05-03 21:57:46 +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.ColorInfo;
|
||||||
import androidx.media3.common.Format;
|
import androidx.media3.common.Format;
|
||||||
import androidx.media3.common.Player;
|
import androidx.media3.common.Player;
|
||||||
|
import androidx.media3.common.VideoSize;
|
||||||
import androidx.media3.common.util.Assertions;
|
import androidx.media3.common.util.Assertions;
|
||||||
import androidx.media3.common.util.UnstableApi;
|
import androidx.media3.common.util.UnstableApi;
|
||||||
import androidx.media3.exoplayer.DecoderCounters;
|
import androidx.media3.exoplayer.DecoderCounters;
|
||||||
@ -127,6 +128,7 @@ public class DebugTextViewHelper {
|
|||||||
@UnstableApi
|
@UnstableApi
|
||||||
protected String getVideoString() {
|
protected String getVideoString() {
|
||||||
Format format = player.getVideoFormat();
|
Format format = player.getVideoFormat();
|
||||||
|
VideoSize videoSize = player.getVideoSize();
|
||||||
DecoderCounters decoderCounters = player.getVideoDecoderCounters();
|
DecoderCounters decoderCounters = player.getVideoDecoderCounters();
|
||||||
if (format == null || decoderCounters == null) {
|
if (format == null || decoderCounters == null) {
|
||||||
return "";
|
return "";
|
||||||
@ -136,11 +138,11 @@ public class DebugTextViewHelper {
|
|||||||
+ "(id:"
|
+ "(id:"
|
||||||
+ format.id
|
+ format.id
|
||||||
+ " r:"
|
+ " r:"
|
||||||
+ format.width
|
+ videoSize.width
|
||||||
+ "x"
|
+ "x"
|
||||||
+ format.height
|
+ videoSize.height
|
||||||
+ getColorInfoString(format.colorInfo)
|
+ getColorInfoString(format.colorInfo)
|
||||||
+ getPixelAspectRatioString(format.pixelWidthHeightRatio)
|
+ getPixelAspectRatioString(videoSize.pixelWidthHeightRatio)
|
||||||
+ getDecoderCountersBufferCountString(decoderCounters)
|
+ getDecoderCountersBufferCountString(decoderCounters)
|
||||||
+ " vfpo: "
|
+ " vfpo: "
|
||||||
+ getVideoFrameProcessingOffsetAverageString(
|
+ getVideoFrameProcessingOffsetAverageString(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user