[MPlayer-dev-eng] mencoder crop?

Michael Niedermayer michaelni at gmx.at
Thu Dec 6 21:42:22 CET 2001


Hi

On Thursday 06 December 2001 21:25, Arpi wrote:
[...]
> > iam trying that currently :)
>
> the only way to implement it at clean way:
>
> decode full image to Wi*Hi size (i=input).
> copy/resize the Wc*Hc (c=crop) area to a new Wo*Ho (o=out) buffer and
> call the encoder codec with this buffer. additional colorspace conversion
> can be done at this copy/scale step.
ive just implemented it the dirty way :(
change width height and origin and leave stride ... seems to work though

>
> if you want, i can implement it in a few minutes.
i dont need it at the moment, i just saw it on the todo list so i thought ill 
implement it ... if u want me to commit my dirty variant than say so 
otherwise u can implement the clean one ...

>
> btw we should allow enlarging image without scaling too.
> i mean adding black borders/bands over the image.
well, that wont work with my dirty variant

> maybe usefull for something :)
maybe not ;)

Michael



More information about the MPlayer-dev-eng mailing list