mirror of
https://github.com/androidx/media.git
synced 2025-05-12 18:19:50 +08:00
Include Pixel Aspect Ratio in DebugTextViewHelper
Add the video Pixel Aspect Ratio to the DebugTextViewHelper in order to help debug issues related to PAR changes etc
This commit is contained in:
parent
2439c582d4
commit
c24ef592e7
@ -163,9 +163,15 @@ public final class DebugTextViewHelper implements Runnable, ExoPlayer.EventListe
|
||||
if (format == null) {
|
||||
return "";
|
||||
}
|
||||
float par = format.pixelWidthHeightRatio;
|
||||
String parInfo = "";
|
||||
if (par != Format.NO_VALUE && (int) par != 1) {
|
||||
// Add pixel aspect ratio only when it's useful
|
||||
parInfo = " par:" + format.pixelWidthHeightRatio;
|
||||
}
|
||||
return "\n" + format.sampleMimeType + "(id:" + format.id + " r:" + format.width + "x"
|
||||
+ format.height + getDecoderCountersBufferCountString(player.getVideoDecoderCounters())
|
||||
+ ")";
|
||||
+ format.height + parInfo
|
||||
+ getDecoderCountersBufferCountString(player.getVideoDecoderCounters()) + ")";
|
||||
}
|
||||
|
||||
private String getAudioString() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user