mirror of
https://github.com/samsonjs/media.git
synced 2026-04-09 11:55:46 +00:00
Merge pull request #2756 from kiall/par-debugview
Include Pixel Aspect Ratio in DebugTextViewHelper
This commit is contained in:
commit
c6dfccf393
1 changed files with 8 additions and 2 deletions
|
|
@ -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…
Reference in a new issue