[Mplayer-cvslog] CVS: main/libmpcodecs vf_scale.c,1.39,1.40

D Richard Felker III dalias at aerifal.cx
Sun Apr 27 21:01:13 CEST 2003


On Sun, Apr 27, 2003 at 07:58:20PM +0200, Arpi wrote:
> Hi,
> 
> > BTW, soon I'm going to write vf_aspect or vf_dsize or something (can't
> > decide what to call it) that lets you set the d_width/d_height at an
> > arbitrary point in the filter chain, so that the rest of the chain can
> > compute with and preserve it properly when cropping, expanding, and
> > scaling. However, before I write it, I need to figure out how to pass
> > get_image, put_image, and draw_slice through properly so it doesn't
> > affect performance in any way...
> 
> just don't set them (their function pointers in open()), then it will
> be assumed as pass-thru filter (see vf_dvbscale for example)

Actually, it didn't quite work to begin with -- I had to set
draw_slice myself. But what's disturbing: before I set draw_slice, I
just got a blank picture with mga_vid when using vf_dsize. Apparently
the decoder thought it could use slices, but then it wasn't able
to...? Is this a problem somewhere in vf.c? Or do filter authors need
to explicitly set draw_slice if they're not going to intervene to
prevent slice rendering?

Rich



More information about the MPlayer-cvslog mailing list