[MPlayer-dev-eng] [PATCH/FILE] Experimental libmpeg2 0.3.1 support

Fabian Franz FabianFranz at gmx.de
Thu Dec 26 23:54:11 CET 2002


Hi,

attached is a patch/file, which tries to use the new API of libmpeg2 as good 
as possible ...

However a small patch to libmpeg2 is also needed (It did not support, 
get_buffer-callback nor store_quant for post-processing)

I hope those really small changes to API are all clear ...

So whoever wants to try new libmpeg2 can try that now ...

I recognized with several -ac null -vo null -benchmark a small speedup in new 
API and i'm using gcc 2.95.4; there should be even more optimizations for gcc 
> 3 ...

I don't know if everything I have in there from old vd_libmpeg2 is necessary 
(like in_slice_flag), but it doesn't hurt (tried several files)...

post processing also seems to work, but don't know how to test it; at least it 
didn't segfault and picture was ok ;-)

so I think I did it right :-)

I also don't know if it is necessary to reintroduce USE_SIGJMP_TRICK ...

I think so, but I don't know how to implement it right :-( and don't want to 
mess a such important thing up :-).

I recommend for now symlinking libmpeg2 directory into mplayer-source tree and 
also symlinking libmpeg2/.libs/libmpeg2.a -> libmpeg2/libmpeg2.a.

And you have to copy mpeg2.h from mpeg2dec/include-dir to mpeg2dec/libmpeg2 
:-)

cu

Fabian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mplayer_lmp2_new_api.patch
Type: text/x-diff
Size: 12480 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20021226/4a758c7b/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mp_libmpeg2_cb.patch
Type: text/x-diff
Size: 1589 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20021226/4a758c7b/attachment-0001.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vd_libmpeg2.c
Type: text/x-csrc
Size: 5524 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20021226/4a758c7b/attachment.c>


More information about the MPlayer-dev-eng mailing list