Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Re: mpeg sources
@ 1996-03-26 14:06 David Mosberger-Tang
  0 siblings, 0 replies; 3+ messages in thread
From: David Mosberger-Tang @ 1996-03-26 14:06 UTC (permalink / raw)


>>>>> On Tue, 26 Mar 1996 01:47:58 -0600 (CST), Richard Henderson <richard@twiddle.tamu.edu> said:

  >> 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).

  Richard> While I couldn't seem to get hold of RedsNightmare, the
  Richard> 1069K Blade Runner Intro runs at 154.398074 frames/sec on a
  Richard> 300MHz EB164 with -quality on, and 153.971559 with quality
  Richard> off.

And you called this a "nice" system??? :-))

Have you tried it when compiled with -DFLOATDCT?  I optimized the
floating point IDCT too and got it much closer to the speed of the
fixed-point IDCT, but it was still slower.  I suspect the same is true
for the ev5 since it has a faster integer multiplier, but the third
level cache may help the floating point IDCT since integer->float
conversions should be faster.

	--david

^ permalink raw reply	[flat|nested] 3+ messages in thread
* mpeg sources
@ 1996-03-25 19:25 David Mosberger-Tang
  1996-03-26  7:47 ` Richard Henderson
  0 siblings, 1 reply; 3+ messages in thread
From: David Mosberger-Tang @ 1996-03-25 19:25 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1996-03-26 14:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-03-26 14:06 mpeg sources David Mosberger-Tang
  -- strict thread matches above, loose matches on Subject: below --
1996-03-25 19:25 David Mosberger-Tang
1996-03-26  7:47 ` Richard Henderson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox