Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
SDK
/
exoplayer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
c6dfccf3
authored
Jun 13, 2017
by
ojw28
Committed by
GitHub
Jun 13, 2017
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge pull request #2756 from kiall/par-debugview
Include Pixel Aspect Ratio in DebugTextViewHelper
parents
b95417e7
c24ef592
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
library/ui/src/main/java/com/google/android/exoplayer2/ui/DebugTextViewHelper.java
library/ui/src/main/java/com/google/android/exoplayer2/ui/DebugTextViewHelper.java
View file @
c6dfccf3
...
...
@@ -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
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment