From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <199603251925.MAA22564@koala.azstarnet.com> Date: Mon, 25 Mar 1996 12:25:38 -0700 From: David Mosberger-Tang Subject: mpeg sources Just uploaded a tar ball containing a version of (Linux) mpeg_play that does somewhat better on the Alpha than the regular code. It's all in: ftp://ftp.azstarnet.com/~axplinux/pub/linux/misc/axpsrc-mpeg_play-2.3.tar.gz The results I've collected so far are listed below. The numbers reported is based on the output when invoking mpeg_play with the command: mpeg_play -dither none -framerate 0 -quality QUAL RedsNightmare.mpg where QUAL is either "off" or "on" (as far as I can tell, there is no visible difference, but the latter is supposed to do strict MPEG decoding). If you want RedsNightmare.mpg: it is all over the net. Just run archie and you should have no problems finding it. One place that has it is: http://b62074.student.cwru.edu/mpgofun.htm. rate in frames/second: quality: off on -------------------------- ---- ---- Noname/166MHz, regular: 10.0 n/a Noname/166MHz, optimized: 22.9 21.1 (128KB, 20ns 2nd-level cache) P90/100: 23.1 n/a P133: 32.0 n/a Cabriolet/275MHz, regular: 35.6 n/a Cabriolet/275MHz, optimized: 74.8 72.8 The reason things go faster is that I optimized the macro-block reconstruction code to operate on 8 bytes at a time in parallel (as much as possible), thus making full use of the 64 bit ALU. Also, replacing integer division by a floating point multiply with the inverse achieved substantial reductions. The code that does the Huffman decoding could be improved a lot, but I haven't had time to do that. Oh, yes, this does mean that GNU libc and a new gcc will be able to profile optimized code properly (but please don't ask me when glibc will become available; all I can say is: we're working on it). You'll notice that things will go a lot slower when actually displaying something (i.e., without "-dither none"). E.g., on a 275MHz Cabrio with a #9 GXE 64 PCI running in 16 bpp mode, I get about 25 frames/second. But this depends a lot on the particular graphics card in use. Also, I didn't spend any time optimizing the dithering code. There is a lot of potential for improvements there. Could somebody fill in the numbers for an EB164? I surely would love to know. When doing the measurements, just be sure you have enough memory so that the entire video stays cached (RedsNightmare is about 3MB). Enjoy, --david