diff options
author | Jens Arnold <amiconn@rockbox.org> | 2007-10-17 15:46:09 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2007-10-17 15:46:09 +0000 |
commit | e1b4bf7a4dca8cf66b184864594a0cb551d04134 (patch) | |
tree | e16989e7bdcb1d0e1a8aee325f610c8a50f03dec /apps/plugins/mpegplayer/motion_comp_coldfire_c.c | |
parent | a25b76e3bd7a7a381a23e494919f6e01e80c9655 (diff) | |
download | rockbox-e1b4bf7a4dca8cf66b184864594a0cb551d04134.tar.gz rockbox-e1b4bf7a4dca8cf66b184864594a0cb551d04134.zip |
Mpegplayer: Assembler optimised motion compensation for coldfire (just the variants that are assemblerised for ARM) for a nice speedup.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15168 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/mpegplayer/motion_comp_coldfire_c.c')
-rw-r--r-- | apps/plugins/mpegplayer/motion_comp_coldfire_c.c | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/apps/plugins/mpegplayer/motion_comp_coldfire_c.c b/apps/plugins/mpegplayer/motion_comp_coldfire_c.c new file mode 100644 index 0000000000..b97e3510e7 --- /dev/null +++ b/apps/plugins/mpegplayer/motion_comp_coldfire_c.c | |||
@@ -0,0 +1,38 @@ | |||
1 | /* | ||
2 | * Based on: | ||
3 | * motion_comp_arm.c | ||
4 | * Copyright (C) 2004 AGAWA Koji <i (AT) atty (DOT) jp> | ||
5 | * | ||
6 | * This file is part of mpeg2dec, a free MPEG-2 video stream decoder. | ||
7 | * See http://libmpeg2.sourceforge.net/ for updates. | ||
8 | * | ||
9 | * mpeg2dec is free software; you can redistribute it and/or modify | ||
10 | * it under the terms of the GNU General Public License as published by | ||
11 | * the Free Software Foundation; either version 2 of the License, or | ||
12 | * (at your option) any later version. | ||
13 | * | ||
14 | * mpeg2dec is distributed in the hope that it will be useful, | ||
15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
17 | * GNU General Public License for more details. | ||
18 | * | ||
19 | * You should have received a copy of the GNU General Public License | ||
20 | * along with this program; if not, write to the Free Software | ||
21 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
22 | */ | ||
23 | #include <inttypes.h> | ||
24 | #include "mpeg2.h" | ||
25 | #include "attributes.h" | ||
26 | #include "mpeg2_internal.h" | ||
27 | #include "motion_comp.h" | ||
28 | |||
29 | /* definitions of the actual mc functions */ | ||
30 | |||
31 | /* MC_FUNC (put, o) <= ASM */ | ||
32 | MC_FUNC (avg, o) | ||
33 | /* MC_FUNC (put, x) <= ASM */ | ||
34 | MC_FUNC (avg, x) | ||
35 | MC_FUNC (put, y) | ||
36 | MC_FUNC (avg, y) | ||
37 | MC_FUNC (put, xy) | ||
38 | MC_FUNC (avg, xy) | ||