projects
/
vuplus_xbmc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a0c0e31
)
change the way 4K resolution is determined.
author
Sam Stenvall
<sam@gorbachov.negge.fi>
Mon, 18 Nov 2013 22:45:23 +0000
(
00:45
+0200)
committer
Sam Stenvall
<neggelandia@gmail.com>
Mon, 13 Jan 2014 15:36:41 +0000
(17:36 +0200)
Older versions of
tvheadend incorrectly report 1080i channels as having 1088 vertical
pixels so they got classified as 4K. The algorithm is now changed
to consider source as 4K only when the total pixel count exceeds
6 megapixels.
xbmc/utils/StreamDetails.cpp
patch
|
blob
|
history
diff --git
a/xbmc/utils/StreamDetails.cpp
b/xbmc/utils/StreamDetails.cpp
index
a64b5c0
..
85edbbd
100644
(file)
--- a/
xbmc/utils/StreamDetails.cpp
+++ b/
xbmc/utils/StreamDetails.cpp
@@
-560,8
+560,10
@@
CStdString CStreamDetails::VideoDimsToResolutionDescription(int iWidth, int iHei
else if (iWidth <= 1920 && iHeight <= 1080)
return "1080";
// 4K
- else
+ else
if (iWidth * iHeight >= 6000000)
return "4K";
+ else
+ return "";
}
CStdString CStreamDetails::VideoAspectToAspectDescription(float fAspect)