[MPlayer-dev-eng] mplayer zaurus patches
Michael Niedermayer
michaelni at gmx.at
Tue Feb 20 14:52:56 CET 2007
Hi
On Tue, Feb 20, 2007 at 01:34:35PM +0100, Guillaume POIRIER wrote:
> Hi,
>
> On 2/20/07, Michael Niedermayer <michaelni at gmx.at> wrote:
> >On Tue, Feb 20, 2007 at 10:01:56AM +0100, Guillaume POIRIER wrote:
> >> On 1/25/07, compn <tempn at twmi.rr.com> wrote:
> >> >has anyone checked if these patches can be of any help?
> >> >
> >>
> >>http://www.courville.org/mediawiki/index.php/EZX#mplayer_recompilation_and_further_acceleration
> >> >
> >> >at least osd/sub rotate might be interesting feature... :)
> >>
> >> Just for the record, the links on that page are somewhat broken.
> >> Here's a page that lists all patches:
> >> https://svn.jerryweb.org/public/mkezx/trunk/packages/mplayer/patches/
> >
> >which are not in unified diff format ...
>
> Out of all the patches that are there, there's only 2 that still
> apply, which I put in attachment.
> I think only the cache optimized blocked rotate seem of any interest,
> the other one isn't necessarily so useful.
[...]
> Index: libmpcodecs/vf_rotate.c
> ===================================================================
> --- libmpcodecs/vf_rotate.c (r??vision 22281)
> +++ libmpcodecs/vf_rotate.c (copie de travail)
> @@ -16,38 +16,195 @@
> int direction;
> };
>
> +
> +#ifndef ROTATE_BLOCK_SIZE
> +/* This needs to be adapted on a platform by platform basis */
> +#define ROTATE_BLOCK_SIZE 8
> +#endif
> +
> +#define MIN_BLOCK_SIZE 4
> +static unsigned char rotate_block [4 * ROTATE_BLOCK_SIZE * ROTATE_BLOCK_SIZE];
non constant static used in a filter
> +
> static void rotate(unsigned char* dst,unsigned char* src,int dststride,int srcstride,int w,int h,int bpp,int dir){
> - int y;
> - if(dir&1){
> - src+=srcstride*(w-1);
> - srcstride*=-1;
> - }
> - if(dir&2){
> - dst+=dststride*(h-1);
> - dststride*=-1;
> - }
> + int y;
[...]
> + if(dir&1){
> + src+=srcstride*(w-1);
> + srcstride*=-1;
> + }
> + if(dir&2){
> + dst+=dststride*(h-1);
> + dststride*=-1;
> + }
cosmetics, patch rejected, and remainder not reviewed a clean patch is needed
first
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
I count him braver who overcomes his desires than him who conquers his
enemies for the hardest victory is over self. -- Aristotle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20070220/8874bef5/attachment.pgp>
More information about the MPlayer-dev-eng
mailing list