mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 07:51:11 +02:00
streaminfo2: show pmt version, show new pids after pmt update
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1455 e54a6e83-5905-42d5-8d5c-058d10e6a962
Origin commit data
------------------
Branch: ni/coolstream
Commit: 5f96e75c31
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2011-05-10 (Tue, 10 May 2011)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -100,7 +100,7 @@ CStreamInfo2::CStreamInfo2 ()
|
|||||||
rate.short_average = 0;
|
rate.short_average = 0;
|
||||||
rate.max_short_average = 0;
|
rate.max_short_average = 0;
|
||||||
rate.min_short_average = 0;
|
rate.min_short_average = 0;
|
||||||
|
box_h = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
CStreamInfo2::~CStreamInfo2 ()
|
CStreamInfo2::~CStreamInfo2 ()
|
||||||
@@ -139,10 +139,13 @@ int CStreamInfo2::doSignalStrengthLoop ()
|
|||||||
|
|
||||||
neutrino_msg_t msg;
|
neutrino_msg_t msg;
|
||||||
uint64_t maxb, minb, lastb, tmp_rate;
|
uint64_t maxb, minb, lastb, tmp_rate;
|
||||||
|
unsigned int current_pmt_version= pmt_version;
|
||||||
int cnt = 0;
|
int cnt = 0;
|
||||||
uint16_t ssig, ssnr;
|
uint16_t ssig, ssnr;
|
||||||
uint32_t ber;
|
uint32_t ber;
|
||||||
char tmp_str[150];
|
char tmp_str[150];
|
||||||
|
int delay_counter = 0;
|
||||||
|
const int delay = 15;
|
||||||
int offset = g_Font[font_info]->getRenderWidth(g_Locale->getText (LOCALE_STREAMINFO_BITRATE));
|
int offset = g_Font[font_info]->getRenderWidth(g_Locale->getText (LOCALE_STREAMINFO_BITRATE));
|
||||||
int sw = g_Font[font_info]->getRenderWidth ("99999.999");
|
int sw = g_Font[font_info]->getRenderWidth ("99999.999");
|
||||||
maxb = minb = lastb = tmp_rate = 0;
|
maxb = minb = lastb = tmp_rate = 0;
|
||||||
@@ -168,6 +171,14 @@ int CStreamInfo2::doSignalStrengthLoop ()
|
|||||||
cnt++;
|
cnt++;
|
||||||
int dheight = g_Font[font_info]->getHeight ();
|
int dheight = g_Font[font_info]->getHeight ();
|
||||||
int dx1 = x + 10;
|
int dx1 = x + 10;
|
||||||
|
|
||||||
|
if(delay_counter > delay + 1){
|
||||||
|
CZapitClient::CCurrentServiceInfo si = g_Zapit->getCurrentServiceInfo ();
|
||||||
|
pmt_version = si.pmt_version;
|
||||||
|
if(pmt_version != current_pmt_version){
|
||||||
|
delay_counter = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
if (ret && (lastb != bit_s)) {
|
if (ret && (lastb != bit_s)) {
|
||||||
lastb = bit_s;
|
lastb = bit_s;
|
||||||
|
|
||||||
@@ -186,6 +197,11 @@ int CStreamInfo2::doSignalStrengthLoop ()
|
|||||||
}
|
}
|
||||||
if(snrscale && sigscale)
|
if(snrscale && sigscale)
|
||||||
showSNR ();
|
showSNR ();
|
||||||
|
if(pmt_version != current_pmt_version && delay_counter > delay){
|
||||||
|
current_pmt_version = pmt_version;
|
||||||
|
paint_techinfo (x + 10, y+ hheight +5);
|
||||||
|
}
|
||||||
|
delay_counter++;
|
||||||
}
|
}
|
||||||
rate.short_average = abit_s;
|
rate.short_average = abit_s;
|
||||||
if (signal.max_ber < signal.ber) {
|
if (signal.max_ber < signal.ber) {
|
||||||
@@ -209,6 +225,7 @@ int CStreamInfo2::doSignalStrengthLoop ()
|
|||||||
}
|
}
|
||||||
|
|
||||||
paint_signal_fe(rate, signal);
|
paint_signal_fe(rate, signal);
|
||||||
|
|
||||||
signal.old_sig = signal.sig;
|
signal.old_sig = signal.sig;
|
||||||
signal.old_snr = signal.snr;
|
signal.old_snr = signal.snr;
|
||||||
signal.old_ber = signal.ber;
|
signal.old_ber = signal.ber;
|
||||||
@@ -454,6 +471,12 @@ void CStreamInfo2::paint_techinfo(int xpos, int ypos)
|
|||||||
int xres = 0, yres = 0, aspectRatio = 0, framerate;
|
int xres = 0, yres = 0, aspectRatio = 0, framerate;
|
||||||
// paint labels
|
// paint labels
|
||||||
int spaceoffset = 0,i = 0;
|
int spaceoffset = 0,i = 0;
|
||||||
|
int ypos1 = ypos;
|
||||||
|
int box_width = width*2/3 - 10;
|
||||||
|
if(box_h > 0)
|
||||||
|
{
|
||||||
|
frameBuffer->paintBoxRel (0, ypos, box_width, box_h, COL_MENUHEAD_PLUS_0);
|
||||||
|
}
|
||||||
int array[5]={g_Font[font_info]->getRenderWidth(g_Locale->getText (LOCALE_STREAMINFO_RESOLUTION)),
|
int array[5]={g_Font[font_info]->getRenderWidth(g_Locale->getText (LOCALE_STREAMINFO_RESOLUTION)),
|
||||||
g_Font[font_info]->getRenderWidth(g_Locale->getText (LOCALE_STREAMINFO_ARATIO)),
|
g_Font[font_info]->getRenderWidth(g_Locale->getText (LOCALE_STREAMINFO_ARATIO)),
|
||||||
g_Font[font_info]->getRenderWidth(g_Locale->getText (LOCALE_STREAMINFO_FRAMERATE)),
|
g_Font[font_info]->getRenderWidth(g_Locale->getText (LOCALE_STREAMINFO_FRAMERATE)),
|
||||||
@@ -465,27 +488,30 @@ void CStreamInfo2::paint_techinfo(int xpos, int ypos)
|
|||||||
spaceoffset = array[i];
|
spaceoffset = array[i];
|
||||||
}
|
}
|
||||||
average_bitrate_offset = spaceoffset+=4;
|
average_bitrate_offset = spaceoffset+=4;
|
||||||
if(!(videoDecoder->getBlank())){
|
CZapitClient::CCurrentServiceInfo si = g_Zapit->getCurrentServiceInfo ();
|
||||||
videoDecoder->getPictureInfo(xres, yres, framerate);
|
|
||||||
aspectRatio = videoDecoder->getAspectRatio();
|
if(si.vpid && !(videoDecoder->getBlank())){
|
||||||
|
videoDecoder->getPictureInfo(xres, yres, framerate);
|
||||||
|
aspectRatio = videoDecoder->getAspectRatio();
|
||||||
}
|
}
|
||||||
|
|
||||||
//Video RESOLUTION
|
//Video RESOLUTION
|
||||||
ypos += iheight;
|
ypos += iheight;
|
||||||
sprintf ((char *) buf, "%s:",g_Locale->getText (LOCALE_STREAMINFO_RESOLUTION));
|
sprintf ((char *) buf, "%s:",g_Locale->getText (LOCALE_STREAMINFO_RESOLUTION));
|
||||||
g_Font[font_info]->RenderString (xpos, ypos, width*2/3 - 10, buf, COL_INFOBAR, 0, true); // UTF-8
|
g_Font[font_info]->RenderString (xpos, ypos, box_width, buf, COL_INFOBAR, 0, true); // UTF-8
|
||||||
sprintf ((char *) buf, "%dx%d", xres, yres);
|
sprintf ((char *) buf, "%dx%d", xres, yres);
|
||||||
g_Font[font_info]->RenderString (xpos+spaceoffset, ypos, width*2/3 - 10, buf, COL_INFOBAR, 0, true); // UTF-8
|
g_Font[font_info]->RenderString (xpos+spaceoffset, ypos, box_width, buf, COL_INFOBAR, 0, true); // UTF-8
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
ypos += iheight;
|
ypos += iheight;
|
||||||
sprintf ((char *) buf, "%s: %d bits/sec", g_Locale->getText (LOCALE_STREAMINFO_BITRATE), (int) bitInfo[4] * 50);
|
sprintf ((char *) buf, "%s: %d bits/sec", g_Locale->getText (LOCALE_STREAMINFO_BITRATE), (int) bitInfo[4] * 50);
|
||||||
g_Font[font_info]->RenderString (xpos, ypos, width*2/3 - 10, buf, COL_MENUCONTENT, 0, true); // UTF-8
|
g_Font[font_info]->RenderString (xpos, ypos, box_width, buf, COL_MENUCONTENT, 0, true); // UTF-8
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
//audio rate
|
//audio rate
|
||||||
ypos += iheight;
|
ypos += iheight;
|
||||||
sprintf ((char *) buf, "%s:",g_Locale->getText (LOCALE_STREAMINFO_ARATIO));
|
sprintf ((char *) buf, "%s:",g_Locale->getText (LOCALE_STREAMINFO_ARATIO));
|
||||||
g_Font[font_info]->RenderString (xpos, ypos, width*2/3 - 10, buf, COL_INFOBAR, 0, true); // UTF-8
|
g_Font[font_info]->RenderString (xpos, ypos, box_width, buf, COL_INFOBAR, 0, true); // UTF-8
|
||||||
switch (aspectRatio) {
|
switch (aspectRatio) {
|
||||||
case 0:
|
case 0:
|
||||||
sprintf ((char *) buf, "N/A");
|
sprintf ((char *) buf, "N/A");
|
||||||
@@ -505,12 +531,13 @@ void CStreamInfo2::paint_techinfo(int xpos, int ypos)
|
|||||||
default:
|
default:
|
||||||
strncpy (buf, g_Locale->getText (LOCALE_STREAMINFO_ARATIO_UNKNOWN), sizeof (buf));
|
strncpy (buf, g_Locale->getText (LOCALE_STREAMINFO_ARATIO_UNKNOWN), sizeof (buf));
|
||||||
}
|
}
|
||||||
g_Font[font_info]->RenderString (xpos+spaceoffset, ypos, width*2/3 - 10, buf, COL_INFOBAR, 0, true); // UTF-8
|
g_Font[font_info]->RenderString (xpos+spaceoffset, ypos, box_width, buf, COL_INFOBAR, 0, true); // UTF-8
|
||||||
|
|
||||||
//Video FRAMERATE
|
//Video FRAMERATE
|
||||||
ypos += iheight;
|
ypos += iheight;
|
||||||
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_INFOBAR, 0, true); // UTF-8
|
g_Font[font_info]->RenderString (xpos, ypos, box_width, buf, COL_INFOBAR, 0, true); // UTF-8
|
||||||
|
videoDecoder->getPictureInfo(xres, yres, framerate);
|
||||||
switch (framerate) {
|
switch (framerate) {
|
||||||
case 0:
|
case 0:
|
||||||
snprintf ((char *) buf,sizeof(buf), "23.976fps");
|
snprintf ((char *) buf,sizeof(buf), "23.976fps");
|
||||||
@@ -540,7 +567,7 @@ void CStreamInfo2::paint_techinfo(int xpos, int ypos)
|
|||||||
strncpy (buf, g_Locale->getText (LOCALE_STREAMINFO_FRAMERATE_UNKNOWN), sizeof (buf));
|
strncpy (buf, g_Locale->getText (LOCALE_STREAMINFO_FRAMERATE_UNKNOWN), sizeof (buf));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
g_Font[font_info]->RenderString (xpos+spaceoffset, ypos, width*2/3 - 10, buf, COL_INFOBAR, 0, true); // UTF-8
|
g_Font[font_info]->RenderString (xpos+spaceoffset, ypos, box_width, buf, COL_INFOBAR, 0, true); // UTF-8
|
||||||
// place for average bitrate
|
// place for average bitrate
|
||||||
average_bitrate_pos = ypos += iheight;
|
average_bitrate_pos = ypos += iheight;
|
||||||
//AUDIOTYPE
|
//AUDIOTYPE
|
||||||
@@ -559,14 +586,14 @@ void CStreamInfo2::paint_techinfo(int xpos, int ypos)
|
|||||||
const char *ddmodes[8] = { "CH1/CH2", "C", "L/R", "L/C/R", "L/R/S", "L/C/R/S", "L/R/SL/SR", "L/C/R/SL/SR" };
|
const char *ddmodes[8] = { "CH1/CH2", "C", "L/R", "L/C/R", "L/R/S", "L/C/R/S", "L/R/SL/SR", "L/C/R/SL/SR" };
|
||||||
|
|
||||||
sprintf ((char *) buf, "%s:", g_Locale->getText (LOCALE_STREAMINFO_AUDIOTYPE));
|
sprintf ((char *) buf, "%s:", g_Locale->getText (LOCALE_STREAMINFO_AUDIOTYPE));
|
||||||
g_Font[font_info]->RenderString (xpos, ypos, width*2/3 - 10, buf, COL_INFOBAR, 0, true); // UTF-8
|
g_Font[font_info]->RenderString (xpos, ypos, box_width, buf, COL_INFOBAR, 0, true); // UTF-8
|
||||||
|
|
||||||
if(type == 0) {
|
if(type == 0) {
|
||||||
sprintf ((char *) buf, "MPEG %s (%d)", mpegmodes[mode], freq);
|
sprintf ((char *) buf, "MPEG %s (%d)", mpegmodes[mode], freq);
|
||||||
} else {
|
} else {
|
||||||
sprintf ((char *) buf, "DD %s (%d)", ddmodes[mode], freq);
|
sprintf ((char *) buf, "DD %s (%d)", ddmodes[mode], freq);
|
||||||
}
|
}
|
||||||
g_Font[font_info]->RenderString (xpos+spaceoffset, ypos, width*2/3 - 10, buf, COL_INFOBAR, 0, true); // UTF-8
|
g_Font[font_info]->RenderString (xpos+spaceoffset, ypos, box_width, buf, COL_INFOBAR, 0, true); // UTF-8
|
||||||
|
|
||||||
//satellite
|
//satellite
|
||||||
t_satellite_position satellitePosition = CNeutrinoApp::getInstance ()->channelList->getActiveSatellitePosition ();
|
t_satellite_position satellitePosition = CNeutrinoApp::getInstance ()->channelList->getActiveSatellitePosition ();
|
||||||
@@ -579,21 +606,20 @@ void CStreamInfo2::paint_techinfo(int xpos, int ypos)
|
|||||||
else if(frontend->getInfo()->type == FE_QAM) {
|
else if(frontend->getInfo()->type == FE_QAM) {
|
||||||
sprintf ((char *) buf, "%s:",g_Locale->getText (LOCALE_CHANNELLIST_PROVS));
|
sprintf ((char *) buf, "%s:",g_Locale->getText (LOCALE_CHANNELLIST_PROVS));
|
||||||
}
|
}
|
||||||
g_Font[font_info]->RenderString(xpos, ypos, width*2/3-10, buf, COL_INFOBAR, 0, true); // UTF-8
|
g_Font[font_info]->RenderString(xpos, ypos, box_width, buf, COL_INFOBAR, 0, true); // UTF-8
|
||||||
sprintf ((char *) buf, "%s", sit->second.name.c_str());
|
sprintf ((char *) buf, "%s", sit->second.name.c_str());
|
||||||
g_Font[font_info]->RenderString (xpos+spaceoffset, ypos, width*2/3-10, buf, COL_INFOBAR, 0, true); // UTF-8
|
g_Font[font_info]->RenderString (xpos+spaceoffset, ypos, box_width, buf, COL_INFOBAR, 0, true); // UTF-8
|
||||||
}
|
}
|
||||||
CChannelList *channelList = CNeutrinoApp::getInstance ()->channelList;
|
CChannelList *channelList = CNeutrinoApp::getInstance ()->channelList;
|
||||||
// int curnum = channelList->getActiveChannelNumber();
|
// int curnum = channelList->getActiveChannelNumber();
|
||||||
// CZapitChannel * channel = channelList->getChannel(curnum);
|
// CZapitChannel * channel = channelList->getChannel(curnum);
|
||||||
CZapitClient::CCurrentServiceInfo si = g_Zapit->getCurrentServiceInfo ();
|
|
||||||
|
|
||||||
//channel
|
//channel
|
||||||
ypos += iheight;
|
ypos += iheight;
|
||||||
sprintf ((char *) buf, "%s:",g_Locale->getText (LOCALE_TIMERLIST_CHANNEL));//swiped locale
|
sprintf ((char *) buf, "%s:",g_Locale->getText (LOCALE_TIMERLIST_CHANNEL));//swiped locale
|
||||||
g_Font[font_info]->RenderString(xpos, ypos, width*2/3-10, buf , COL_INFOBAR, 0, true); // UTF-8
|
g_Font[font_info]->RenderString(xpos, ypos, box_width, buf , COL_INFOBAR, 0, true); // UTF-8
|
||||||
sprintf((char*) buf, "%s" ,channelList->getActiveChannelName().c_str());
|
sprintf((char*) buf, "%s" ,channelList->getActiveChannelName().c_str());
|
||||||
g_Font[font_info]->RenderString (xpos+spaceoffset, ypos, width*2/3 - 10, buf, COL_INFOBAR, 0, true); // UTF-8
|
g_Font[font_info]->RenderString (xpos+spaceoffset, ypos, box_width, buf, COL_INFOBAR, 0, true); // UTF-8
|
||||||
|
|
||||||
//tsfrequenz
|
//tsfrequenz
|
||||||
ypos += iheight;
|
ypos += iheight;
|
||||||
@@ -609,14 +635,14 @@ void CStreamInfo2::paint_techinfo(int xpos, int ypos)
|
|||||||
scaling = 15000;
|
scaling = 15000;
|
||||||
}
|
}
|
||||||
sprintf ((char *) buf,"%d.%d (%c) %d %s %s %s", si.tsfrequency / 1000, si.tsfrequency % 1000, si.polarisation ? 'V' : 'H', si.rate / 1000,f,m,s);
|
sprintf ((char *) buf,"%d.%d (%c) %d %s %s %s", si.tsfrequency / 1000, si.tsfrequency % 1000, si.polarisation ? 'V' : 'H', si.rate / 1000,f,m,s);
|
||||||
g_Font[font_info]->RenderString(xpos, ypos, width*2/3-10, "Tp. Freq.:" , COL_INFOBAR, 0, true); // UTF-8
|
g_Font[font_info]->RenderString(xpos, ypos, box_width, "Tp. Freq.:" , COL_INFOBAR, 0, true); // UTF-8
|
||||||
g_Font[font_info]->RenderString(xpos+spaceoffset, ypos, width*2/3-10, buf, COL_INFOBAR, 0, true); // UTF-8
|
g_Font[font_info]->RenderString(xpos+spaceoffset, ypos, box_width, buf, COL_INFOBAR, 0, true); // UTF-8
|
||||||
}
|
}
|
||||||
else if(frontend->getInfo()->type == FE_QAM) {
|
else if(frontend->getInfo()->type == FE_QAM) {
|
||||||
sprintf ((char *) buf, "%s",g_Locale->getText (LOCALE_SCANTS_FREQDATA));
|
sprintf ((char *) buf, "%s",g_Locale->getText (LOCALE_SCANTS_FREQDATA));
|
||||||
g_Font[font_info]->RenderString(xpos, ypos, width*2/3-10, buf , COL_INFOBAR, 0, true); // UTF-8
|
g_Font[font_info]->RenderString(xpos, ypos, box_width, buf , COL_INFOBAR, 0, true); // UTF-8
|
||||||
sprintf((char*) buf, "%d.%d MHz", si.tsfrequency/1000, si.tsfrequency%1000);
|
sprintf((char*) buf, "%d.%d MHz", si.tsfrequency/1000, si.tsfrequency%1000);
|
||||||
g_Font[font_info]->RenderString(xpos+spaceoffset, ypos, width*2/3-10, buf, COL_INFOBAR, 0, true); // UTF-8
|
g_Font[font_info]->RenderString(xpos+spaceoffset, ypos, box_width, buf, COL_INFOBAR, 0, true); // UTF-8
|
||||||
scaling = 27000;
|
scaling = 27000;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -626,26 +652,28 @@ void CStreamInfo2::paint_techinfo(int xpos, int ypos)
|
|||||||
//onid
|
//onid
|
||||||
ypos+= sheight;
|
ypos+= sheight;
|
||||||
sprintf((char*) buf, "0x%04x (%i)", si.onid, si.onid);
|
sprintf((char*) buf, "0x%04x (%i)", si.onid, si.onid);
|
||||||
g_Font[font_small]->RenderString(xpos, ypos, width*2/3-10, "ONid:" , COL_INFOBAR, 0, true); // UTF-8
|
g_Font[font_small]->RenderString(xpos, ypos, box_width, "ONid:" , COL_INFOBAR, 0, true); // UTF-8
|
||||||
g_Font[font_small]->RenderString(xpos+spaceoffset, ypos, width*2/3-10, buf, COL_INFOBAR, 0, true); // UTF-8
|
g_Font[font_small]->RenderString(xpos+spaceoffset, ypos, box_width, buf, COL_INFOBAR, 0, true); // UTF-8
|
||||||
|
|
||||||
//sid
|
//sid
|
||||||
ypos+= sheight;
|
ypos+= sheight;
|
||||||
sprintf((char*) buf, "0x%04x (%i)", si.sid, si.sid);
|
sprintf((char*) buf, "0x%04x (%i)", si.sid, si.sid);
|
||||||
g_Font[font_small]->RenderString(xpos, ypos, width*2/3-10, "Sid:" , COL_INFOBAR, 0, true); // UTF-8
|
g_Font[font_small]->RenderString(xpos, ypos, box_width, "Sid:" , COL_INFOBAR, 0, true); // UTF-8
|
||||||
g_Font[font_small]->RenderString(xpos+spaceoffset, ypos, width*2/3-10, buf, COL_INFOBAR, 0, true); // UTF-8
|
g_Font[font_small]->RenderString(xpos+spaceoffset, ypos, box_width, buf, COL_INFOBAR, 0, true); // UTF-8
|
||||||
|
|
||||||
//tsid
|
//tsid
|
||||||
ypos+= sheight;
|
ypos+= sheight;
|
||||||
sprintf((char*) buf, "0x%04x (%i)", si.tsid, si.tsid);
|
sprintf((char*) buf, "0x%04x (%i)", si.tsid, si.tsid);
|
||||||
g_Font[font_small]->RenderString(xpos, ypos, width*2/3-10, "TSid:" , COL_INFOBAR, 0, true); // UTF-8
|
g_Font[font_small]->RenderString(xpos, ypos, box_width, "TSid:" , COL_INFOBAR, 0, true); // UTF-8
|
||||||
g_Font[font_small]->RenderString(xpos+spaceoffset, ypos, width*2/3-10, buf, COL_INFOBAR, 0, true); // UTF-8
|
g_Font[font_small]->RenderString(xpos+spaceoffset, ypos, box_width, buf, COL_INFOBAR, 0, true); // UTF-8
|
||||||
|
|
||||||
//pmtpid
|
//pmtpid
|
||||||
ypos+= sheight;
|
ypos+= sheight;
|
||||||
sprintf((char*) buf, "0x%04x (%i)", si.pmtpid, si.pmtpid);
|
pmt_version = si.pmt_version;
|
||||||
g_Font[font_small]->RenderString(xpos, ypos, width*2/3-10, "PMTpid:", COL_INFOBAR, 0, true); // UTF-8
|
sprintf((char*) buf, "0x%04x (%i) [%i]", si.pmtpid, si.pmtpid,pmt_version);
|
||||||
g_Font[font_small]->RenderString(xpos+spaceoffset, ypos, width*2/3-10, buf, COL_INFOBAR, 0, true); // UTF-8
|
g_Font[font_small]->RenderString(xpos, ypos, box_width, "PMTpid:", COL_INFOBAR, 0, true); // UTF-8
|
||||||
|
g_Font[font_small]->RenderString(xpos+spaceoffset, ypos, box_width, buf, COL_INFOBAR, 0, true); // UTF-8
|
||||||
|
|
||||||
|
|
||||||
//vpid
|
//vpid
|
||||||
ypos+= sheight;
|
ypos+= sheight;
|
||||||
@@ -654,12 +682,12 @@ void CStreamInfo2::paint_techinfo(int xpos, int ypos)
|
|||||||
} else {
|
} else {
|
||||||
sprintf((char*) buf, "%s", g_Locale->getText(LOCALE_STREAMINFO_NOT_AVAILABLE));
|
sprintf((char*) buf, "%s", g_Locale->getText(LOCALE_STREAMINFO_NOT_AVAILABLE));
|
||||||
}
|
}
|
||||||
g_Font[font_small]->RenderString(xpos, ypos, width*2/3-10, "Vpid:" , COL_INFOBAR, 0, true); // UTF-8
|
g_Font[font_small]->RenderString(xpos, ypos, box_width, "Vpid:" , COL_INFOBAR, 0, true); // UTF-8
|
||||||
g_Font[font_small]->RenderString(xpos+spaceoffset, ypos, width*2/3-10, buf, COL_INFOBAR, 0, true); // UTF-8
|
g_Font[font_small]->RenderString(xpos+spaceoffset, ypos, box_width, buf, COL_INFOBAR, 0, true); // UTF-8
|
||||||
|
|
||||||
//apid
|
//apid
|
||||||
ypos+= sheight;
|
ypos+= sheight;
|
||||||
g_Font[font_small]->RenderString(xpos, ypos, width*2/3-10, "Apid(s):" , COL_INFOBAR, 0, true); // UTF-8
|
g_Font[font_small]->RenderString(xpos, ypos, box_width, "Apid(s):" , COL_INFOBAR, 0, true); // UTF-8
|
||||||
if (g_RemoteControl->current_PIDs.APIDs.empty()){
|
if (g_RemoteControl->current_PIDs.APIDs.empty()){
|
||||||
sprintf((char*) buf, "%s", g_Locale->getText(LOCALE_STREAMINFO_NOT_AVAILABLE));
|
sprintf((char*) buf, "%s", g_Locale->getText(LOCALE_STREAMINFO_NOT_AVAILABLE));
|
||||||
} else {
|
} else {
|
||||||
@@ -668,10 +696,10 @@ void CStreamInfo2::paint_techinfo(int xpos, int ypos)
|
|||||||
{
|
{
|
||||||
sprintf((char*) buf, "0x%04x (%i)", g_RemoteControl->current_PIDs.APIDs[li].pid, g_RemoteControl->current_PIDs.APIDs[li].pid );
|
sprintf((char*) buf, "0x%04x (%i)", g_RemoteControl->current_PIDs.APIDs[li].pid, g_RemoteControl->current_PIDs.APIDs[li].pid );
|
||||||
if (li == g_RemoteControl->current_PIDs.PIDs.selected_apid){
|
if (li == g_RemoteControl->current_PIDs.PIDs.selected_apid){
|
||||||
g_Font[font_small]->RenderString(xpos+sw, ypos, width*2/3-10, buf, COL_MENUHEAD, 0, true); // UTF-8
|
g_Font[font_small]->RenderString(xpos+sw, ypos, box_width, buf, COL_MENUHEAD, 0, true); // UTF-8
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
g_Font[font_small]->RenderString(xpos+sw, ypos, width*2/3-10, buf, COL_INFOBAR, 0, true); // UTF-8
|
g_Font[font_small]->RenderString(xpos+sw, ypos, box_width, buf, COL_INFOBAR, 0, true); // UTF-8
|
||||||
}
|
}
|
||||||
sw = g_Font[font_small]->getRenderWidth(buf)+sw+10;
|
sw = g_Font[font_small]->getRenderWidth(buf)+sw+10;
|
||||||
if (((li+1)%3 == 0) &&(g_RemoteControl->current_PIDs.APIDs.size()-1 > li)){ // if we have lots of apids, put "intermediate" line with pids
|
if (((li+1)%3 == 0) &&(g_RemoteControl->current_PIDs.APIDs.size()-1 > li)){ // if we have lots of apids, put "intermediate" line with pids
|
||||||
@@ -687,9 +715,10 @@ void CStreamInfo2::paint_techinfo(int xpos, int ypos)
|
|||||||
sprintf((char*) buf, "%s", g_Locale->getText(LOCALE_STREAMINFO_NOT_AVAILABLE));
|
sprintf((char*) buf, "%s", g_Locale->getText(LOCALE_STREAMINFO_NOT_AVAILABLE));
|
||||||
else
|
else
|
||||||
sprintf((char*) buf, "0x%04x (%i)", g_RemoteControl->current_PIDs.PIDs.vtxtpid, g_RemoteControl->current_PIDs.PIDs.vtxtpid );
|
sprintf((char*) buf, "0x%04x (%i)", g_RemoteControl->current_PIDs.PIDs.vtxtpid, g_RemoteControl->current_PIDs.PIDs.vtxtpid );
|
||||||
g_Font[font_small]->RenderString(xpos, ypos, width*2/3-10, "VTXTpid:" , COL_INFOBAR, 0, true); // UTF-8
|
g_Font[font_small]->RenderString(xpos, ypos, box_width, "VTXTpid:" , COL_INFOBAR, 0, true); // UTF-8
|
||||||
g_Font[font_small]->RenderString(xpos+spaceoffset, ypos, width*2/3-10, buf, COL_INFOBAR, 0, true); // UTF-8
|
g_Font[font_small]->RenderString(xpos+spaceoffset, ypos, box_width, buf, COL_INFOBAR, 0, true); // UTF-8
|
||||||
|
if(box_h == 0)
|
||||||
|
box_h = ypos - ypos1;
|
||||||
yypos = ypos;
|
yypos = ypos;
|
||||||
paintCASystem(xpos,ypos);
|
paintCASystem(xpos,ypos);
|
||||||
}
|
}
|
||||||
|
@@ -63,6 +63,8 @@ class CStreamInfo2 : public CMenuTarget
|
|||||||
int average_bitrate_pos;
|
int average_bitrate_pos;
|
||||||
int average_bitrate_offset;
|
int average_bitrate_offset;
|
||||||
unsigned int scaling;
|
unsigned int scaling;
|
||||||
|
unsigned int pmt_version;
|
||||||
|
int box_h;
|
||||||
struct feSignal {
|
struct feSignal {
|
||||||
unsigned long ber, old_ber, max_ber, min_ber;
|
unsigned long ber, old_ber, max_ber, min_ber;
|
||||||
unsigned long sig, old_sig, max_sig, min_sig;
|
unsigned long sig, old_sig, max_sig, min_sig;
|
||||||
|
Reference in New Issue
Block a user