[MPlayer-dev-eng] PATCH to support theora-exp in mplayer

Jindrich Makovicka makovick at kmlinux.fjfi.cvut.cz
Sat Apr 23 18:11:38 CEST 2005


Timothy B. Terriberry wrote:
>>I'd be happy with disabling slices in swscaler until someone's willing
>>to fix them correctly. But I thought someone already did commit a
>>patch related to this, IIRC..
> 
> 
> If you want a patch without the flip, for testing purposes, see:
> http://people.xiph.org/~tterribe/mplayer.theora-exp.patch-0.8.2-breaks_swscaler
> 
> The test file http://people.xiph.org/~tterribe/mobile_itu601_i_422.ogg
> exhibits the problems that ensue quite well. The file is in 4:2:2
> format. With -vo xv, it gets converted to YV12 by swscaler. Only the top
> and bottom stripes of the current frame are displayed. A few rows from
> frame (n-1) are displayed below the top stripe, a few rows below that of
> (n-2), and then the rest contains frame (n-3). Needless to say, it takes
> 4 frames before you even get a complete picture. Around frame 66, it
> appears to display a very old buffer for one frame, for no apparent
> reason. With -vo gl2 or -vo png (converting to 24-bit RGB), things
> appear to work fine.

This hack should make swscaler support both top->bottom and bottom->top
slice directions, please test it. Supporting completely random ordering
of the slices would (IMO) require rewriting swscaler completely.

-- 
Jindrich Makovicka
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: swscale.diff
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20050423/c732fe67/attachment.asc>


More information about the MPlayer-dev-eng mailing list