[MPlayer-dev-eng] mp-g2 pre14

Michael Niedermayer michaelni at gmx.at
Tue Apr 22 01:23:22 CEST 2003


Hi

On Monday 21 April 2003 23:39, Arpi wrote:
[...]
> > images out of the end of the chain as they're needed. The vf api is
> > already confusing enough for people trying to write filters without
> > all this back-and-forth craziness...
>
> we have to decide if we want easy-to-understand APIs (see xine) or fast,
> powerful, optimized-to-hell but a bit complex and tricky API.
no, i think we dont have to :))))
we could have a complex & powerfull API and on top of that a simple&slow one 
like

filter(context *c, mpi *src, mpi *dst){
	...
	if(...)
		...
		return NO_OUTPUT
	else if(...)
		...
		return MORE_OUTPUT
	else
		...
		return OK
}

or even something like:

filter(context *c){
	for(i=0; i<5; i++)
		src[i]=get_mpi(c, SRC|READ_ONLY);
	for(i=0; i<4; i++)
		dst[i]=get_mpi(c, DST|EXPORT,i*time_base + ...);
	
	decimate(dst, src);

	for(i=0; i<5; i++)
		release_mpi(c, src[i]);
	for(i=0; i<4; i++)
		release_mpi(c, dst[i]);
}

[...]
-- 
Michael
screen[y][x] ^= cursor[cy][cx];			(violates patent #4,197,590)
median(mv[y-1][x], mv[y][x-1], mv[y+1][x+1]);	(violates patent #5,905,535)
buf[i]= qp - buf[i-1];				(violates patent #?)
for more examples, see http://mplayerhq.hu/~michael/patent.html
stop it, see http://petition.eurolinux.org & http://petition.ffii.org/eubsa/en



More information about the MPlayer-dev-eng mailing list