[MPlayer-dev-eng] [PATCH] Decode economy
Dominik 'Rathann' Mierzejewski
dominik at rangers.eu.org
Tue Sep 12 22:06:51 CEST 2006
On Tuesday, 12 September 2006 at 22:02, Sergey Khlutchin wrote:
> Hi!
> When the size of video is more than the size of its visible part,
> it is possible to accelerate decoding not making transformations of invisible blocks of the picture.
> The attached patch counts the picture visible part in view of used filters and location of the MPlayer's window inside of parents.
> It was necessary to do changes in different parts, probably some places are insufficiently elegant,
> and I would like to discuss it.
> This code works for -vo x11 and MJPEG generated by Elphel camera.
>
> Sergey Khlutchin
> Elphel, Inc
> Index: libavcodec/mjpeg.c
> ===================================================================
> --- libavcodec/mjpeg.c (revision 6237)
> +++ libavcodec/mjpeg.c (working copy)
> @@ -1462,10 +1462,21 @@
> return 0;
> }
>
> +extern struct { int x,y,w,h, fullw, fullh; } vd_visible; // is defined in libmpcodecs/dec_video.c
This should probably be moved into libavcodec/libavformat instead.
Making libavcodec dependant on mplayer is unacceptable.
Regards,
R.
--
MPlayer developer and RPMs maintainer: http://rpm.greysector.net/mplayer/
There should be a science of discontent. People need hard times and
oppression to develop psychic muscles.
-- from "Collected Sayings of Muad'Dib" by the Princess Irulan
More information about the MPlayer-dev-eng
mailing list