Quoting Denis Oliver Kropp <[EMAIL PROTECTED]>: > Quoting Ville Syrj�l�: > > On Tue, Jun 15, 2004 at 12:51:03AM +0200, Stefan Lucke wrote: > > > On Dienstag, 15. Juni 2004 00:15, Ville Syrj�l� wrote:
> > > > Do you want to resize the image so > > > > that parts of it go outside the visible screen? > > > > > > No (virtual yes). I want to draw a part of picture so that it fills the screen. > > > With Xv output it is easy. There I can specify source x and y offsets and > > > source width and height witch should be drawn at a given destination area. > > > With Xv-X11 this works with matrox and radeon and I think with others too. > > > > DirectFB doesn't have any method of specifying source cropping for layers. > > > It would be a useful thing to add though. > > It's already prepared to being added easily, at least the driver API covers > source AND destination rectangles. As easy that you could give a time frame ? > > > But you since you're looking to fill the entire screen you don't actually > > need source cropping. SetScreenLocation() will suffice provided that the > > driver crops things properly. You just have to calculate the coordinates > > and size accordingly. > > Or you configure the layer to have the pixel size of the active area and > copy only those pixels to the surface. Thats the way I did it for softdevice vidix out. I'll try that. But with I420 and YV12 output formats I get sig11s with my radeon. Pitch value returned from videoSurface->Lock seems to be bogous, see my mail on directfb-users list. Stefan Lucke
