Michel Lanners <[EMAIL PROTECTED]> writes: > Works for me (I think ;-)
Yeah, it works great on my G4 desktop at work -- nice fullscreen full FPS DVD playing. but, I'd like to get it working on my laptop, with a rage pro. (mach64) > On any box. Xvideo is supported in X4.0.3 with ATI 128; for Mach64, > look at GATOS. Indeed, I just looked at this, and with two changes I have XVideo working (depending on your definetion of working...that is :) on my lombard. The color palette is screwed up, but other than that, the speedup is very noticeable. I suspect that the palette is a simple endian issue in the XVideo code, that's been fixed elsewhere, but I couldn't see it on a first scan through. Let's compare the gprof output before and after: ------ before ----- Each sample counts as 0.01 seconds. % cumulative self self total time seconds seconds calls ms/call ms/call name 23.95 7.56 7.56 2529665 0.00 0.00 module_idctclassic_vdec_IDCT 23.19 14.88 7.32 474 15.44 15.44 module_yuv_ConvertYUV420RGB16 9.19 17.78 2.90 482426 0.01 0.01 MC_put_16_c 7.38 20.11 2.33 1694826 0.00 0.00 module_idctclassic_vdec_CopyBlock 5.57 21.87 1.76 1694826 0.00 0.00 MPEG2IntraB14 ------ after ------ Each sample counts as 0.01 seconds. % cumulative self self total time seconds seconds calls ms/call ms/call name 32.44 11.03 11.03 3795375 0.00 0.00 module_idctclassic_vdec_IDCT 9.41 14.23 3.20 611801 0.01 0.01 MC_put_16_c 8.15 17.00 2.77 2466378 0.00 0.00 module_idctclassic_vdec_CopyBlock 7.06 19.40 2.40 2466378 0.00 0.00 MPEG2IntraB14 5.56 21.29 1.89 1406108 0.00 0.00 MC_put_8_c > One area is IDCT, where vlc contains some altivec code for MacOS > X/Darwin. Unfortunately, it's a C extension, and that is not > supported by our tools. >From the looks of that gprof output, this is the place to improve. What's good is that XVideo support got rid of that annoying (expensive) YUV transformation, though. The C code looks pretty well optimized, and my ppc asm skills aren't to the level of fine tuning mpeg decompression code...I wonder if we could improve this performance? > Also, most recent grafix chipsets provide some form of acceleration > for DVD playing, mostly in three areas: YUV to RGB and scaling (used > by Xvideo; available with ATI chipsets); IDCT in hardware (ATI Rage > 128; not supported); and motion compemsation (ATI; not upported). What exactly is IDCT anyway? I wonder if there's anything else to use on the mach64 for speedups? > So I guess it is worthwhile to hack some Altivec acceleration into > these tools; that should help a lot. Yes, this would be good, but it still wouldn't help the poor people with mach64. :) I got all excited, that I might not have to reboot to macos to play movies anymore, so I really want to get this working! -- Josh Huber | [EMAIL PROTECTED] |

