add UHD icons to infoviewer

Origin commit data
------------------
Branch: ni/coolstream
Commit: d367c33842
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-10-12 (Thu, 12 Oct 2017)

Origin message was:
------------------
- add UHD icons to infoviewer

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2017-10-12 00:36:45 +02:00
parent 4ed39f4feb
commit b9d01bef9a
5 changed files with 10 additions and 1 deletions

View File

@@ -614,6 +614,9 @@ void CInfoViewerBB::showIcon_Resolution()
if (g_settings.infobar_show_res == 0) {//show resolution icon on infobar
videoDecoder->getPictureInfo(xres, yres, framerate);
switch (yres) {
case 2160:
icon_name = NEUTRINO_ICON_RESOLUTION_2160;
break;
case 1920:
icon_name = NEUTRINO_ICON_RESOLUTION_1920;
break;
@@ -661,7 +664,9 @@ void CInfoViewerBB::showIcon_Resolution()
}
if (g_settings.infobar_show_res == 1) {//show simple resolution icon on infobar
videoDecoder->getPictureInfo(xres, yres, framerate);
if (yres > 576)
if (yres > 1088)
icon_name = NEUTRINO_ICON_RESOLUTION_UHD;
else if (yres > 576)
icon_name = NEUTRINO_ICON_RESOLUTION_HD;
else if (yres > 0)
icon_name = NEUTRINO_ICON_RESOLUTION_SD;