[MPlayer-dev-eng] [PATCH] vf_crop to pass on field-order

Zoltan Hidvegi mplayer at hzoli.2y.net
Sat Oct 11 18:27:03 CEST 2003


> > +	    vf->dmpi->fields ^= MP_IMGFIELD_TOP_FIRST;
> [..]
> > +	dmpi->fields ^= MP_IMGFIELD_TOP_FIRST;
> 
> Should those here really be XOR ?

Yes, if you crop odd number of lines from the top, then previously top
field becomes the bottom field (i.e. previously even lines become the
odd lines), so the MP_IMGFIELD_TOP_FIRST flag should be inverted.  If
not XOR, what else culd you use?

Zoli



More information about the MPlayer-dev-eng mailing list