[MPlayer-dev-eng] [PATCH] TOOLS/calcbpp.pl

Torinthiel torinthiel at megapolis.pl
Tue Aug 17 10:36:08 CEST 2004


This patch simplifies the round function a bit, saving at least 2 floor
calls per round.
OK to apply?
Torinthiel

-- 
 Waclaw "Torinthiel" Schiller       GG#: 542916, 3073512
   torinthiel(at)megapolis(dot)pl
   gpg: B06901F1 fpr: FAA3 559F CAE9 34DE CDC8  7346 2B6E 39F2 B069 01F1
 "No classmates may be used during this examination"
-------------- next part --------------
Index: calcbpp.pl
===================================================================
RCS file: /cvsroot/mplayer/main/TOOLS/calcbpp.pl,v
retrieving revision 1.2
diff -u -r1.2 calcbpp.pl
--- calcbpp.pl	16 Dec 2002 10:43:07 -0000	1.2
+++ calcbpp.pl	17 Aug 2004 08:30:08 -0000
@@ -5,9 +5,7 @@
 sub round {
   my $v = shift;
   
-  return floor($v + 0.5) != floor($v) ?
-    floor($v + 0.5) :
-    floor($v);
+  return floor($v + 0.5);
 }
 
 $raw_aspect = 720/576;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20040817/fff26ab2/attachment.pgp>


More information about the MPlayer-dev-eng mailing list