annotate sh4/qpel.c @ 10292:01e6afd0aba6 libavcodec

Remove unneeded table lookup.
author jbr
date Sun, 27 Sep 2009 06:16:49 +0000
parents 894404f1c2f0
children bb19a598f066
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2967
ef2149182f1c COSMETICS: Remove all trailing whitespace.
diego
parents: 1264
diff changeset
1 /*
3699
c537a97eec66 Add official LGPL license headers to the files that were missing them.
diego
parents: 2979
diff changeset
2 * This is optimized for sh, which have post increment addressing (*p++).
c537a97eec66 Add official LGPL license headers to the files that were missing them.
diego
parents: 2979
diff changeset
3 * Some CPU may be index (p[n]) faster than post increment (*p++).
c537a97eec66 Add official LGPL license headers to the files that were missing them.
diego
parents: 2979
diff changeset
4 *
c537a97eec66 Add official LGPL license headers to the files that were missing them.
diego
parents: 2979
diff changeset
5 * copyright (c) 2001-2003 BERO <bero@geocities.co.jp>
c537a97eec66 Add official LGPL license headers to the files that were missing them.
diego
parents: 2979
diff changeset
6 *
3947
c8c591fe26f8 Change license headers to say 'FFmpeg' instead of 'this program/this library'
diego
parents: 3699
diff changeset
7 * This file is part of FFmpeg.
c8c591fe26f8 Change license headers to say 'FFmpeg' instead of 'this program/this library'
diego
parents: 3699
diff changeset
8 *
c8c591fe26f8 Change license headers to say 'FFmpeg' instead of 'this program/this library'
diego
parents: 3699
diff changeset
9 * FFmpeg is free software; you can redistribute it and/or
3699
c537a97eec66 Add official LGPL license headers to the files that were missing them.
diego
parents: 2979
diff changeset
10 * modify it under the terms of the GNU Lesser General Public
c537a97eec66 Add official LGPL license headers to the files that were missing them.
diego
parents: 2979
diff changeset
11 * License as published by the Free Software Foundation; either
3947
c8c591fe26f8 Change license headers to say 'FFmpeg' instead of 'this program/this library'
diego
parents: 3699
diff changeset
12 * version 2.1 of the License, or (at your option) any later version.
3699
c537a97eec66 Add official LGPL license headers to the files that were missing them.
diego
parents: 2979
diff changeset
13 *
3947
c8c591fe26f8 Change license headers to say 'FFmpeg' instead of 'this program/this library'
diego
parents: 3699
diff changeset
14 * FFmpeg is distributed in the hope that it will be useful,
3699
c537a97eec66 Add official LGPL license headers to the files that were missing them.
diego
parents: 2979
diff changeset
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
c537a97eec66 Add official LGPL license headers to the files that were missing them.
diego
parents: 2979
diff changeset
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
c537a97eec66 Add official LGPL license headers to the files that were missing them.
diego
parents: 2979
diff changeset
17 * Lesser General Public License for more details.
c537a97eec66 Add official LGPL license headers to the files that were missing them.
diego
parents: 2979
diff changeset
18 *
c537a97eec66 Add official LGPL license headers to the files that were missing them.
diego
parents: 2979
diff changeset
19 * You should have received a copy of the GNU Lesser General Public
3947
c8c591fe26f8 Change license headers to say 'FFmpeg' instead of 'this program/this library'
diego
parents: 3699
diff changeset
20 * License along with FFmpeg; if not, write to the Free Software
3699
c537a97eec66 Add official LGPL license headers to the files that were missing them.
diego
parents: 2979
diff changeset
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
c537a97eec66 Add official LGPL license headers to the files that were missing them.
diego
parents: 2979
diff changeset
22 */
1262
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
23
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
24 #define PIXOP2(OPNAME, OP) \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
25 \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
26 static inline void OPNAME ## _pixels4_l2_aligned(uint8_t *dst, const uint8_t *src1, const uint8_t *src2, int dst_stride, int src_stride1, int src_stride2, int h) \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
27 {\
2979
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
28 do {\
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
29 OP(LP(dst ),rnd_avg32(LP(src1 ),LP(src2 )) ); \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
30 src1+=src_stride1; \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
31 src2+=src_stride2; \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
32 dst+=dst_stride; \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
33 } while(--h); \
1262
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
34 }\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
35 \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
36 static inline void OPNAME ## _pixels4_l2_aligned2(uint8_t *dst, const uint8_t *src1, const uint8_t *src2, int dst_stride, int src_stride1, int src_stride2, int h) \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
37 {\
2979
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
38 do {\
5520
c16a59ef6a86 * renaming (ST|LD)(16|32|64) -> AV_(R|W)N(16|32|64)
romansh
parents: 4866
diff changeset
39 OP(LP(dst ),rnd_avg32(AV_RN32(src1 ),LP(src2 )) ); \
2979
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
40 src1+=src_stride1; \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
41 src2+=src_stride2; \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
42 dst+=dst_stride; \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
43 } while(--h); \
1262
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
44 }\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
45 \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
46 static inline void OPNAME ## _no_rnd_pixels16_l2_aligned2(uint8_t *dst, const uint8_t *src1, const uint8_t *src2, int dst_stride, int src_stride1, int src_stride2, int h) \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
47 {\
2979
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
48 do {\
5520
c16a59ef6a86 * renaming (ST|LD)(16|32|64) -> AV_(R|W)N(16|32|64)
romansh
parents: 4866
diff changeset
49 OP(LP(dst ),no_rnd_avg32(AV_RN32(src1 ),LP(src2 )) ); \
c16a59ef6a86 * renaming (ST|LD)(16|32|64) -> AV_(R|W)N(16|32|64)
romansh
parents: 4866
diff changeset
50 OP(LP(dst+4),no_rnd_avg32(AV_RN32(src1+4),LP(src2+4)) ); \
c16a59ef6a86 * renaming (ST|LD)(16|32|64) -> AV_(R|W)N(16|32|64)
romansh
parents: 4866
diff changeset
51 OP(LP(dst+8),no_rnd_avg32(AV_RN32(src1+8),LP(src2+8)) ); \
c16a59ef6a86 * renaming (ST|LD)(16|32|64) -> AV_(R|W)N(16|32|64)
romansh
parents: 4866
diff changeset
52 OP(LP(dst+12),no_rnd_avg32(AV_RN32(src1+12),LP(src2+12)) ); \
2979
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
53 src1+=src_stride1; \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
54 src2+=src_stride2; \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
55 dst+=dst_stride; \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
56 } while(--h); \
1262
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
57 }\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
58 \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
59 static inline void OPNAME ## _pixels16_l2_aligned2(uint8_t *dst, const uint8_t *src1, const uint8_t *src2, int dst_stride, int src_stride1, int src_stride2, int h) \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
60 {\
2979
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
61 do {\
5520
c16a59ef6a86 * renaming (ST|LD)(16|32|64) -> AV_(R|W)N(16|32|64)
romansh
parents: 4866
diff changeset
62 OP(LP(dst ),rnd_avg32(AV_RN32(src1 ),LP(src2 )) ); \
c16a59ef6a86 * renaming (ST|LD)(16|32|64) -> AV_(R|W)N(16|32|64)
romansh
parents: 4866
diff changeset
63 OP(LP(dst+4),rnd_avg32(AV_RN32(src1+4),LP(src2+4)) ); \
c16a59ef6a86 * renaming (ST|LD)(16|32|64) -> AV_(R|W)N(16|32|64)
romansh
parents: 4866
diff changeset
64 OP(LP(dst+8),rnd_avg32(AV_RN32(src1+8),LP(src2+8)) ); \
c16a59ef6a86 * renaming (ST|LD)(16|32|64) -> AV_(R|W)N(16|32|64)
romansh
parents: 4866
diff changeset
65 OP(LP(dst+12),rnd_avg32(AV_RN32(src1+12),LP(src2+12)) ); \
2979
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
66 src1+=src_stride1; \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
67 src2+=src_stride2; \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
68 dst+=dst_stride; \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
69 } while(--h); \
1262
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
70 }\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
71 \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
72 static inline void OPNAME ## _no_rnd_pixels8_l2_aligned2(uint8_t *dst, const uint8_t *src1, const uint8_t *src2, int dst_stride, int src_stride1, int src_stride2, int h) \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
73 {\
2979
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
74 do { /* onlye src2 aligned */\
5520
c16a59ef6a86 * renaming (ST|LD)(16|32|64) -> AV_(R|W)N(16|32|64)
romansh
parents: 4866
diff changeset
75 OP(LP(dst ),no_rnd_avg32(AV_RN32(src1 ),LP(src2 )) ); \
c16a59ef6a86 * renaming (ST|LD)(16|32|64) -> AV_(R|W)N(16|32|64)
romansh
parents: 4866
diff changeset
76 OP(LP(dst+4),no_rnd_avg32(AV_RN32(src1+4),LP(src2+4)) ); \
2979
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
77 src1+=src_stride1; \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
78 src2+=src_stride2; \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
79 dst+=dst_stride; \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
80 } while(--h); \
1262
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
81 }\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
82 \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
83 static inline void OPNAME ## _pixels8_l2_aligned2(uint8_t *dst, const uint8_t *src1, const uint8_t *src2, int dst_stride, int src_stride1, int src_stride2, int h) \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
84 {\
2979
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
85 do {\
5520
c16a59ef6a86 * renaming (ST|LD)(16|32|64) -> AV_(R|W)N(16|32|64)
romansh
parents: 4866
diff changeset
86 OP(LP(dst ),rnd_avg32(AV_RN32(src1 ),LP(src2 )) ); \
c16a59ef6a86 * renaming (ST|LD)(16|32|64) -> AV_(R|W)N(16|32|64)
romansh
parents: 4866
diff changeset
87 OP(LP(dst+4),rnd_avg32(AV_RN32(src1+4),LP(src2+4)) ); \
2979
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
88 src1+=src_stride1; \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
89 src2+=src_stride2; \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
90 dst+=dst_stride; \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
91 } while(--h); \
1262
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
92 }\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
93 \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
94 static inline void OPNAME ## _no_rnd_pixels8_l2_aligned(uint8_t *dst, const uint8_t *src1, const uint8_t *src2, int dst_stride, int src_stride1, int src_stride2, int h) \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
95 {\
2979
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
96 do {\
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
97 OP(LP(dst ),no_rnd_avg32(LP(src1 ),LP(src2 )) ); \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
98 OP(LP(dst+4),no_rnd_avg32(LP(src1+4),LP(src2+4)) ); \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
99 src1+=src_stride1; \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
100 src2+=src_stride2; \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
101 dst+=dst_stride; \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
102 } while(--h); \
1262
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
103 }\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
104 \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
105 static inline void OPNAME ## _pixels8_l2_aligned(uint8_t *dst, const uint8_t *src1, const uint8_t *src2, int dst_stride, int src_stride1, int src_stride2, int h) \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
106 {\
2979
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
107 do {\
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
108 OP(LP(dst ),rnd_avg32(LP(src1 ),LP(src2 )) ); \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
109 OP(LP(dst+4),rnd_avg32(LP(src1+4),LP(src2+4)) ); \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
110 src1+=src_stride1; \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
111 src2+=src_stride2; \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
112 dst+=dst_stride; \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
113 } while(--h); \
1262
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
114 }\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
115 \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
116 static inline void OPNAME ## _no_rnd_pixels16_l2_aligned(uint8_t *dst, const uint8_t *src1, const uint8_t *src2, int dst_stride, int src_stride1, int src_stride2, int h) \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
117 {\
2979
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
118 do {\
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
119 OP(LP(dst ),no_rnd_avg32(LP(src1 ),LP(src2 )) ); \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
120 OP(LP(dst+4),no_rnd_avg32(LP(src1+4),LP(src2+4)) ); \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
121 OP(LP(dst+8),no_rnd_avg32(LP(src1+8),LP(src2+8)) ); \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
122 OP(LP(dst+12),no_rnd_avg32(LP(src1+12),LP(src2+12)) ); \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
123 src1+=src_stride1; \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
124 src2+=src_stride2; \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
125 dst+=dst_stride; \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
126 } while(--h); \
1262
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
127 }\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
128 \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
129 static inline void OPNAME ## _pixels16_l2_aligned(uint8_t *dst, const uint8_t *src1, const uint8_t *src2, int dst_stride, int src_stride1, int src_stride2, int h) \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
130 {\
2979
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
131 do {\
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
132 OP(LP(dst ),rnd_avg32(LP(src1 ),LP(src2 )) ); \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
133 OP(LP(dst+4),rnd_avg32(LP(src1+4),LP(src2+4)) ); \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
134 OP(LP(dst+8),rnd_avg32(LP(src1+8),LP(src2+8)) ); \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
135 OP(LP(dst+12),rnd_avg32(LP(src1+12),LP(src2+12)) ); \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
136 src1+=src_stride1; \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
137 src2+=src_stride2; \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
138 dst+=dst_stride; \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
139 } while(--h); \
1262
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
140 }\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
141 \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
142 static inline void OPNAME ## _no_rnd_pixels16_l2_aligned1(uint8_t *dst, const uint8_t *src1, const uint8_t *src2, int dst_stride, int src_stride1, int src_stride2, int h) \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
143 { OPNAME ## _no_rnd_pixels16_l2_aligned2(dst,src2,src1,dst_stride,src_stride2,src_stride1,h); } \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
144 \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
145 static inline void OPNAME ## _pixels16_l2_aligned1(uint8_t *dst, const uint8_t *src1, const uint8_t *src2, int dst_stride, int src_stride1, int src_stride2, int h) \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
146 { OPNAME ## _pixels16_l2_aligned2(dst,src2,src1,dst_stride,src_stride2,src_stride1,h); } \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
147 \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
148 static inline void OPNAME ## _no_rnd_pixels8_l2_aligned1(uint8_t *dst, const uint8_t *src1, const uint8_t *src2, int dst_stride, int src_stride1, int src_stride2, int h) \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
149 { OPNAME ## _no_rnd_pixels8_l2_aligned2(dst,src2,src1,dst_stride,src_stride2,src_stride1,h); } \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
150 \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
151 static inline void OPNAME ## _pixels8_l2_aligned1(uint8_t *dst, const uint8_t *src1, const uint8_t *src2, int dst_stride, int src_stride1, int src_stride2, int h) \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
152 { OPNAME ## _pixels8_l2_aligned2(dst,src2,src1,dst_stride,src_stride2,src_stride1,h); } \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
153 \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
154 static inline void OPNAME ## _pixels8_l4_aligned(uint8_t *dst, const uint8_t *src1, uint8_t *src2, uint8_t *src3, uint8_t *src4,int dst_stride, int src_stride1, int src_stride2,int src_stride3,int src_stride4, int h){\
2979
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
155 do { \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
156 uint32_t a0,a1,a2,a3; \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
157 UNPACK(a0,a1,LP(src1),LP(src2)); \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
158 UNPACK(a2,a3,LP(src3),LP(src4)); \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
159 OP(LP(dst),rnd_PACK(a0,a1,a2,a3)); \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
160 UNPACK(a0,a1,LP(src1+4),LP(src2+4)); \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
161 UNPACK(a2,a3,LP(src3+4),LP(src4+4)); \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
162 OP(LP(dst+4),rnd_PACK(a0,a1,a2,a3)); \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
163 src1+=src_stride1;\
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
164 src2+=src_stride2;\
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
165 src3+=src_stride3;\
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
166 src4+=src_stride4;\
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
167 dst+=dst_stride;\
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
168 } while(--h); \
1262
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
169 } \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
170 \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
171 static inline void OPNAME ## _no_rnd_pixels8_l4_aligned(uint8_t *dst, const uint8_t *src1, uint8_t *src2, uint8_t *src3, uint8_t *src4,int dst_stride, int src_stride1, int src_stride2,int src_stride3,int src_stride4, int h){\
2979
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
172 do { \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
173 uint32_t a0,a1,a2,a3; \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
174 UNPACK(a0,a1,LP(src1),LP(src2)); \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
175 UNPACK(a2,a3,LP(src3),LP(src4)); \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
176 OP(LP(dst),no_rnd_PACK(a0,a1,a2,a3)); \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
177 UNPACK(a0,a1,LP(src1+4),LP(src2+4)); \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
178 UNPACK(a2,a3,LP(src3+4),LP(src4+4)); \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
179 OP(LP(dst+4),no_rnd_PACK(a0,a1,a2,a3)); \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
180 src1+=src_stride1;\
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
181 src2+=src_stride2;\
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
182 src3+=src_stride3;\
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
183 src4+=src_stride4;\
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
184 dst+=dst_stride;\
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
185 } while(--h); \
1262
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
186 } \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
187 \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
188 static inline void OPNAME ## _pixels8_l4_aligned0(uint8_t *dst, const uint8_t *src1, uint8_t *src2, uint8_t *src3, uint8_t *src4,int dst_stride, int src_stride1, int src_stride2,int src_stride3,int src_stride4, int h){\
2979
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
189 do { \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
190 uint32_t a0,a1,a2,a3; /* src1 only not aligned */\
5520
c16a59ef6a86 * renaming (ST|LD)(16|32|64) -> AV_(R|W)N(16|32|64)
romansh
parents: 4866
diff changeset
191 UNPACK(a0,a1,AV_RN32(src1),LP(src2)); \
2979
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
192 UNPACK(a2,a3,LP(src3),LP(src4)); \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
193 OP(LP(dst),rnd_PACK(a0,a1,a2,a3)); \
5520
c16a59ef6a86 * renaming (ST|LD)(16|32|64) -> AV_(R|W)N(16|32|64)
romansh
parents: 4866
diff changeset
194 UNPACK(a0,a1,AV_RN32(src1+4),LP(src2+4)); \
2979
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
195 UNPACK(a2,a3,LP(src3+4),LP(src4+4)); \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
196 OP(LP(dst+4),rnd_PACK(a0,a1,a2,a3)); \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
197 src1+=src_stride1;\
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
198 src2+=src_stride2;\
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
199 src3+=src_stride3;\
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
200 src4+=src_stride4;\
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
201 dst+=dst_stride;\
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
202 } while(--h); \
1262
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
203 } \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
204 \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
205 static inline void OPNAME ## _no_rnd_pixels8_l4_aligned0(uint8_t *dst, const uint8_t *src1, uint8_t *src2, uint8_t *src3, uint8_t *src4,int dst_stride, int src_stride1, int src_stride2,int src_stride3,int src_stride4, int h){\
2979
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
206 do { \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
207 uint32_t a0,a1,a2,a3; \
5520
c16a59ef6a86 * renaming (ST|LD)(16|32|64) -> AV_(R|W)N(16|32|64)
romansh
parents: 4866
diff changeset
208 UNPACK(a0,a1,AV_RN32(src1),LP(src2)); \
2979
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
209 UNPACK(a2,a3,LP(src3),LP(src4)); \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
210 OP(LP(dst),no_rnd_PACK(a0,a1,a2,a3)); \
5520
c16a59ef6a86 * renaming (ST|LD)(16|32|64) -> AV_(R|W)N(16|32|64)
romansh
parents: 4866
diff changeset
211 UNPACK(a0,a1,AV_RN32(src1+4),LP(src2+4)); \
2979
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
212 UNPACK(a2,a3,LP(src3+4),LP(src4+4)); \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
213 OP(LP(dst+4),no_rnd_PACK(a0,a1,a2,a3)); \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
214 src1+=src_stride1;\
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
215 src2+=src_stride2;\
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
216 src3+=src_stride3;\
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
217 src4+=src_stride4;\
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
218 dst+=dst_stride;\
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
219 } while(--h); \
1262
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
220 } \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
221 \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
222 static inline void OPNAME ## _pixels16_l4_aligned(uint8_t *dst, const uint8_t *src1, uint8_t *src2, uint8_t *src3, uint8_t *src4,int dst_stride, int src_stride1, int src_stride2,int src_stride3,int src_stride4, int h){\
2979
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
223 do { \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
224 uint32_t a0,a1,a2,a3; \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
225 UNPACK(a0,a1,LP(src1),LP(src2)); \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
226 UNPACK(a2,a3,LP(src3),LP(src4)); \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
227 OP(LP(dst),rnd_PACK(a0,a1,a2,a3)); \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
228 UNPACK(a0,a1,LP(src1+4),LP(src2+4)); \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
229 UNPACK(a2,a3,LP(src3+4),LP(src4+4)); \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
230 OP(LP(dst+8),rnd_PACK(a0,a1,a2,a3)); \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
231 UNPACK(a0,a1,LP(src1+8),LP(src2+8)); \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
232 UNPACK(a2,a3,LP(src3+8),LP(src4+8)); \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
233 OP(LP(dst+8),rnd_PACK(a0,a1,a2,a3)); \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
234 UNPACK(a0,a1,LP(src1+12),LP(src2+12)); \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
235 UNPACK(a2,a3,LP(src3+12),LP(src4+12)); \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
236 OP(LP(dst+12),rnd_PACK(a0,a1,a2,a3)); \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
237 src1+=src_stride1;\
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
238 src2+=src_stride2;\
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
239 src3+=src_stride3;\
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
240 src4+=src_stride4;\
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
241 dst+=dst_stride;\
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
242 } while(--h); \
1262
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
243 } \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
244 \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
245 static inline void OPNAME ## _no_rnd_pixels16_l4_aligned(uint8_t *dst, const uint8_t *src1, uint8_t *src2, uint8_t *src3, uint8_t *src4,int dst_stride, int src_stride1, int src_stride2,int src_stride3,int src_stride4, int h){\
2979
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
246 do { \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
247 uint32_t a0,a1,a2,a3; \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
248 UNPACK(a0,a1,LP(src1),LP(src2)); \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
249 UNPACK(a2,a3,LP(src3),LP(src4)); \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
250 OP(LP(dst),no_rnd_PACK(a0,a1,a2,a3)); \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
251 UNPACK(a0,a1,LP(src1+4),LP(src2+4)); \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
252 UNPACK(a2,a3,LP(src3+4),LP(src4+4)); \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
253 OP(LP(dst+4),no_rnd_PACK(a0,a1,a2,a3)); \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
254 UNPACK(a0,a1,LP(src1+8),LP(src2+8)); \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
255 UNPACK(a2,a3,LP(src3+8),LP(src4+8)); \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
256 OP(LP(dst+8),no_rnd_PACK(a0,a1,a2,a3)); \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
257 UNPACK(a0,a1,LP(src1+12),LP(src2+12)); \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
258 UNPACK(a2,a3,LP(src3+12),LP(src4+12)); \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
259 OP(LP(dst+12),no_rnd_PACK(a0,a1,a2,a3)); \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
260 src1+=src_stride1;\
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
261 src2+=src_stride2;\
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
262 src3+=src_stride3;\
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
263 src4+=src_stride4;\
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
264 dst+=dst_stride;\
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
265 } while(--h); \
1262
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
266 } \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
267 \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
268 static inline void OPNAME ## _pixels16_l4_aligned0(uint8_t *dst, const uint8_t *src1, uint8_t *src2, uint8_t *src3, uint8_t *src4,int dst_stride, int src_stride1, int src_stride2,int src_stride3,int src_stride4, int h){\
2979
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
269 do { /* src1 is unaligned */\
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
270 uint32_t a0,a1,a2,a3; \
5520
c16a59ef6a86 * renaming (ST|LD)(16|32|64) -> AV_(R|W)N(16|32|64)
romansh
parents: 4866
diff changeset
271 UNPACK(a0,a1,AV_RN32(src1),LP(src2)); \
2979
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
272 UNPACK(a2,a3,LP(src3),LP(src4)); \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
273 OP(LP(dst),rnd_PACK(a0,a1,a2,a3)); \
5520
c16a59ef6a86 * renaming (ST|LD)(16|32|64) -> AV_(R|W)N(16|32|64)
romansh
parents: 4866
diff changeset
274 UNPACK(a0,a1,AV_RN32(src1+4),LP(src2+4)); \
2979
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
275 UNPACK(a2,a3,LP(src3+4),LP(src4+4)); \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
276 OP(LP(dst+8),rnd_PACK(a0,a1,a2,a3)); \
5520
c16a59ef6a86 * renaming (ST|LD)(16|32|64) -> AV_(R|W)N(16|32|64)
romansh
parents: 4866
diff changeset
277 UNPACK(a0,a1,AV_RN32(src1+8),LP(src2+8)); \
2979
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
278 UNPACK(a2,a3,LP(src3+8),LP(src4+8)); \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
279 OP(LP(dst+8),rnd_PACK(a0,a1,a2,a3)); \
5520
c16a59ef6a86 * renaming (ST|LD)(16|32|64) -> AV_(R|W)N(16|32|64)
romansh
parents: 4866
diff changeset
280 UNPACK(a0,a1,AV_RN32(src1+12),LP(src2+12)); \
2979
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
281 UNPACK(a2,a3,LP(src3+12),LP(src4+12)); \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
282 OP(LP(dst+12),rnd_PACK(a0,a1,a2,a3)); \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
283 src1+=src_stride1;\
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
284 src2+=src_stride2;\
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
285 src3+=src_stride3;\
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
286 src4+=src_stride4;\
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
287 dst+=dst_stride;\
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
288 } while(--h); \
1262
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
289 } \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
290 \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
291 static inline void OPNAME ## _no_rnd_pixels16_l4_aligned0(uint8_t *dst, const uint8_t *src1, uint8_t *src2, uint8_t *src3, uint8_t *src4,int dst_stride, int src_stride1, int src_stride2,int src_stride3,int src_stride4, int h){\
2979
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
292 do { \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
293 uint32_t a0,a1,a2,a3; \
5520
c16a59ef6a86 * renaming (ST|LD)(16|32|64) -> AV_(R|W)N(16|32|64)
romansh
parents: 4866
diff changeset
294 UNPACK(a0,a1,AV_RN32(src1),LP(src2)); \
2979
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
295 UNPACK(a2,a3,LP(src3),LP(src4)); \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
296 OP(LP(dst),no_rnd_PACK(a0,a1,a2,a3)); \
5520
c16a59ef6a86 * renaming (ST|LD)(16|32|64) -> AV_(R|W)N(16|32|64)
romansh
parents: 4866
diff changeset
297 UNPACK(a0,a1,AV_RN32(src1+4),LP(src2+4)); \
2979
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
298 UNPACK(a2,a3,LP(src3+4),LP(src4+4)); \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
299 OP(LP(dst+4),no_rnd_PACK(a0,a1,a2,a3)); \
5520
c16a59ef6a86 * renaming (ST|LD)(16|32|64) -> AV_(R|W)N(16|32|64)
romansh
parents: 4866
diff changeset
300 UNPACK(a0,a1,AV_RN32(src1+8),LP(src2+8)); \
2979
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
301 UNPACK(a2,a3,LP(src3+8),LP(src4+8)); \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
302 OP(LP(dst+8),no_rnd_PACK(a0,a1,a2,a3)); \
5520
c16a59ef6a86 * renaming (ST|LD)(16|32|64) -> AV_(R|W)N(16|32|64)
romansh
parents: 4866
diff changeset
303 UNPACK(a0,a1,AV_RN32(src1+12),LP(src2+12)); \
2979
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
304 UNPACK(a2,a3,LP(src3+12),LP(src4+12)); \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
305 OP(LP(dst+12),no_rnd_PACK(a0,a1,a2,a3)); \
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
306 src1+=src_stride1;\
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
307 src2+=src_stride2;\
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
308 src3+=src_stride3;\
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
309 src4+=src_stride4;\
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
310 dst+=dst_stride;\
bfabfdf9ce55 COSMETICS: tabs --> spaces, some prettyprinting
diego
parents: 2967
diff changeset
311 } while(--h); \
1262
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
312 } \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
313 \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
314
1264
2fa34e615c76 cleanup
michaelni
parents: 1262
diff changeset
315 #define op_avg(a, b) a = rnd_avg32(a,b)
1262
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
316 #define op_put(a, b) a = b
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
317
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
318 PIXOP2(avg, op_avg)
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
319 PIXOP2(put, op_put)
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
320 #undef op_avg
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
321 #undef op_put
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
322
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
323 #define avg2(a,b) ((a+b+1)>>1)
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
324 #define avg4(a,b,c,d) ((a+b+c+d+2)>>2)
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
325
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
326
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
327 static void gmc1_c(uint8_t *dst, uint8_t *src, int stride, int h, int x16, int y16, int rounder)
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
328 {
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
329 const int A=(16-x16)*(16-y16);
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
330 const int B=( x16)*(16-y16);
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
331 const int C=(16-x16)*( y16);
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
332 const int D=( x16)*( y16);
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
333
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
334 do {
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
335 int t0,t1,t2,t3;
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
336 uint8_t *s0 = src;
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
337 uint8_t *s1 = src+stride;
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
338 t0 = *s0++; t2 = *s1++;
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
339 t1 = *s0++; t3 = *s1++;
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
340 dst[0]= (A*t0 + B*t1 + C*t2 + D*t3 + rounder)>>8;
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
341 t0 = *s0++; t2 = *s1++;
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
342 dst[1]= (A*t1 + B*t0 + C*t3 + D*t2 + rounder)>>8;
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
343 t1 = *s0++; t3 = *s1++;
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
344 dst[2]= (A*t0 + B*t1 + C*t2 + D*t3 + rounder)>>8;
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
345 t0 = *s0++; t2 = *s1++;
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
346 dst[3]= (A*t1 + B*t0 + C*t3 + D*t2 + rounder)>>8;
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
347 t1 = *s0++; t3 = *s1++;
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
348 dst[4]= (A*t0 + B*t1 + C*t2 + D*t3 + rounder)>>8;
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
349 t0 = *s0++; t2 = *s1++;
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
350 dst[5]= (A*t1 + B*t0 + C*t3 + D*t2 + rounder)>>8;
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
351 t1 = *s0++; t3 = *s1++;
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
352 dst[6]= (A*t0 + B*t1 + C*t2 + D*t3 + rounder)>>8;
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
353 t0 = *s0++; t2 = *s1++;
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
354 dst[7]= (A*t1 + B*t0 + C*t3 + D*t2 + rounder)>>8;
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
355 dst+= stride;
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
356 src+= stride;
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
357 }while(--h);
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
358 }
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
359
2967
ef2149182f1c COSMETICS: Remove all trailing whitespace.
diego
parents: 1264
diff changeset
360 static void gmc_c(uint8_t *dst, uint8_t *src, int stride, int h, int ox, int oy,
1262
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
361 int dxx, int dxy, int dyx, int dyy, int shift, int r, int width, int height)
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
362 {
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
363 int y, vx, vy;
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
364 const int s= 1<<shift;
2967
ef2149182f1c COSMETICS: Remove all trailing whitespace.
diego
parents: 1264
diff changeset
365
1262
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
366 width--;
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
367 height--;
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
368
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
369 for(y=0; y<h; y++){
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
370 int x;
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
371
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
372 vx= ox;
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
373 vy= oy;
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
374 for(x=0; x<8; x++){ //XXX FIXME optimize
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
375 int src_x, src_y, frac_x, frac_y, index;
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
376
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
377 src_x= vx>>16;
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
378 src_y= vy>>16;
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
379 frac_x= src_x&(s-1);
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
380 frac_y= src_y&(s-1);
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
381 src_x>>=shift;
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
382 src_y>>=shift;
2967
ef2149182f1c COSMETICS: Remove all trailing whitespace.
diego
parents: 1264
diff changeset
383
1262
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
384 if((unsigned)src_x < width){
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
385 if((unsigned)src_y < height){
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
386 index= src_x + src_y*stride;
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
387 dst[y*stride + x]= ( ( src[index ]*(s-frac_x)
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
388 + src[index +1]* frac_x )*(s-frac_y)
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
389 + ( src[index+stride ]*(s-frac_x)
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
390 + src[index+stride+1]* frac_x )* frac_y
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
391 + r)>>(shift*2);
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
392 }else{
4866
6c66ddbb054f Fix parts missed in clip -> av_clip rename
reimar
parents: 4240
diff changeset
393 index= src_x + av_clip(src_y, 0, height)*stride;
2967
ef2149182f1c COSMETICS: Remove all trailing whitespace.
diego
parents: 1264
diff changeset
394 dst[y*stride + x]= ( ( src[index ]*(s-frac_x)
1262
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
395 + src[index +1]* frac_x )*s
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
396 + r)>>(shift*2);
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
397 }
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
398 }else{
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
399 if((unsigned)src_y < height){
4866
6c66ddbb054f Fix parts missed in clip -> av_clip rename
reimar
parents: 4240
diff changeset
400 index= av_clip(src_x, 0, width) + src_y*stride;
2967
ef2149182f1c COSMETICS: Remove all trailing whitespace.
diego
parents: 1264
diff changeset
401 dst[y*stride + x]= ( ( src[index ]*(s-frac_y)
1262
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
402 + src[index+stride ]* frac_y )*s
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
403 + r)>>(shift*2);
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
404 }else{
4866
6c66ddbb054f Fix parts missed in clip -> av_clip rename
reimar
parents: 4240
diff changeset
405 index= av_clip(src_x, 0, width) + av_clip(src_y, 0, height)*stride;
1262
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
406 dst[y*stride + x]= src[index ];
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
407 }
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
408 }
2967
ef2149182f1c COSMETICS: Remove all trailing whitespace.
diego
parents: 1264
diff changeset
409
1262
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
410 vx+= dxx;
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
411 vy+= dyx;
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
412 }
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
413 ox += dxy;
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
414 oy += dyy;
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
415 }
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
416 }
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
417 #define H264_CHROMA_MC(OPNAME, OP)\
8167
bd11ee6ad834 SH4: rename functions with conflicting names
mru
parents: 5520
diff changeset
418 static void OPNAME ## h264_chroma_mc2_sh4(uint8_t *dst/*align 8*/, uint8_t *src/*align 1*/, int stride, int h, int x, int y){\
1262
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
419 const int A=(8-x)*(8-y);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
420 const int B=( x)*(8-y);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
421 const int C=(8-x)*( y);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
422 const int D=( x)*( y);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
423 \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
424 assert(x<8 && y<8 && x>=0 && y>=0);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
425 \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
426 do {\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
427 int t0,t1,t2,t3; \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
428 uint8_t *s0 = src; \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
429 uint8_t *s1 = src+stride; \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
430 t0 = *s0++; t2 = *s1++; \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
431 t1 = *s0++; t3 = *s1++; \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
432 OP(dst[0], (A*t0 + B*t1 + C*t2 + D*t3));\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
433 t0 = *s0++; t2 = *s1++; \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
434 OP(dst[1], (A*t1 + B*t0 + C*t3 + D*t2));\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
435 dst+= stride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
436 src+= stride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
437 }while(--h);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
438 }\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
439 \
8167
bd11ee6ad834 SH4: rename functions with conflicting names
mru
parents: 5520
diff changeset
440 static void OPNAME ## h264_chroma_mc4_sh4(uint8_t *dst/*align 8*/, uint8_t *src/*align 1*/, int stride, int h, int x, int y){\
1262
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
441 const int A=(8-x)*(8-y);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
442 const int B=( x)*(8-y);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
443 const int C=(8-x)*( y);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
444 const int D=( x)*( y);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
445 \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
446 assert(x<8 && y<8 && x>=0 && y>=0);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
447 \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
448 do {\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
449 int t0,t1,t2,t3; \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
450 uint8_t *s0 = src; \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
451 uint8_t *s1 = src+stride; \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
452 t0 = *s0++; t2 = *s1++; \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
453 t1 = *s0++; t3 = *s1++; \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
454 OP(dst[0], (A*t0 + B*t1 + C*t2 + D*t3));\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
455 t0 = *s0++; t2 = *s1++; \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
456 OP(dst[1], (A*t1 + B*t0 + C*t3 + D*t2));\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
457 t1 = *s0++; t3 = *s1++; \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
458 OP(dst[2], (A*t0 + B*t1 + C*t2 + D*t3));\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
459 t0 = *s0++; t2 = *s1++; \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
460 OP(dst[3], (A*t1 + B*t0 + C*t3 + D*t2));\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
461 dst+= stride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
462 src+= stride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
463 }while(--h);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
464 }\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
465 \
8167
bd11ee6ad834 SH4: rename functions with conflicting names
mru
parents: 5520
diff changeset
466 static void OPNAME ## h264_chroma_mc8_sh4(uint8_t *dst/*align 8*/, uint8_t *src/*align 1*/, int stride, int h, int x, int y){\
1262
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
467 const int A=(8-x)*(8-y);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
468 const int B=( x)*(8-y);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
469 const int C=(8-x)*( y);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
470 const int D=( x)*( y);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
471 \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
472 assert(x<8 && y<8 && x>=0 && y>=0);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
473 \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
474 do {\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
475 int t0,t1,t2,t3; \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
476 uint8_t *s0 = src; \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
477 uint8_t *s1 = src+stride; \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
478 t0 = *s0++; t2 = *s1++; \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
479 t1 = *s0++; t3 = *s1++; \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
480 OP(dst[0], (A*t0 + B*t1 + C*t2 + D*t3));\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
481 t0 = *s0++; t2 = *s1++; \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
482 OP(dst[1], (A*t1 + B*t0 + C*t3 + D*t2));\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
483 t1 = *s0++; t3 = *s1++; \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
484 OP(dst[2], (A*t0 + B*t1 + C*t2 + D*t3));\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
485 t0 = *s0++; t2 = *s1++; \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
486 OP(dst[3], (A*t1 + B*t0 + C*t3 + D*t2));\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
487 t1 = *s0++; t3 = *s1++; \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
488 OP(dst[4], (A*t0 + B*t1 + C*t2 + D*t3));\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
489 t0 = *s0++; t2 = *s1++; \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
490 OP(dst[5], (A*t1 + B*t0 + C*t3 + D*t2));\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
491 t1 = *s0++; t3 = *s1++; \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
492 OP(dst[6], (A*t0 + B*t1 + C*t2 + D*t3));\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
493 t0 = *s0++; t2 = *s1++; \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
494 OP(dst[7], (A*t1 + B*t0 + C*t3 + D*t2));\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
495 dst+= stride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
496 src+= stride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
497 }while(--h);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
498 }
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
499
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
500 #define op_avg(a, b) a = (((a)+(((b) + 32)>>6)+1)>>1)
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
501 #define op_put(a, b) a = (((b) + 32)>>6)
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
502
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
503 H264_CHROMA_MC(put_ , op_put)
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
504 H264_CHROMA_MC(avg_ , op_avg)
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
505 #undef op_avg
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
506 #undef op_put
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
507
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
508 #define QPEL_MC(r, OPNAME, RND, OP) \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
509 static void OPNAME ## mpeg4_qpel8_h_lowpass(uint8_t *dst, uint8_t *src, int dstStride, int srcStride, int h){\
4176
23da44e8fd05 rename cropTbl -> ff_cropTbl
mru
parents: 3947
diff changeset
510 uint8_t *cm = ff_cropTbl + MAX_NEG_CROP;\
1262
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
511 do {\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
512 uint8_t *s = src; \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
513 int src0,src1,src2,src3,src4,src5,src6,src7,src8;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
514 src0= *s++;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
515 src1= *s++;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
516 src2= *s++;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
517 src3= *s++;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
518 src4= *s++;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
519 OP(dst[0], (src0+src1)*20 - (src0+src2)*6 + (src1+src3)*3 - (src2+src4));\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
520 src5= *s++;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
521 OP(dst[1], (src1+src2)*20 - (src0+src3)*6 + (src0+src4)*3 - (src1+src5));\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
522 src6= *s++;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
523 OP(dst[2], (src2+src3)*20 - (src1+src4)*6 + (src0+src5)*3 - (src0+src6));\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
524 src7= *s++;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
525 OP(dst[3], (src3+src4)*20 - (src2+src5)*6 + (src1+src6)*3 - (src0+src7));\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
526 src8= *s++;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
527 OP(dst[4], (src4+src5)*20 - (src3+src6)*6 + (src2+src7)*3 - (src1+src8));\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
528 OP(dst[5], (src5+src6)*20 - (src4+src7)*6 + (src3+src8)*3 - (src2+src8));\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
529 OP(dst[6], (src6+src7)*20 - (src5+src8)*6 + (src4+src8)*3 - (src3+src7));\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
530 OP(dst[7], (src7+src8)*20 - (src6+src8)*6 + (src5+src7)*3 - (src4+src6));\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
531 dst+=dstStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
532 src+=srcStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
533 }while(--h);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
534 }\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
535 \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
536 static void OPNAME ## mpeg4_qpel8_v_lowpass(uint8_t *dst, uint8_t *src, int dstStride, int srcStride){\
4176
23da44e8fd05 rename cropTbl -> ff_cropTbl
mru
parents: 3947
diff changeset
537 uint8_t *cm = ff_cropTbl + MAX_NEG_CROP;\
1262
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
538 int w=8;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
539 do{\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
540 uint8_t *s = src, *d=dst;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
541 int src0,src1,src2,src3,src4,src5,src6,src7,src8;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
542 src0 = *s; s+=srcStride; \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
543 src1 = *s; s+=srcStride; \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
544 src2 = *s; s+=srcStride; \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
545 src3 = *s; s+=srcStride; \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
546 src4 = *s; s+=srcStride; \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
547 OP(*d, (src0+src1)*20 - (src0+src2)*6 + (src1+src3)*3 - (src2+src4));d+=dstStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
548 src5 = *s; s+=srcStride; \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
549 OP(*d, (src1+src2)*20 - (src0+src3)*6 + (src0+src4)*3 - (src1+src5));d+=dstStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
550 src6 = *s; s+=srcStride; \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
551 OP(*d, (src2+src3)*20 - (src1+src4)*6 + (src0+src5)*3 - (src0+src6));d+=dstStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
552 src7 = *s; s+=srcStride; \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
553 OP(*d, (src3+src4)*20 - (src2+src5)*6 + (src1+src6)*3 - (src0+src7));d+=dstStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
554 src8 = *s; \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
555 OP(*d, (src4+src5)*20 - (src3+src6)*6 + (src2+src7)*3 - (src1+src8));d+=dstStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
556 OP(*d, (src5+src6)*20 - (src4+src7)*6 + (src3+src8)*3 - (src2+src8));d+=dstStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
557 OP(*d, (src6+src7)*20 - (src5+src8)*6 + (src4+src8)*3 - (src3+src7));d+=dstStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
558 OP(*d, (src7+src8)*20 - (src6+src8)*6 + (src5+src7)*3 - (src4+src6));\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
559 dst++;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
560 src++;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
561 }while(--w);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
562 }\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
563 \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
564 static void OPNAME ## mpeg4_qpel16_h_lowpass(uint8_t *dst, uint8_t *src, int dstStride, int srcStride, int h){\
4176
23da44e8fd05 rename cropTbl -> ff_cropTbl
mru
parents: 3947
diff changeset
565 uint8_t *cm = ff_cropTbl + MAX_NEG_CROP;\
1262
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
566 do {\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
567 uint8_t *s = src;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
568 int src0,src1,src2,src3,src4,src5,src6,src7,src8;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
569 int src9,src10,src11,src12,src13,src14,src15,src16;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
570 src0= *s++;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
571 src1= *s++;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
572 src2= *s++;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
573 src3= *s++;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
574 src4= *s++;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
575 OP(dst[ 0], (src0 +src1 )*20 - (src0 +src2 )*6 + (src1 +src3 )*3 - (src2 +src4 ));\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
576 src5= *s++;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
577 OP(dst[ 1], (src1 +src2 )*20 - (src0 +src3 )*6 + (src0 +src4 )*3 - (src1 +src5 ));\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
578 src6= *s++;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
579 OP(dst[ 2], (src2 +src3 )*20 - (src1 +src4 )*6 + (src0 +src5 )*3 - (src0 +src6 ));\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
580 src7= *s++;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
581 OP(dst[ 3], (src3 +src4 )*20 - (src2 +src5 )*6 + (src1 +src6 )*3 - (src0 +src7 ));\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
582 src8= *s++;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
583 OP(dst[ 4], (src4 +src5 )*20 - (src3 +src6 )*6 + (src2 +src7 )*3 - (src1 +src8 ));\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
584 src9= *s++;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
585 OP(dst[ 5], (src5 +src6 )*20 - (src4 +src7 )*6 + (src3 +src8 )*3 - (src2 +src9 ));\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
586 src10= *s++;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
587 OP(dst[ 6], (src6 +src7 )*20 - (src5 +src8 )*6 + (src4 +src9 )*3 - (src3 +src10));\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
588 src11= *s++;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
589 OP(dst[ 7], (src7 +src8 )*20 - (src6 +src9 )*6 + (src5 +src10)*3 - (src4 +src11));\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
590 src12= *s++;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
591 OP(dst[ 8], (src8 +src9 )*20 - (src7 +src10)*6 + (src6 +src11)*3 - (src5 +src12));\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
592 src13= *s++;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
593 OP(dst[ 9], (src9 +src10)*20 - (src8 +src11)*6 + (src7 +src12)*3 - (src6 +src13));\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
594 src14= *s++;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
595 OP(dst[10], (src10+src11)*20 - (src9 +src12)*6 + (src8 +src13)*3 - (src7 +src14));\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
596 src15= *s++;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
597 OP(dst[11], (src11+src12)*20 - (src10+src13)*6 + (src9 +src14)*3 - (src8 +src15));\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
598 src16= *s++;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
599 OP(dst[12], (src12+src13)*20 - (src11+src14)*6 + (src10+src15)*3 - (src9 +src16));\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
600 OP(dst[13], (src13+src14)*20 - (src12+src15)*6 + (src11+src16)*3 - (src10+src16));\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
601 OP(dst[14], (src14+src15)*20 - (src13+src16)*6 + (src12+src16)*3 - (src11+src15));\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
602 OP(dst[15], (src15+src16)*20 - (src14+src16)*6 + (src13+src15)*3 - (src12+src14));\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
603 dst+=dstStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
604 src+=srcStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
605 }while(--h);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
606 }\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
607 \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
608 static void OPNAME ## mpeg4_qpel16_v_lowpass(uint8_t *dst, uint8_t *src, int dstStride, int srcStride){\
4176
23da44e8fd05 rename cropTbl -> ff_cropTbl
mru
parents: 3947
diff changeset
609 uint8_t *cm = ff_cropTbl + MAX_NEG_CROP;\
1262
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
610 int w=16;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
611 do {\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
612 uint8_t *s = src, *d=dst;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
613 int src0,src1,src2,src3,src4,src5,src6,src7,src8;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
614 int src9,src10,src11,src12,src13,src14,src15,src16;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
615 src0 = *s; s+=srcStride; \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
616 src1 = *s; s+=srcStride; \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
617 src2 = *s; s+=srcStride; \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
618 src3 = *s; s+=srcStride; \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
619 src4 = *s; s+=srcStride; \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
620 OP(*d, (src0 +src1 )*20 - (src0 +src2 )*6 + (src1 +src3 )*3 - (src2 +src4 ));d+=dstStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
621 src5 = *s; s+=srcStride; \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
622 OP(*d, (src1 +src2 )*20 - (src0 +src3 )*6 + (src0 +src4 )*3 - (src1 +src5 ));d+=dstStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
623 src6 = *s; s+=srcStride; \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
624 OP(*d, (src2 +src3 )*20 - (src1 +src4 )*6 + (src0 +src5 )*3 - (src0 +src6 ));d+=dstStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
625 src7 = *s; s+=srcStride; \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
626 OP(*d, (src3 +src4 )*20 - (src2 +src5 )*6 + (src1 +src6 )*3 - (src0 +src7 ));d+=dstStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
627 src8 = *s; s+=srcStride; \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
628 OP(*d, (src4 +src5 )*20 - (src3 +src6 )*6 + (src2 +src7 )*3 - (src1 +src8 ));d+=dstStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
629 src9 = *s; s+=srcStride; \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
630 OP(*d, (src5 +src6 )*20 - (src4 +src7 )*6 + (src3 +src8 )*3 - (src2 +src9 ));d+=dstStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
631 src10 = *s; s+=srcStride; \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
632 OP(*d, (src6 +src7 )*20 - (src5 +src8 )*6 + (src4 +src9 )*3 - (src3 +src10));d+=dstStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
633 src11 = *s; s+=srcStride; \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
634 OP(*d, (src7 +src8 )*20 - (src6 +src9 )*6 + (src5 +src10)*3 - (src4 +src11));d+=dstStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
635 src12 = *s; s+=srcStride; \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
636 OP(*d, (src8 +src9 )*20 - (src7 +src10)*6 + (src6 +src11)*3 - (src5 +src12));d+=dstStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
637 src13 = *s; s+=srcStride; \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
638 OP(*d, (src9 +src10)*20 - (src8 +src11)*6 + (src7 +src12)*3 - (src6 +src13));d+=dstStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
639 src14 = *s; s+=srcStride; \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
640 OP(*d, (src10+src11)*20 - (src9 +src12)*6 + (src8 +src13)*3 - (src7 +src14));d+=dstStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
641 src15 = *s; s+=srcStride; \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
642 OP(*d, (src11+src12)*20 - (src10+src13)*6 + (src9 +src14)*3 - (src8 +src15));d+=dstStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
643 src16 = *s; \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
644 OP(*d, (src12+src13)*20 - (src11+src14)*6 + (src10+src15)*3 - (src9 +src16));d+=dstStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
645 OP(*d, (src13+src14)*20 - (src12+src15)*6 + (src11+src16)*3 - (src10+src16));d+=dstStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
646 OP(*d, (src14+src15)*20 - (src13+src16)*6 + (src12+src16)*3 - (src11+src15));d+=dstStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
647 OP(*d, (src15+src16)*20 - (src14+src16)*6 + (src13+src15)*3 - (src12+src14));\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
648 dst++;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
649 src++;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
650 }while(--w);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
651 }\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
652 \
8167
bd11ee6ad834 SH4: rename functions with conflicting names
mru
parents: 5520
diff changeset
653 static void OPNAME ## qpel8_mc00_sh4 (uint8_t *dst, uint8_t *src, int stride){\
1262
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
654 OPNAME ## pixels8_c(dst, src, stride, 8);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
655 }\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
656 \
8167
bd11ee6ad834 SH4: rename functions with conflicting names
mru
parents: 5520
diff changeset
657 static void OPNAME ## qpel8_mc10_sh4(uint8_t *dst, uint8_t *src, int stride){\
1262
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
658 uint8_t half[64];\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
659 put ## RND ## mpeg4_qpel8_h_lowpass(half, src, 8, stride, 8);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
660 OPNAME ## pixels8_l2_aligned2(dst, src, half, stride, stride, 8, 8);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
661 }\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
662 \
8167
bd11ee6ad834 SH4: rename functions with conflicting names
mru
parents: 5520
diff changeset
663 static void OPNAME ## qpel8_mc20_sh4(uint8_t *dst, uint8_t *src, int stride){\
1262
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
664 OPNAME ## mpeg4_qpel8_h_lowpass(dst, src, stride, stride, 8);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
665 }\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
666 \
8167
bd11ee6ad834 SH4: rename functions with conflicting names
mru
parents: 5520
diff changeset
667 static void OPNAME ## qpel8_mc30_sh4(uint8_t *dst, uint8_t *src, int stride){\
1262
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
668 uint8_t half[64];\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
669 put ## RND ## mpeg4_qpel8_h_lowpass(half, src, 8, stride, 8);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
670 OPNAME ## pixels8_l2_aligned2(dst, src+1, half, stride, stride, 8, 8);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
671 }\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
672 \
8167
bd11ee6ad834 SH4: rename functions with conflicting names
mru
parents: 5520
diff changeset
673 static void OPNAME ## qpel8_mc01_sh4(uint8_t *dst, uint8_t *src, int stride){\
1262
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
674 uint8_t full[16*9];\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
675 uint8_t half[64];\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
676 copy_block9(full, src, 16, stride, 9);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
677 put ## RND ## mpeg4_qpel8_v_lowpass(half, full, 8, 16);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
678 OPNAME ## pixels8_l2_aligned(dst, full, half, stride, 16, 8, 8);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
679 }\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
680 \
8167
bd11ee6ad834 SH4: rename functions with conflicting names
mru
parents: 5520
diff changeset
681 static void OPNAME ## qpel8_mc02_sh4(uint8_t *dst, uint8_t *src, int stride){\
1262
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
682 uint8_t full[16*9];\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
683 copy_block9(full, src, 16, stride, 9);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
684 OPNAME ## mpeg4_qpel8_v_lowpass(dst, full, stride, 16);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
685 }\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
686 \
8167
bd11ee6ad834 SH4: rename functions with conflicting names
mru
parents: 5520
diff changeset
687 static void OPNAME ## qpel8_mc03_sh4(uint8_t *dst, uint8_t *src, int stride){\
1262
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
688 uint8_t full[16*9];\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
689 uint8_t half[64];\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
690 copy_block9(full, src, 16, stride, 9);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
691 put ## RND ## mpeg4_qpel8_v_lowpass(half, full, 8, 16);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
692 OPNAME ## pixels8_l2_aligned(dst, full+16, half, stride, 16, 8, 8);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
693 }\
8167
bd11ee6ad834 SH4: rename functions with conflicting names
mru
parents: 5520
diff changeset
694 static void OPNAME ## qpel8_mc11_sh4(uint8_t *dst, uint8_t *src, int stride){\
1262
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
695 uint8_t full[16*9];\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
696 uint8_t halfH[72];\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
697 uint8_t halfHV[64];\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
698 copy_block9(full, src, 16, stride, 9);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
699 put ## RND ## mpeg4_qpel8_h_lowpass(halfH, full, 8, 16, 9);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
700 put ## RND ## pixels8_l2_aligned(halfH, halfH, full, 8, 8, 16, 9);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
701 put ## RND ## mpeg4_qpel8_v_lowpass(halfHV, halfH, 8, 8);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
702 OPNAME ## pixels8_l2_aligned(dst, halfH, halfHV, stride, 8, 8, 8);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
703 }\
8167
bd11ee6ad834 SH4: rename functions with conflicting names
mru
parents: 5520
diff changeset
704 static void OPNAME ## qpel8_mc31_sh4(uint8_t *dst, uint8_t *src, int stride){\
1262
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
705 uint8_t full[16*9];\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
706 uint8_t halfH[72];\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
707 uint8_t halfHV[64];\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
708 copy_block9(full, src, 16, stride, 9);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
709 put ## RND ## mpeg4_qpel8_h_lowpass(halfH, full, 8, 16, 9);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
710 put ## RND ## pixels8_l2_aligned1(halfH, halfH, full+1, 8, 8, 16, 9);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
711 put ## RND ## mpeg4_qpel8_v_lowpass(halfHV, halfH, 8, 8);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
712 OPNAME ## pixels8_l2_aligned(dst, halfH, halfHV, stride, 8, 8, 8);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
713 }\
8167
bd11ee6ad834 SH4: rename functions with conflicting names
mru
parents: 5520
diff changeset
714 static void OPNAME ## qpel8_mc13_sh4(uint8_t *dst, uint8_t *src, int stride){\
1262
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
715 uint8_t full[16*9];\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
716 uint8_t halfH[72];\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
717 uint8_t halfHV[64];\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
718 copy_block9(full, src, 16, stride, 9);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
719 put ## RND ## mpeg4_qpel8_h_lowpass(halfH, full, 8, 16, 9);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
720 put ## RND ## pixels8_l2_aligned(halfH, halfH, full, 8, 8, 16, 9);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
721 put ## RND ## mpeg4_qpel8_v_lowpass(halfHV, halfH, 8, 8);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
722 OPNAME ## pixels8_l2_aligned(dst, halfH+8, halfHV, stride, 8, 8, 8);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
723 }\
8167
bd11ee6ad834 SH4: rename functions with conflicting names
mru
parents: 5520
diff changeset
724 static void OPNAME ## qpel8_mc33_sh4(uint8_t *dst, uint8_t *src, int stride){\
1262
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
725 uint8_t full[16*9];\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
726 uint8_t halfH[72];\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
727 uint8_t halfHV[64];\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
728 copy_block9(full, src, 16, stride, 9);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
729 put ## RND ## mpeg4_qpel8_h_lowpass(halfH, full, 8, 16, 9);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
730 put ## RND ## pixels8_l2_aligned1(halfH, halfH, full+1, 8, 8, 16, 9);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
731 put ## RND ## mpeg4_qpel8_v_lowpass(halfHV, halfH, 8, 8);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
732 OPNAME ## pixels8_l2_aligned(dst, halfH+8, halfHV, stride, 8, 8, 8);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
733 }\
8167
bd11ee6ad834 SH4: rename functions with conflicting names
mru
parents: 5520
diff changeset
734 static void OPNAME ## qpel8_mc21_sh4(uint8_t *dst, uint8_t *src, int stride){\
1262
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
735 uint8_t halfH[72];\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
736 uint8_t halfHV[64];\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
737 put ## RND ## mpeg4_qpel8_h_lowpass(halfH, src, 8, stride, 9);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
738 put ## RND ## mpeg4_qpel8_v_lowpass(halfHV, halfH, 8, 8);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
739 OPNAME ## pixels8_l2_aligned(dst, halfH, halfHV, stride, 8, 8, 8);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
740 }\
8167
bd11ee6ad834 SH4: rename functions with conflicting names
mru
parents: 5520
diff changeset
741 static void OPNAME ## qpel8_mc23_sh4(uint8_t *dst, uint8_t *src, int stride){\
1262
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
742 uint8_t halfH[72];\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
743 uint8_t halfHV[64];\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
744 put ## RND ## mpeg4_qpel8_h_lowpass(halfH, src, 8, stride, 9);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
745 put ## RND ## mpeg4_qpel8_v_lowpass(halfHV, halfH, 8, 8);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
746 OPNAME ## pixels8_l2_aligned(dst, halfH+8, halfHV, stride, 8, 8, 8);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
747 }\
8167
bd11ee6ad834 SH4: rename functions with conflicting names
mru
parents: 5520
diff changeset
748 static void OPNAME ## qpel8_mc12_sh4(uint8_t *dst, uint8_t *src, int stride){\
1262
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
749 uint8_t full[16*9];\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
750 uint8_t halfH[72];\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
751 copy_block9(full, src, 16, stride, 9);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
752 put ## RND ## mpeg4_qpel8_h_lowpass(halfH, full, 8, 16, 9);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
753 put ## RND ## pixels8_l2_aligned(halfH, halfH, full, 8, 8, 16, 9);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
754 OPNAME ## mpeg4_qpel8_v_lowpass(dst, halfH, stride, 8);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
755 }\
8167
bd11ee6ad834 SH4: rename functions with conflicting names
mru
parents: 5520
diff changeset
756 static void OPNAME ## qpel8_mc32_sh4(uint8_t *dst, uint8_t *src, int stride){\
1262
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
757 uint8_t full[16*9];\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
758 uint8_t halfH[72];\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
759 copy_block9(full, src, 16, stride, 9);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
760 put ## RND ## mpeg4_qpel8_h_lowpass(halfH, full, 8, 16, 9);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
761 put ## RND ## pixels8_l2_aligned1(halfH, halfH, full+1, 8, 8, 16, 9);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
762 OPNAME ## mpeg4_qpel8_v_lowpass(dst, halfH, stride, 8);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
763 }\
8167
bd11ee6ad834 SH4: rename functions with conflicting names
mru
parents: 5520
diff changeset
764 static void OPNAME ## qpel8_mc22_sh4(uint8_t *dst, uint8_t *src, int stride){\
1262
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
765 uint8_t halfH[72];\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
766 put ## RND ## mpeg4_qpel8_h_lowpass(halfH, src, 8, stride, 9);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
767 OPNAME ## mpeg4_qpel8_v_lowpass(dst, halfH, stride, 8);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
768 }\
8167
bd11ee6ad834 SH4: rename functions with conflicting names
mru
parents: 5520
diff changeset
769 static void OPNAME ## qpel16_mc00_sh4 (uint8_t *dst, uint8_t *src, int stride){\
1262
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
770 OPNAME ## pixels16_c(dst, src, stride, 16);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
771 }\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
772 \
8167
bd11ee6ad834 SH4: rename functions with conflicting names
mru
parents: 5520
diff changeset
773 static void OPNAME ## qpel16_mc10_sh4(uint8_t *dst, uint8_t *src, int stride){\
1262
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
774 uint8_t half[256];\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
775 put ## RND ## mpeg4_qpel16_h_lowpass(half, src, 16, stride, 16);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
776 OPNAME ## pixels16_l2_aligned2(dst, src, half, stride, stride, 16, 16);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
777 }\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
778 \
8167
bd11ee6ad834 SH4: rename functions with conflicting names
mru
parents: 5520
diff changeset
779 static void OPNAME ## qpel16_mc20_sh4(uint8_t *dst, uint8_t *src, int stride){\
1262
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
780 OPNAME ## mpeg4_qpel16_h_lowpass(dst, src, stride, stride, 16);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
781 }\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
782 \
8167
bd11ee6ad834 SH4: rename functions with conflicting names
mru
parents: 5520
diff changeset
783 static void OPNAME ## qpel16_mc30_sh4(uint8_t *dst, uint8_t *src, int stride){\
1262
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
784 uint8_t half[256];\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
785 put ## RND ## mpeg4_qpel16_h_lowpass(half, src, 16, stride, 16);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
786 OPNAME ## pixels16_l2_aligned2(dst, src+1, half, stride, stride, 16, 16);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
787 }\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
788 \
8167
bd11ee6ad834 SH4: rename functions with conflicting names
mru
parents: 5520
diff changeset
789 static void OPNAME ## qpel16_mc01_sh4(uint8_t *dst, uint8_t *src, int stride){\
1262
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
790 uint8_t full[24*17];\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
791 uint8_t half[256];\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
792 copy_block17(full, src, 24, stride, 17);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
793 put ## RND ## mpeg4_qpel16_v_lowpass(half, full, 16, 24);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
794 OPNAME ## pixels16_l2_aligned(dst, full, half, stride, 24, 16, 16);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
795 }\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
796 \
8167
bd11ee6ad834 SH4: rename functions with conflicting names
mru
parents: 5520
diff changeset
797 static void OPNAME ## qpel16_mc02_sh4(uint8_t *dst, uint8_t *src, int stride){\
1262
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
798 uint8_t full[24*17];\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
799 copy_block17(full, src, 24, stride, 17);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
800 OPNAME ## mpeg4_qpel16_v_lowpass(dst, full, stride, 24);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
801 }\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
802 \
8167
bd11ee6ad834 SH4: rename functions with conflicting names
mru
parents: 5520
diff changeset
803 static void OPNAME ## qpel16_mc03_sh4(uint8_t *dst, uint8_t *src, int stride){\
1262
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
804 uint8_t full[24*17];\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
805 uint8_t half[256];\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
806 copy_block17(full, src, 24, stride, 17);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
807 put ## RND ## mpeg4_qpel16_v_lowpass(half, full, 16, 24);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
808 OPNAME ## pixels16_l2_aligned(dst, full+24, half, stride, 24, 16, 16);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
809 }\
8167
bd11ee6ad834 SH4: rename functions with conflicting names
mru
parents: 5520
diff changeset
810 static void OPNAME ## qpel16_mc11_sh4(uint8_t *dst, uint8_t *src, int stride){\
1262
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
811 uint8_t full[24*17];\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
812 uint8_t halfH[272];\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
813 uint8_t halfHV[256];\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
814 copy_block17(full, src, 24, stride, 17);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
815 put ## RND ## mpeg4_qpel16_h_lowpass(halfH, full, 16, 24, 17);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
816 put ## RND ## pixels16_l2_aligned(halfH, halfH, full, 16, 16, 24, 17);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
817 put ## RND ## mpeg4_qpel16_v_lowpass(halfHV, halfH, 16, 16);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
818 OPNAME ## pixels16_l2_aligned(dst, halfH, halfHV, stride, 16, 16, 16);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
819 }\
8167
bd11ee6ad834 SH4: rename functions with conflicting names
mru
parents: 5520
diff changeset
820 static void OPNAME ## qpel16_mc31_sh4(uint8_t *dst, uint8_t *src, int stride){\
1262
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
821 uint8_t full[24*17];\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
822 uint8_t halfH[272];\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
823 uint8_t halfHV[256];\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
824 copy_block17(full, src, 24, stride, 17);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
825 put ## RND ## mpeg4_qpel16_h_lowpass(halfH, full, 16, 24, 17);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
826 put ## RND ## pixels16_l2_aligned1(halfH, halfH, full+1, 16, 16, 24, 17);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
827 put ## RND ## mpeg4_qpel16_v_lowpass(halfHV, halfH, 16, 16);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
828 OPNAME ## pixels16_l2_aligned(dst, halfH, halfHV, stride, 16, 16, 16);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
829 }\
8167
bd11ee6ad834 SH4: rename functions with conflicting names
mru
parents: 5520
diff changeset
830 static void OPNAME ## qpel16_mc13_sh4(uint8_t *dst, uint8_t *src, int stride){\
1262
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
831 uint8_t full[24*17];\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
832 uint8_t halfH[272];\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
833 uint8_t halfHV[256];\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
834 copy_block17(full, src, 24, stride, 17);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
835 put ## RND ## mpeg4_qpel16_h_lowpass(halfH, full, 16, 24, 17);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
836 put ## RND ## pixels16_l2_aligned(halfH, halfH, full, 16, 16, 24, 17);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
837 put ## RND ## mpeg4_qpel16_v_lowpass(halfHV, halfH, 16, 16);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
838 OPNAME ## pixels16_l2_aligned(dst, halfH+16, halfHV, stride, 16, 16, 16);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
839 }\
8167
bd11ee6ad834 SH4: rename functions with conflicting names
mru
parents: 5520
diff changeset
840 static void OPNAME ## qpel16_mc33_sh4(uint8_t *dst, uint8_t *src, int stride){\
1262
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
841 uint8_t full[24*17];\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
842 uint8_t halfH[272];\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
843 uint8_t halfHV[256];\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
844 copy_block17(full, src, 24, stride, 17);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
845 put ## RND ## mpeg4_qpel16_h_lowpass(halfH, full, 16, 24, 17);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
846 put ## RND ## pixels16_l2_aligned1(halfH, halfH, full+1, 16, 16, 24, 17);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
847 put ## RND ## mpeg4_qpel16_v_lowpass(halfHV, halfH, 16, 16);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
848 OPNAME ## pixels16_l2_aligned(dst, halfH+16, halfHV, stride, 16, 16, 16);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
849 }\
8167
bd11ee6ad834 SH4: rename functions with conflicting names
mru
parents: 5520
diff changeset
850 static void OPNAME ## qpel16_mc21_sh4(uint8_t *dst, uint8_t *src, int stride){\
1262
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
851 uint8_t halfH[272];\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
852 uint8_t halfHV[256];\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
853 put ## RND ## mpeg4_qpel16_h_lowpass(halfH, src, 16, stride, 17);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
854 put ## RND ## mpeg4_qpel16_v_lowpass(halfHV, halfH, 16, 16);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
855 OPNAME ## pixels16_l2_aligned(dst, halfH, halfHV, stride, 16, 16, 16);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
856 }\
8167
bd11ee6ad834 SH4: rename functions with conflicting names
mru
parents: 5520
diff changeset
857 static void OPNAME ## qpel16_mc23_sh4(uint8_t *dst, uint8_t *src, int stride){\
1262
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
858 uint8_t halfH[272];\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
859 uint8_t halfHV[256];\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
860 put ## RND ## mpeg4_qpel16_h_lowpass(halfH, src, 16, stride, 17);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
861 put ## RND ## mpeg4_qpel16_v_lowpass(halfHV, halfH, 16, 16);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
862 OPNAME ## pixels16_l2_aligned(dst, halfH+16, halfHV, stride, 16, 16, 16);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
863 }\
8167
bd11ee6ad834 SH4: rename functions with conflicting names
mru
parents: 5520
diff changeset
864 static void OPNAME ## qpel16_mc12_sh4(uint8_t *dst, uint8_t *src, int stride){\
1262
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
865 uint8_t full[24*17];\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
866 uint8_t halfH[272];\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
867 copy_block17(full, src, 24, stride, 17);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
868 put ## RND ## mpeg4_qpel16_h_lowpass(halfH, full, 16, 24, 17);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
869 put ## RND ## pixels16_l2_aligned(halfH, halfH, full, 16, 16, 24, 17);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
870 OPNAME ## mpeg4_qpel16_v_lowpass(dst, halfH, stride, 16);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
871 }\
8167
bd11ee6ad834 SH4: rename functions with conflicting names
mru
parents: 5520
diff changeset
872 static void OPNAME ## qpel16_mc32_sh4(uint8_t *dst, uint8_t *src, int stride){\
1262
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
873 uint8_t full[24*17];\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
874 uint8_t halfH[272];\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
875 copy_block17(full, src, 24, stride, 17);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
876 put ## RND ## mpeg4_qpel16_h_lowpass(halfH, full, 16, 24, 17);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
877 put ## RND ## pixels16_l2_aligned1(halfH, halfH, full+1, 16, 16, 24, 17);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
878 OPNAME ## mpeg4_qpel16_v_lowpass(dst, halfH, stride, 16);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
879 }\
8167
bd11ee6ad834 SH4: rename functions with conflicting names
mru
parents: 5520
diff changeset
880 static void OPNAME ## qpel16_mc22_sh4(uint8_t *dst, uint8_t *src, int stride){\
1262
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
881 uint8_t halfH[272];\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
882 put ## RND ## mpeg4_qpel16_h_lowpass(halfH, src, 16, stride, 17);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
883 OPNAME ## mpeg4_qpel16_v_lowpass(dst, halfH, stride, 16);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
884 }
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
885
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
886 #define op_avg(a, b) a = (((a)+cm[((b) + 16)>>5]+1)>>1)
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
887 #define op_avg_no_rnd(a, b) a = (((a)+cm[((b) + 15)>>5])>>1)
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
888 #define op_put(a, b) a = cm[((b) + 16)>>5]
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
889 #define op_put_no_rnd(a, b) a = cm[((b) + 15)>>5]
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
890
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
891 QPEL_MC(0, put_ , _ , op_put)
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
892 QPEL_MC(1, put_no_rnd_, _no_rnd_, op_put_no_rnd)
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
893 QPEL_MC(0, avg_ , _ , op_avg)
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
894 //QPEL_MC(1, avg_no_rnd , _ , op_avg)
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
895 #undef op_avg
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
896 #undef op_avg_no_rnd
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
897 #undef op_put
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
898 #undef op_put_no_rnd
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
899
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
900 #if 1
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
901 #define H264_LOWPASS(OPNAME, OP, OP2) \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
902 static inline void OPNAME ## h264_qpel_h_lowpass(uint8_t *dst, uint8_t *src, int dstStride, int srcStride,int w,int h){\
4176
23da44e8fd05 rename cropTbl -> ff_cropTbl
mru
parents: 3947
diff changeset
903 uint8_t *cm = ff_cropTbl + MAX_NEG_CROP;\
1262
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
904 do {\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
905 int srcB,srcA,src0,src1,src2,src3,src4,src5,src6;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
906 uint8_t *s = src-2;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
907 srcB = *s++;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
908 srcA = *s++;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
909 src0 = *s++;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
910 src1 = *s++;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
911 src2 = *s++;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
912 src3 = *s++;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
913 OP(dst[0], (src0+src1)*20 - (srcA+src2)*5 + (srcB+src3));\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
914 src4 = *s++;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
915 OP(dst[1], (src1+src2)*20 - (src0+src3)*5 + (srcA+src4));\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
916 src5 = *s++;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
917 OP(dst[2], (src2+src3)*20 - (src1+src4)*5 + (src0+src5));\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
918 src6 = *s++;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
919 OP(dst[3], (src3+src4)*20 - (src2+src5)*5 + (src1+src6));\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
920 if (w>4) { /* it optimized */ \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
921 int src7,src8,src9,src10; \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
922 src7 = *s++;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
923 OP(dst[4], (src4+src5)*20 - (src3+src6)*5 + (src2+src7));\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
924 src8 = *s++;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
925 OP(dst[5], (src5+src6)*20 - (src4+src7)*5 + (src3+src8));\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
926 src9 = *s++;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
927 OP(dst[6], (src6+src7)*20 - (src5+src8)*5 + (src4+src9));\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
928 src10 = *s++;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
929 OP(dst[7], (src7+src8)*20 - (src6+src9)*5 + (src5+src10));\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
930 if (w>8) { \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
931 int src11,src12,src13,src14,src15,src16,src17,src18; \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
932 src11 = *s++;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
933 OP(dst[8] , (src8 +src9 )*20 - (src7 +src10)*5 + (src6 +src11));\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
934 src12 = *s++;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
935 OP(dst[9] , (src9 +src10)*20 - (src8 +src11)*5 + (src7 +src12));\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
936 src13 = *s++;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
937 OP(dst[10], (src10+src11)*20 - (src9 +src12)*5 + (src8 +src13));\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
938 src14 = *s++;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
939 OP(dst[11], (src11+src12)*20 - (src10+src13)*5 + (src9 +src14));\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
940 src15 = *s++;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
941 OP(dst[12], (src12+src13)*20 - (src11+src14)*5 + (src10+src15));\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
942 src16 = *s++;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
943 OP(dst[13], (src13+src14)*20 - (src12+src15)*5 + (src11+src16));\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
944 src17 = *s++;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
945 OP(dst[14], (src14+src15)*20 - (src13+src16)*5 + (src12+src17));\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
946 src18 = *s++;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
947 OP(dst[15], (src15+src16)*20 - (src14+src17)*5 + (src13+src18));\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
948 } \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
949 } \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
950 dst+=dstStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
951 src+=srcStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
952 }while(--h);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
953 }\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
954 \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
955 static inline void OPNAME ## h264_qpel_v_lowpass(uint8_t *dst, uint8_t *src, int dstStride, int srcStride,int w,int h){\
4176
23da44e8fd05 rename cropTbl -> ff_cropTbl
mru
parents: 3947
diff changeset
956 uint8_t *cm = ff_cropTbl + MAX_NEG_CROP;\
1262
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
957 do{\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
958 int srcB,srcA,src0,src1,src2,src3,src4,src5,src6;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
959 uint8_t *s = src-2*srcStride,*d=dst;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
960 srcB = *s; s+=srcStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
961 srcA = *s; s+=srcStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
962 src0 = *s; s+=srcStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
963 src1 = *s; s+=srcStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
964 src2 = *s; s+=srcStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
965 src3 = *s; s+=srcStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
966 OP(*d, (src0+src1)*20 - (srcA+src2)*5 + (srcB+src3));d+=dstStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
967 src4 = *s; s+=srcStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
968 OP(*d, (src1+src2)*20 - (src0+src3)*5 + (srcA+src4));d+=dstStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
969 src5 = *s; s+=srcStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
970 OP(*d, (src2+src3)*20 - (src1+src4)*5 + (src0+src5));d+=dstStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
971 src6 = *s; s+=srcStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
972 OP(*d, (src3+src4)*20 - (src2+src5)*5 + (src1+src6));d+=dstStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
973 if (h>4) { \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
974 int src7,src8,src9,src10; \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
975 src7 = *s; s+=srcStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
976 OP(*d, (src4+src5)*20 - (src3+src6)*5 + (src2+src7));d+=dstStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
977 src8 = *s; s+=srcStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
978 OP(*d, (src5+src6)*20 - (src4+src7)*5 + (src3+src8));d+=dstStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
979 src9 = *s; s+=srcStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
980 OP(*d, (src6+src7)*20 - (src5+src8)*5 + (src4+src9));d+=dstStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
981 src10 = *s; s+=srcStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
982 OP(*d, (src7+src8)*20 - (src6+src9)*5 + (src5+src10));d+=dstStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
983 if (h>8) { \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
984 int src11,src12,src13,src14,src15,src16,src17,src18; \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
985 src11 = *s; s+=srcStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
986 OP(*d , (src8 +src9 )*20 - (src7 +src10)*5 + (src6 +src11));d+=dstStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
987 src12 = *s; s+=srcStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
988 OP(*d , (src9 +src10)*20 - (src8 +src11)*5 + (src7 +src12));d+=dstStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
989 src13 = *s; s+=srcStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
990 OP(*d, (src10+src11)*20 - (src9 +src12)*5 + (src8 +src13));d+=dstStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
991 src14 = *s; s+=srcStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
992 OP(*d, (src11+src12)*20 - (src10+src13)*5 + (src9 +src14));d+=dstStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
993 src15 = *s; s+=srcStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
994 OP(*d, (src12+src13)*20 - (src11+src14)*5 + (src10+src15));d+=dstStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
995 src16 = *s; s+=srcStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
996 OP(*d, (src13+src14)*20 - (src12+src15)*5 + (src11+src16));d+=dstStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
997 src17 = *s; s+=srcStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
998 OP(*d, (src14+src15)*20 - (src13+src16)*5 + (src12+src17));d+=dstStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
999 src18 = *s; s+=srcStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1000 OP(*d, (src15+src16)*20 - (src14+src17)*5 + (src13+src18));d+=dstStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1001 } \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1002 } \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1003 dst++;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1004 src++;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1005 }while(--w);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1006 }\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1007 \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1008 static inline void OPNAME ## h264_qpel_hv_lowpass(uint8_t *dst, int16_t *tmp, uint8_t *src, int dstStride, int tmpStride, int srcStride,int w,int h){\
4176
23da44e8fd05 rename cropTbl -> ff_cropTbl
mru
parents: 3947
diff changeset
1009 uint8_t *cm = ff_cropTbl + MAX_NEG_CROP;\
1262
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1010 int i;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1011 src -= 2*srcStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1012 i= h+5; \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1013 do {\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1014 int srcB,srcA,src0,src1,src2,src3,src4,src5,src6;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1015 uint8_t *s = src-2;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1016 srcB = *s++;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1017 srcA = *s++;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1018 src0 = *s++;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1019 src1 = *s++;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1020 src2 = *s++;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1021 src3 = *s++;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1022 tmp[0] = ((src0+src1)*20 - (srcA+src2)*5 + (srcB+src3));\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1023 src4 = *s++;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1024 tmp[1] = ((src1+src2)*20 - (src0+src3)*5 + (srcA+src4));\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1025 src5 = *s++;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1026 tmp[2] = ((src2+src3)*20 - (src1+src4)*5 + (src0+src5));\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1027 src6 = *s++;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1028 tmp[3] = ((src3+src4)*20 - (src2+src5)*5 + (src1+src6));\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1029 if (w>4) { /* it optimized */ \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1030 int src7,src8,src9,src10; \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1031 src7 = *s++;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1032 tmp[4] = ((src4+src5)*20 - (src3+src6)*5 + (src2+src7));\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1033 src8 = *s++;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1034 tmp[5] = ((src5+src6)*20 - (src4+src7)*5 + (src3+src8));\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1035 src9 = *s++;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1036 tmp[6] = ((src6+src7)*20 - (src5+src8)*5 + (src4+src9));\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1037 src10 = *s++;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1038 tmp[7] = ((src7+src8)*20 - (src6+src9)*5 + (src5+src10));\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1039 if (w>8) { \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1040 int src11,src12,src13,src14,src15,src16,src17,src18; \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1041 src11 = *s++;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1042 tmp[8] = ((src8 +src9 )*20 - (src7 +src10)*5 + (src6 +src11));\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1043 src12 = *s++;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1044 tmp[9] = ((src9 +src10)*20 - (src8 +src11)*5 + (src7 +src12));\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1045 src13 = *s++;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1046 tmp[10] = ((src10+src11)*20 - (src9 +src12)*5 + (src8 +src13));\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1047 src14 = *s++;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1048 tmp[11] = ((src11+src12)*20 - (src10+src13)*5 + (src9 +src14));\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1049 src15 = *s++;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1050 tmp[12] = ((src12+src13)*20 - (src11+src14)*5 + (src10+src15));\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1051 src16 = *s++;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1052 tmp[13] = ((src13+src14)*20 - (src12+src15)*5 + (src11+src16));\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1053 src17 = *s++;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1054 tmp[14] = ((src14+src15)*20 - (src13+src16)*5 + (src12+src17));\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1055 src18 = *s++;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1056 tmp[15] = ((src15+src16)*20 - (src14+src17)*5 + (src13+src18));\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1057 } \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1058 } \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1059 tmp+=tmpStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1060 src+=srcStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1061 }while(--i);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1062 tmp -= tmpStride*(h+5-2);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1063 i = w; \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1064 do {\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1065 int tmpB,tmpA,tmp0,tmp1,tmp2,tmp3,tmp4,tmp5,tmp6;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1066 int16_t *s = tmp-2*tmpStride; \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1067 uint8_t *d=dst;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1068 tmpB = *s; s+=tmpStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1069 tmpA = *s; s+=tmpStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1070 tmp0 = *s; s+=tmpStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1071 tmp1 = *s; s+=tmpStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1072 tmp2 = *s; s+=tmpStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1073 tmp3 = *s; s+=tmpStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1074 OP2(*d, (tmp0+tmp1)*20 - (tmpA+tmp2)*5 + (tmpB+tmp3));d+=dstStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1075 tmp4 = *s; s+=tmpStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1076 OP2(*d, (tmp1+tmp2)*20 - (tmp0+tmp3)*5 + (tmpA+tmp4));d+=dstStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1077 tmp5 = *s; s+=tmpStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1078 OP2(*d, (tmp2+tmp3)*20 - (tmp1+tmp4)*5 + (tmp0+tmp5));d+=dstStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1079 tmp6 = *s; s+=tmpStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1080 OP2(*d, (tmp3+tmp4)*20 - (tmp2+tmp5)*5 + (tmp1+tmp6));d+=dstStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1081 if (h>4) { \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1082 int tmp7,tmp8,tmp9,tmp10; \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1083 tmp7 = *s; s+=tmpStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1084 OP2(*d, (tmp4+tmp5)*20 - (tmp3+tmp6)*5 + (tmp2+tmp7));d+=dstStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1085 tmp8 = *s; s+=tmpStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1086 OP2(*d, (tmp5+tmp6)*20 - (tmp4+tmp7)*5 + (tmp3+tmp8));d+=dstStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1087 tmp9 = *s; s+=tmpStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1088 OP2(*d, (tmp6+tmp7)*20 - (tmp5+tmp8)*5 + (tmp4+tmp9));d+=dstStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1089 tmp10 = *s; s+=tmpStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1090 OP2(*d, (tmp7+tmp8)*20 - (tmp6+tmp9)*5 + (tmp5+tmp10));d+=dstStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1091 if (h>8) { \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1092 int tmp11,tmp12,tmp13,tmp14,tmp15,tmp16,tmp17,tmp18; \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1093 tmp11 = *s; s+=tmpStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1094 OP2(*d , (tmp8 +tmp9 )*20 - (tmp7 +tmp10)*5 + (tmp6 +tmp11));d+=dstStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1095 tmp12 = *s; s+=tmpStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1096 OP2(*d , (tmp9 +tmp10)*20 - (tmp8 +tmp11)*5 + (tmp7 +tmp12));d+=dstStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1097 tmp13 = *s; s+=tmpStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1098 OP2(*d, (tmp10+tmp11)*20 - (tmp9 +tmp12)*5 + (tmp8 +tmp13));d+=dstStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1099 tmp14 = *s; s+=tmpStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1100 OP2(*d, (tmp11+tmp12)*20 - (tmp10+tmp13)*5 + (tmp9 +tmp14));d+=dstStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1101 tmp15 = *s; s+=tmpStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1102 OP2(*d, (tmp12+tmp13)*20 - (tmp11+tmp14)*5 + (tmp10+tmp15));d+=dstStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1103 tmp16 = *s; s+=tmpStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1104 OP2(*d, (tmp13+tmp14)*20 - (tmp12+tmp15)*5 + (tmp11+tmp16));d+=dstStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1105 tmp17 = *s; s+=tmpStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1106 OP2(*d, (tmp14+tmp15)*20 - (tmp13+tmp16)*5 + (tmp12+tmp17));d+=dstStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1107 tmp18 = *s; s+=tmpStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1108 OP2(*d, (tmp15+tmp16)*20 - (tmp14+tmp17)*5 + (tmp13+tmp18));d+=dstStride;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1109 } \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1110 } \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1111 dst++;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1112 tmp++;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1113 }while(--i);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1114 }\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1115 \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1116 static void OPNAME ## h264_qpel4_h_lowpass(uint8_t *dst, uint8_t *src, int dstStride, int srcStride){\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1117 OPNAME ## h264_qpel_h_lowpass(dst,src,dstStride,srcStride,4,4); \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1118 }\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1119 static void OPNAME ## h264_qpel8_h_lowpass(uint8_t *dst, uint8_t *src, int dstStride, int srcStride){\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1120 OPNAME ## h264_qpel_h_lowpass(dst,src,dstStride,srcStride,8,8); \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1121 }\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1122 static void OPNAME ## h264_qpel16_h_lowpass(uint8_t *dst, uint8_t *src, int dstStride, int srcStride){\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1123 OPNAME ## h264_qpel_h_lowpass(dst,src,dstStride,srcStride,16,16); \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1124 }\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1125 \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1126 static void OPNAME ## h264_qpel4_v_lowpass(uint8_t *dst, uint8_t *src, int dstStride, int srcStride){\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1127 OPNAME ## h264_qpel_v_lowpass(dst,src,dstStride,srcStride,4,4); \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1128 }\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1129 static void OPNAME ## h264_qpel8_v_lowpass(uint8_t *dst, uint8_t *src, int dstStride, int srcStride){\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1130 OPNAME ## h264_qpel_v_lowpass(dst,src,dstStride,srcStride,8,8); \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1131 }\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1132 static void OPNAME ## h264_qpel16_v_lowpass(uint8_t *dst, uint8_t *src, int dstStride, int srcStride){\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1133 OPNAME ## h264_qpel_v_lowpass(dst,src,dstStride,srcStride,16,16); \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1134 }\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1135 static void OPNAME ## h264_qpel4_hv_lowpass(uint8_t *dst, int16_t *tmp, uint8_t *src, int dstStride, int tmpStride, int srcStride){\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1136 OPNAME ## h264_qpel_hv_lowpass(dst,tmp,src,dstStride,tmpStride,srcStride,4,4); \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1137 }\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1138 static void OPNAME ## h264_qpel8_hv_lowpass(uint8_t *dst, int16_t *tmp, uint8_t *src, int dstStride, int tmpStride, int srcStride){\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1139 OPNAME ## h264_qpel_hv_lowpass(dst,tmp,src,dstStride,tmpStride,srcStride,8,8); \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1140 }\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1141 static void OPNAME ## h264_qpel16_hv_lowpass(uint8_t *dst, int16_t *tmp, uint8_t *src, int dstStride, int tmpStride, int srcStride){\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1142 OPNAME ## h264_qpel_hv_lowpass(dst,tmp,src,dstStride,tmpStride,srcStride,16,16); \
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1143 }\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1144
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1145 #define H264_MC(OPNAME, SIZE) \
8167
bd11ee6ad834 SH4: rename functions with conflicting names
mru
parents: 5520
diff changeset
1146 static void OPNAME ## h264_qpel ## SIZE ## _mc00_sh4 (uint8_t *dst, uint8_t *src, int stride){\
1262
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1147 OPNAME ## pixels ## SIZE ## _c(dst, src, stride, SIZE);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1148 }\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1149 \
8167
bd11ee6ad834 SH4: rename functions with conflicting names
mru
parents: 5520
diff changeset
1150 static void OPNAME ## h264_qpel ## SIZE ## _mc10_sh4(uint8_t *dst, uint8_t *src, int stride){\
1262
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1151 uint8_t half[SIZE*SIZE];\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1152 put_h264_qpel ## SIZE ## _h_lowpass(half, src, SIZE, stride);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1153 OPNAME ## pixels ## SIZE ## _l2_aligned2(dst, src, half, stride, stride, SIZE, SIZE);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1154 }\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1155 \
8167
bd11ee6ad834 SH4: rename functions with conflicting names
mru
parents: 5520
diff changeset
1156 static void OPNAME ## h264_qpel ## SIZE ## _mc20_sh4(uint8_t *dst, uint8_t *src, int stride){\
1262
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1157 OPNAME ## h264_qpel ## SIZE ## _h_lowpass(dst, src, stride, stride);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1158 }\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1159 \
8167
bd11ee6ad834 SH4: rename functions with conflicting names
mru
parents: 5520
diff changeset
1160 static void OPNAME ## h264_qpel ## SIZE ## _mc30_sh4(uint8_t *dst, uint8_t *src, int stride){\
1262
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1161 uint8_t half[SIZE*SIZE];\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1162 put_h264_qpel ## SIZE ## _h_lowpass(half, src, SIZE, stride);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1163 OPNAME ## pixels ## SIZE ## _l2_aligned2(dst, src+1, half, stride, stride, SIZE, SIZE);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1164 }\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1165 \
8167
bd11ee6ad834 SH4: rename functions with conflicting names
mru
parents: 5520
diff changeset
1166 static void OPNAME ## h264_qpel ## SIZE ## _mc01_sh4(uint8_t *dst, uint8_t *src, int stride){\
1262
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1167 uint8_t full[SIZE*(SIZE+5)];\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1168 uint8_t * const full_mid= full + SIZE*2;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1169 uint8_t half[SIZE*SIZE];\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1170 copy_block ## SIZE (full, src - stride*2, SIZE, stride, SIZE + 5);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1171 put_h264_qpel ## SIZE ## _v_lowpass(half, full_mid, SIZE, SIZE);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1172 OPNAME ## pixels ## SIZE ## _l2_aligned(dst, full_mid, half, stride, SIZE, SIZE, SIZE);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1173 }\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1174 \
8167
bd11ee6ad834 SH4: rename functions with conflicting names
mru
parents: 5520
diff changeset
1175 static void OPNAME ## h264_qpel ## SIZE ## _mc02_sh4(uint8_t *dst, uint8_t *src, int stride){\
1262
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1176 uint8_t full[SIZE*(SIZE+5)];\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1177 uint8_t * const full_mid= full + SIZE*2;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1178 copy_block ## SIZE (full, src - stride*2, SIZE, stride, SIZE + 5);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1179 OPNAME ## h264_qpel ## SIZE ## _v_lowpass(dst, full_mid, stride, SIZE);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1180 }\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1181 \
8167
bd11ee6ad834 SH4: rename functions with conflicting names
mru
parents: 5520
diff changeset
1182 static void OPNAME ## h264_qpel ## SIZE ## _mc03_sh4(uint8_t *dst, uint8_t *src, int stride){\
1262
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1183 uint8_t full[SIZE*(SIZE+5)];\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1184 uint8_t * const full_mid= full + SIZE*2;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1185 uint8_t half[SIZE*SIZE];\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1186 copy_block ## SIZE (full, src - stride*2, SIZE, stride, SIZE + 5);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1187 put_h264_qpel ## SIZE ## _v_lowpass(half, full_mid, SIZE, SIZE);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1188 OPNAME ## pixels ## SIZE ## _l2_aligned(dst, full_mid+SIZE, half, stride, SIZE, SIZE, SIZE);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1189 }\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1190 \
8167
bd11ee6ad834 SH4: rename functions with conflicting names
mru
parents: 5520
diff changeset
1191 static void OPNAME ## h264_qpel ## SIZE ## _mc11_sh4(uint8_t *dst, uint8_t *src, int stride){\
1262
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1192 uint8_t full[SIZE*(SIZE+5)];\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1193 uint8_t * const full_mid= full + SIZE*2;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1194 uint8_t halfH[SIZE*SIZE];\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1195 uint8_t halfV[SIZE*SIZE];\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1196 put_h264_qpel ## SIZE ## _h_lowpass(halfH, src, SIZE, stride);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1197 copy_block ## SIZE (full, src - stride*2, SIZE, stride, SIZE + 5);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1198 put_h264_qpel ## SIZE ## _v_lowpass(halfV, full_mid, SIZE, SIZE);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1199 OPNAME ## pixels ## SIZE ## _l2_aligned(dst, halfH, halfV, stride, SIZE, SIZE, SIZE);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1200 }\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1201 \
8167
bd11ee6ad834 SH4: rename functions with conflicting names
mru
parents: 5520
diff changeset
1202 static void OPNAME ## h264_qpel ## SIZE ## _mc31_sh4(uint8_t *dst, uint8_t *src, int stride){\
1262
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1203 uint8_t full[SIZE*(SIZE+5)];\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1204 uint8_t * const full_mid= full + SIZE*2;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1205 uint8_t halfH[SIZE*SIZE];\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1206 uint8_t halfV[SIZE*SIZE];\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1207 put_h264_qpel ## SIZE ## _h_lowpass(halfH, src, SIZE, stride);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1208 copy_block ## SIZE (full, src - stride*2 + 1, SIZE, stride, SIZE + 5);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1209 put_h264_qpel ## SIZE ## _v_lowpass(halfV, full_mid, SIZE, SIZE);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1210 OPNAME ## pixels ## SIZE ## _l2_aligned(dst, halfH, halfV, stride, SIZE, SIZE, SIZE);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1211 }\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1212 \
8167
bd11ee6ad834 SH4: rename functions with conflicting names
mru
parents: 5520
diff changeset
1213 static void OPNAME ## h264_qpel ## SIZE ## _mc13_sh4(uint8_t *dst, uint8_t *src, int stride){\
1262
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1214 uint8_t full[SIZE*(SIZE+5)];\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1215 uint8_t * const full_mid= full + SIZE*2;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1216 uint8_t halfH[SIZE*SIZE];\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1217 uint8_t halfV[SIZE*SIZE];\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1218 put_h264_qpel ## SIZE ## _h_lowpass(halfH, src + stride, SIZE, stride);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1219 copy_block ## SIZE (full, src - stride*2, SIZE, stride, SIZE + 5);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1220 put_h264_qpel ## SIZE ## _v_lowpass(halfV, full_mid, SIZE, SIZE);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1221 OPNAME ## pixels ## SIZE ## _l2_aligned(dst, halfH, halfV, stride, SIZE, SIZE, SIZE);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1222 }\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1223 \
8167
bd11ee6ad834 SH4: rename functions with conflicting names
mru
parents: 5520
diff changeset
1224 static void OPNAME ## h264_qpel ## SIZE ## _mc33_sh4(uint8_t *dst, uint8_t *src, int stride){\
1262
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1225 uint8_t full[SIZE*(SIZE+5)];\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1226 uint8_t * const full_mid= full + SIZE*2;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1227 uint8_t halfH[SIZE*SIZE];\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1228 uint8_t halfV[SIZE*SIZE];\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1229 put_h264_qpel ## SIZE ## _h_lowpass(halfH, src + stride, SIZE, stride);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1230 copy_block ## SIZE (full, src - stride*2 + 1, SIZE, stride, SIZE + 5);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1231 put_h264_qpel ## SIZE ## _v_lowpass(halfV, full_mid, SIZE, SIZE);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1232 OPNAME ## pixels ## SIZE ## _l2_aligned(dst, halfH, halfV, stride, SIZE, SIZE, SIZE);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1233 }\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1234 \
8167
bd11ee6ad834 SH4: rename functions with conflicting names
mru
parents: 5520
diff changeset
1235 static void OPNAME ## h264_qpel ## SIZE ## _mc22_sh4(uint8_t *dst, uint8_t *src, int stride){\
1262
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1236 int16_t tmp[SIZE*(SIZE+5)];\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1237 OPNAME ## h264_qpel ## SIZE ## _hv_lowpass(dst, tmp, src, stride, SIZE, stride);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1238 }\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1239 \
8167
bd11ee6ad834 SH4: rename functions with conflicting names
mru
parents: 5520
diff changeset
1240 static void OPNAME ## h264_qpel ## SIZE ## _mc21_sh4(uint8_t *dst, uint8_t *src, int stride){\
1262
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1241 int16_t tmp[SIZE*(SIZE+5)];\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1242 uint8_t halfH[SIZE*SIZE];\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1243 uint8_t halfHV[SIZE*SIZE];\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1244 put_h264_qpel ## SIZE ## _h_lowpass(halfH, src, SIZE, stride);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1245 put_h264_qpel ## SIZE ## _hv_lowpass(halfHV, tmp, src, SIZE, SIZE, stride);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1246 OPNAME ## pixels ## SIZE ## _l2_aligned(dst, halfH, halfHV, stride, SIZE, SIZE, SIZE);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1247 }\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1248 \
8167
bd11ee6ad834 SH4: rename functions with conflicting names
mru
parents: 5520
diff changeset
1249 static void OPNAME ## h264_qpel ## SIZE ## _mc23_sh4(uint8_t *dst, uint8_t *src, int stride){\
1262
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1250 int16_t tmp[SIZE*(SIZE+5)];\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1251 uint8_t halfH[SIZE*SIZE];\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1252 uint8_t halfHV[SIZE*SIZE];\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1253 put_h264_qpel ## SIZE ## _h_lowpass(halfH, src + stride, SIZE, stride);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1254 put_h264_qpel ## SIZE ## _hv_lowpass(halfHV, tmp, src, SIZE, SIZE, stride);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1255 OPNAME ## pixels ## SIZE ## _l2_aligned(dst, halfH, halfHV, stride, SIZE, SIZE, SIZE);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1256 }\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1257 \
8167
bd11ee6ad834 SH4: rename functions with conflicting names
mru
parents: 5520
diff changeset
1258 static void OPNAME ## h264_qpel ## SIZE ## _mc12_sh4(uint8_t *dst, uint8_t *src, int stride){\
1262
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1259 uint8_t full[SIZE*(SIZE+5)];\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1260 uint8_t * const full_mid= full + SIZE*2;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1261 int16_t tmp[SIZE*(SIZE+5)];\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1262 uint8_t halfV[SIZE*SIZE];\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1263 uint8_t halfHV[SIZE*SIZE];\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1264 copy_block ## SIZE (full, src - stride*2, SIZE, stride, SIZE + 5);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1265 put_h264_qpel ## SIZE ## _v_lowpass(halfV, full_mid, SIZE, SIZE);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1266 put_h264_qpel ## SIZE ## _hv_lowpass(halfHV, tmp, src, SIZE, SIZE, stride);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1267 OPNAME ## pixels ## SIZE ## _l2_aligned(dst, halfV, halfHV, stride, SIZE, SIZE, SIZE);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1268 }\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1269 \
8167
bd11ee6ad834 SH4: rename functions with conflicting names
mru
parents: 5520
diff changeset
1270 static void OPNAME ## h264_qpel ## SIZE ## _mc32_sh4(uint8_t *dst, uint8_t *src, int stride){\
1262
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1271 uint8_t full[SIZE*(SIZE+5)];\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1272 uint8_t * const full_mid= full + SIZE*2;\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1273 int16_t tmp[SIZE*(SIZE+5)];\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1274 uint8_t halfV[SIZE*SIZE];\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1275 uint8_t halfHV[SIZE*SIZE];\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1276 copy_block ## SIZE (full, src - stride*2 + 1, SIZE, stride, SIZE + 5);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1277 put_h264_qpel ## SIZE ## _v_lowpass(halfV, full_mid, SIZE, SIZE);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1278 put_h264_qpel ## SIZE ## _hv_lowpass(halfHV, tmp, src, SIZE, SIZE, stride);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1279 OPNAME ## pixels ## SIZE ## _l2_aligned(dst, halfV, halfHV, stride, SIZE, SIZE, SIZE);\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1280 }\
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1281
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1282 #define op_avg(a, b) a = (((a)+cm[((b) + 16)>>5]+1)>>1)
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1283 //#define op_avg2(a, b) a = (((a)*w1+cm[((b) + 16)>>5]*w2 + o + 64)>>7)
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1284 #define op_put(a, b) a = cm[((b) + 16)>>5]
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1285 #define op2_avg(a, b) a = (((a)+cm[((b) + 512)>>10]+1)>>1)
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1286 #define op2_put(a, b) a = cm[((b) + 512)>>10]
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1287
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1288 H264_LOWPASS(put_ , op_put, op2_put)
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1289 H264_LOWPASS(avg_ , op_avg, op2_avg)
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1290 H264_MC(put_, 4)
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1291 H264_MC(put_, 8)
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1292 H264_MC(put_, 16)
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1293 H264_MC(avg_, 4)
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1294 H264_MC(avg_, 8)
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1295 H264_MC(avg_, 16)
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1296
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1297 #undef op_avg
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1298 #undef op_put
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1299 #undef op2_avg
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1300 #undef op2_put
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1301 #endif
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1302
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1303 static void wmv2_mspel8_h_lowpass(uint8_t *dst, uint8_t *src, int dstStride, int srcStride, int h){
4176
23da44e8fd05 rename cropTbl -> ff_cropTbl
mru
parents: 3947
diff changeset
1304 uint8_t *cm = ff_cropTbl + MAX_NEG_CROP;
1262
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1305
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1306 do{
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1307 int src_1,src0,src1,src2,src3,src4,src5,src6,src7,src8,src9;
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1308 uint8_t *s = src;
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1309 src_1 = s[-1];
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1310 src0 = *s++;
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1311 src1 = *s++;
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1312 src2 = *s++;
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1313 dst[0]= cm[(9*(src0 + src1) - (src_1 + src2) + 8)>>4];
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1314 src3 = *s++;
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1315 dst[1]= cm[(9*(src1 + src2) - (src0 + src3) + 8)>>4];
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1316 src4 = *s++;
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1317 dst[2]= cm[(9*(src2 + src3) - (src1 + src4) + 8)>>4];
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1318 src5 = *s++;
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1319 dst[3]= cm[(9*(src3 + src4) - (src2 + src5) + 8)>>4];
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1320 src6 = *s++;
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1321 dst[4]= cm[(9*(src4 + src5) - (src3 + src6) + 8)>>4];
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1322 src7 = *s++;
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1323 dst[5]= cm[(9*(src5 + src6) - (src4 + src7) + 8)>>4];
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1324 src8 = *s++;
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1325 dst[6]= cm[(9*(src6 + src7) - (src5 + src8) + 8)>>4];
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1326 src9 = *s++;
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1327 dst[7]= cm[(9*(src7 + src8) - (src6 + src9) + 8)>>4];
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1328 dst+=dstStride;
2967
ef2149182f1c COSMETICS: Remove all trailing whitespace.
diego
parents: 1264
diff changeset
1329 src+=srcStride;
1262
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1330 }while(--h);
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1331 }
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1332
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1333 static void wmv2_mspel8_v_lowpass(uint8_t *dst, uint8_t *src, int dstStride, int srcStride, int w){
4176
23da44e8fd05 rename cropTbl -> ff_cropTbl
mru
parents: 3947
diff changeset
1334 uint8_t *cm = ff_cropTbl + MAX_NEG_CROP;
1262
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1335
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1336 do{
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1337 int src_1,src0,src1,src2,src3,src4,src5,src6,src7,src8,src9;
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1338 uint8_t *s = src,*d = dst;
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1339 src_1 = *(s-srcStride);
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1340 src0 = *s; s+=srcStride;
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1341 src1 = *s; s+=srcStride;
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1342 src2 = *s; s+=srcStride;
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1343 *d= cm[(9*(src0 + src1) - (src_1 + src2) + 8)>>4]; d+=dstStride;
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1344 src3 = *s; s+=srcStride;
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1345 *d= cm[(9*(src1 + src2) - (src0 + src3) + 8)>>4]; d+=dstStride;
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1346 src4 = *s; s+=srcStride;
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1347 *d= cm[(9*(src2 + src3) - (src1 + src4) + 8)>>4]; d+=dstStride;
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1348 src5 = *s; s+=srcStride;
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1349 *d= cm[(9*(src3 + src4) - (src2 + src5) + 8)>>4]; d+=dstStride;
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1350 src6 = *s; s+=srcStride;
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1351 *d= cm[(9*(src4 + src5) - (src3 + src6) + 8)>>4]; d+=dstStride;
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1352 src7 = *s; s+=srcStride;
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1353 *d= cm[(9*(src5 + src6) - (src4 + src7) + 8)>>4]; d+=dstStride;
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1354 src8 = *s; s+=srcStride;
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1355 *d= cm[(9*(src6 + src7) - (src5 + src8) + 8)>>4]; d+=dstStride;
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1356 src9 = *s;
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1357 *d= cm[(9*(src7 + src8) - (src6 + src9) + 8)>>4]; d+=dstStride;
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1358 src++;
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1359 dst++;
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1360 }while(--w);
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1361 }
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1362
8167
bd11ee6ad834 SH4: rename functions with conflicting names
mru
parents: 5520
diff changeset
1363 static void put_mspel8_mc00_sh4 (uint8_t *dst, uint8_t *src, int stride){
1262
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1364 put_pixels8_c(dst, src, stride, 8);
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1365 }
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1366
8167
bd11ee6ad834 SH4: rename functions with conflicting names
mru
parents: 5520
diff changeset
1367 static void put_mspel8_mc10_sh4(uint8_t *dst, uint8_t *src, int stride){
1262
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1368 uint8_t half[64];
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1369 wmv2_mspel8_h_lowpass(half, src, 8, stride, 8);
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1370 put_pixels8_l2_aligned2(dst, src, half, stride, stride, 8, 8);
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1371 }
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1372
8167
bd11ee6ad834 SH4: rename functions with conflicting names
mru
parents: 5520
diff changeset
1373 static void put_mspel8_mc20_sh4(uint8_t *dst, uint8_t *src, int stride){
1262
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1374 wmv2_mspel8_h_lowpass(dst, src, stride, stride, 8);
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1375 }
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1376
8167
bd11ee6ad834 SH4: rename functions with conflicting names
mru
parents: 5520
diff changeset
1377 static void put_mspel8_mc30_sh4(uint8_t *dst, uint8_t *src, int stride){
1262
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1378 uint8_t half[64];
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1379 wmv2_mspel8_h_lowpass(half, src, 8, stride, 8);
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1380 put_pixels8_l2_aligned2(dst, src+1, half, stride, stride, 8, 8);
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1381 }
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1382
8167
bd11ee6ad834 SH4: rename functions with conflicting names
mru
parents: 5520
diff changeset
1383 static void put_mspel8_mc02_sh4(uint8_t *dst, uint8_t *src, int stride){
1262
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1384 wmv2_mspel8_v_lowpass(dst, src, stride, stride, 8);
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1385 }
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1386
8167
bd11ee6ad834 SH4: rename functions with conflicting names
mru
parents: 5520
diff changeset
1387 static void put_mspel8_mc12_sh4(uint8_t *dst, uint8_t *src, int stride){
1262
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1388 uint8_t halfH[88];
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1389 uint8_t halfV[64];
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1390 uint8_t halfHV[64];
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1391 wmv2_mspel8_h_lowpass(halfH, src-stride, 8, stride, 11);
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1392 wmv2_mspel8_v_lowpass(halfV, src, 8, stride, 8);
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1393 wmv2_mspel8_v_lowpass(halfHV, halfH+8, 8, 8, 8);
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1394 put_pixels8_l2_aligned(dst, halfV, halfHV, stride, 8, 8, 8);
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1395 }
8167
bd11ee6ad834 SH4: rename functions with conflicting names
mru
parents: 5520
diff changeset
1396 static void put_mspel8_mc32_sh4(uint8_t *dst, uint8_t *src, int stride){
1262
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1397 uint8_t halfH[88];
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1398 uint8_t halfV[64];
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1399 uint8_t halfHV[64];
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1400 wmv2_mspel8_h_lowpass(halfH, src-stride, 8, stride, 11);
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1401 wmv2_mspel8_v_lowpass(halfV, src+1, 8, stride, 8);
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1402 wmv2_mspel8_v_lowpass(halfHV, halfH+8, 8, 8, 8);
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1403 put_pixels8_l2_aligned(dst, halfV, halfHV, stride, 8, 8, 8);
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1404 }
8167
bd11ee6ad834 SH4: rename functions with conflicting names
mru
parents: 5520
diff changeset
1405 static void put_mspel8_mc22_sh4(uint8_t *dst, uint8_t *src, int stride){
1262
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1406 uint8_t halfH[88];
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1407 wmv2_mspel8_h_lowpass(halfH, src-stride, 8, stride, 11);
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1408 wmv2_mspel8_v_lowpass(dst, halfH+8, stride, 8, 8);
82e0e1b9c283 aligned dsputil (for sh4) patch by (BERO <bero at geocities dot co dot jp>)
michaelni
parents:
diff changeset
1409 }