Lines Matching refs:bitrate
431 function BitrateColor($bitrate, $BitrateMaxScale=768) { argument
435 $bitrate *= (256 / $BitrateMaxScale); // scale from 1-[768]kbps to 1-256
436 $bitrate = round(min(max($bitrate, 1), 256));
437 $bitrate--; // scale from 1-256kbps to 0-255kbps
439 $Rcomponent = max(255 - ($bitrate * 2), 0);
440 $Gcomponent = max(($bitrate * 2) - 255, 0);
441 if ($bitrate > 127) {
442 $Bcomponent = max((255 - $bitrate) * 2, 0);
444 $Bcomponent = max($bitrate * 2, 0);
449 function BitrateText($bitrate, $decimals=0, $vbr=false) { argument
450 …n '<span style="color: #'.BitrateColor($bitrate).($vbr ? '; font-weight: bold;' : '').'">'.number_…