On Wed, Oct 19, 2005 at 04:53:21PM +0200, Cagdas Ogut wrote: > Hello, > > I have a task to program. Some PAL (or NTSC) resolution square-pixeled > 8-bit planar RGB data will arrive by an awaitable DMA handler. I need to > visualize this data at the primary screen, non-interlaced 768x576 , > preferably at 100 Hz. and at the same time at TV OUT in recordable > (bcast) quality. > > I have a Matrox G450 32MB DH. I made mplayer work perfectly showing PAL > DV data on a TV monitor using 0.9.23 on Debian Sarge. But this costs me > the primary screen I guess because of redirecting the Back End Scaler. I > don't need BES!
And you're not using it. On G450/G550 it is in fact impossible to get BES output on the TV-out. > I don't need any kind of conversion whatsoever. I simply > need to use the same databuffer for both heads. Data is ready or just > needs planar packed conversion. With DirectFB controlling the TV-out the resolution is fixed 720x576 or 720x480 so if you want to maintain the correct aspect ratio you need to downscale horixontally. Also with DirectFB it's not currently possible to have two layers use the same surface. Which means you can't have both monitors display the same chunk of memory. Another way to display the same stuff on both heads would be to use just one CRTC and send the data to both outputs. But that won't work with DirectFB since we program CRTC2 to output BT.656 data that the DAC doesn't understand. matroxfb doesn't use BT.656 mode so it might actually work with matroxfb controlling the TV-out. I'm not sure if matroxfb actually lets you do this on G450/G550 but on G400 it works. On G450/G550 only CRTC2 can drive the TV-out whereas on G400 either CRTC can drive the TV-output. Either CRTC can drive the primary DAC on both chip types. If you want to stick with DirectFB controlling the TV-out you could convert the planar data to packed and write it to the CRTC1 layer's surface. Then you could StretchBlit() it to the CRTC2 layer's surface. > If not, I am willing to add this functionality myself. I wish to be > directed to a nice starting point by the developers. As far as I > understand out of various methods around the web it MUST be possible for > upto the largest scannable PAL 1023x625. AFAIK matroxfb does support changing the horizontal resolution on the TV-out of G450/G550 since it's just a matter of changing the timing. Vertical resolution can't be changed so freely. The TV-out component of G400 is more capable it's G450/G550 counterpart. The main difference is the hardware scaler which is present on the G400 and missing from G450/G550. So you can display arbitrary resolutions on the G400 TV-out. > Instead of planar->packed conversion would it be more viable to use 3 > different alphas each for RGB planes for colorizing and blending them? > Or does DRI or GL accept planar RGB via AGP as texture ? Can such a > blend or texture be rediectable to TV OUT? There is a comment about planar textures in the G400 specs but I don't really know what it means since I don't see any way to actually tell the hardware that a texture is planar. -- Ville Syrjälä [EMAIL PROTECTED] http://www.sci.fi/~syrjala/ _______________________________________________ directfb-users mailing list [email protected] http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users
