mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 07:51:11 +02:00
-add frame rates
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@705 e54a6e83-5905-42d5-8d5c-058d10e6a962
Origin commit data
------------------
Branch: ni/coolstream
Commit: 8aa57aa5a7
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2010-08-04 (Wed, 04 Aug 2010)
Origin message was:
------------------
-add frame rates
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@705 e54a6e83-5905-42d5-8d5c-058d10e6a962
------------------
This commit was generated by Migit
This commit is contained in:
@@ -509,22 +509,37 @@ void CStreamInfo2::paint_techinfo(int xpos, int ypos)
|
|||||||
sprintf ((char *) buf, "%s:", g_Locale->getText (LOCALE_STREAMINFO_FRAMERATE));
|
sprintf ((char *) buf, "%s:", g_Locale->getText (LOCALE_STREAMINFO_FRAMERATE));
|
||||||
g_Font[font_info]->RenderString (xpos, ypos, width*2/3 - 10, buf, COL_MENUCONTENTDARK, 0, true); // UTF-8
|
g_Font[font_info]->RenderString (xpos, ypos, width*2/3 - 10, buf, COL_MENUCONTENTDARK, 0, true); // UTF-8
|
||||||
switch (framerate) {
|
switch (framerate) {
|
||||||
|
case 0:
|
||||||
|
snprintf ((char *) buf,sizeof(buf), "23.976fps");
|
||||||
|
break;
|
||||||
|
case 1:
|
||||||
|
snprintf ((char *) buf,sizeof(buf), "24fps");
|
||||||
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
sprintf ((char *) buf, "25fps");
|
snprintf ((char *) buf,sizeof(buf), "25fps");
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
sprintf ((char *) buf, "30fps");
|
snprintf ((char *) buf,sizeof(buf), "29,976fps");
|
||||||
|
break;
|
||||||
|
case 4:
|
||||||
|
snprintf ((char *) buf,sizeof(buf), "30fps");
|
||||||
break;
|
break;
|
||||||
case 5:
|
case 5:
|
||||||
sprintf ((char *) buf, "50fps");
|
snprintf ((char *) buf,sizeof(buf), "50fps");
|
||||||
|
break;
|
||||||
|
case 6:
|
||||||
|
snprintf ((char *) buf,sizeof(buf), "50,94fps");
|
||||||
|
break;
|
||||||
|
case 7:
|
||||||
|
snprintf ((char *) buf,sizeof(buf), "60fps");
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
strncpy (buf, g_Locale->getText (LOCALE_STREAMINFO_FRAMERATE_UNKNOWN), sizeof (buf));
|
strncpy (buf, g_Locale->getText (LOCALE_STREAMINFO_FRAMERATE_UNKNOWN), sizeof (buf));
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
g_Font[font_info]->RenderString (xpos+spaceoffset, ypos, width*2/3 - 10, buf, COL_MENUCONTENTDARK, 0, true); // UTF-8
|
g_Font[font_info]->RenderString (xpos+spaceoffset, ypos, width*2/3 - 10, buf, COL_MENUCONTENTDARK, 0, true); // UTF-8
|
||||||
// place for average bitrate
|
// place for average bitrate
|
||||||
average_bitrate_pos = ypos += iheight;
|
average_bitrate_pos = ypos += iheight;
|
||||||
|
|
||||||
//AUDIOTYPE
|
//AUDIOTYPE
|
||||||
ypos += iheight;
|
ypos += iheight;
|
||||||
int type, layer, freq, mode, lbitrate;
|
int type, layer, freq, mode, lbitrate;
|
||||||
|
Reference in New Issue
Block a user