Revision 68b51e58 libavcodec/ppc/dsputil_h264_altivec.c

View differences:

libavcodec/ppc/dsputil_h264_altivec.c
71 71
}\
72 72
\
73 73
static void OPNAME ## h264_qpel ## SIZE ## _mc10_ ## CODETYPE(uint8_t *dst, uint8_t *src, int stride){ \
74
    uint64_t temp[SIZE*SIZE/8] __align16;\
74
    DECLARE_ALIGNED_16(uint64_t, temp[SIZE*SIZE/8]);\
75 75
    uint8_t * const half= (uint8_t*)temp;\
76 76
    put_h264_qpel ## SIZE ## _h_lowpass_ ## CODETYPE(half, src, SIZE, stride);\
77 77
    OPNAME ## pixels ## SIZE ## _l2_ ## CODETYPE(dst, src, half, stride, stride, SIZE);\
......
82 82
}\
83 83
\
84 84
static void OPNAME ## h264_qpel ## SIZE ## _mc30_ ## CODETYPE(uint8_t *dst, uint8_t *src, int stride){\
85
    uint64_t temp[SIZE*SIZE/8] __align16;\
85
    DECLARE_ALIGNED_16(uint64_t, temp[SIZE*SIZE/8]);\
86 86
    uint8_t * const half= (uint8_t*)temp;\
87 87
    put_h264_qpel ## SIZE ## _h_lowpass_ ## CODETYPE(half, src, SIZE, stride);\
88 88
    OPNAME ## pixels ## SIZE ## _l2_ ## CODETYPE(dst, src+1, half, stride, stride, SIZE);\
89 89
}\
90 90
\
91 91
static void OPNAME ## h264_qpel ## SIZE ## _mc01_ ## CODETYPE(uint8_t *dst, uint8_t *src, int stride){\
92
    uint64_t temp[SIZE*SIZE/8] __align16;\
92
    DECLARE_ALIGNED_16(uint64_t, temp[SIZE*SIZE/8]);\
93 93
    uint8_t * const half= (uint8_t*)temp;\
94 94
    put_h264_qpel ## SIZE ## _v_lowpass_ ## CODETYPE(half, src, SIZE, stride);\
95 95
    OPNAME ## pixels ## SIZE ## _l2_ ## CODETYPE(dst, src, half, stride, stride, SIZE);\
......
100 100
}\
101 101
\
102 102
static void OPNAME ## h264_qpel ## SIZE ## _mc03_ ## CODETYPE(uint8_t *dst, uint8_t *src, int stride){\
103
    uint64_t temp[SIZE*SIZE/8] __align16;\
103
    DECLARE_ALIGNED_16(uint64_t, temp[SIZE*SIZE/8]);\
104 104
    uint8_t * const half= (uint8_t*)temp;\
105 105
    put_h264_qpel ## SIZE ## _v_lowpass_ ## CODETYPE(half, src, SIZE, stride);\
106 106
    OPNAME ## pixels ## SIZE ## _l2_ ## CODETYPE(dst, src+stride, half, stride, stride, SIZE);\
107 107
}\
108 108
\
109 109
static void OPNAME ## h264_qpel ## SIZE ## _mc11_ ## CODETYPE(uint8_t *dst, uint8_t *src, int stride){\
110
    uint64_t temp[SIZE*SIZE/4] __align16;\
110
    DECLARE_ALIGNED_16(uint64_t, temp[SIZE*SIZE/4]);\
111 111
    uint8_t * const halfH= (uint8_t*)temp;\
112 112
    uint8_t * const halfV= ((uint8_t*)temp) + SIZE*SIZE;\
113 113
    put_h264_qpel ## SIZE ## _h_lowpass_ ## CODETYPE(halfH, src, SIZE, stride);\
......
116 116
}\
117 117
\
118 118
static void OPNAME ## h264_qpel ## SIZE ## _mc31_ ## CODETYPE(uint8_t *dst, uint8_t *src, int stride){\
119
    uint64_t temp[SIZE*SIZE/4] __align16;\
119
    DECLARE_ALIGNED_16(uint64_t, temp[SIZE*SIZE/4]);\
120 120
    uint8_t * const halfH= (uint8_t*)temp;\
121 121
    uint8_t * const halfV= ((uint8_t*)temp) + SIZE*SIZE;\
122 122
    put_h264_qpel ## SIZE ## _h_lowpass_ ## CODETYPE(halfH, src, SIZE, stride);\
......
125 125
}\
126 126
\
127 127
static void OPNAME ## h264_qpel ## SIZE ## _mc13_ ## CODETYPE(uint8_t *dst, uint8_t *src, int stride){\
128
    uint64_t temp[SIZE*SIZE/4] __align16;\
128
    DECLARE_ALIGNED_16(uint64_t, temp[SIZE*SIZE/4]);\
129 129
    uint8_t * const halfH= (uint8_t*)temp;\
130 130
    uint8_t * const halfV= ((uint8_t*)temp) + SIZE*SIZE;\
131 131
    put_h264_qpel ## SIZE ## _h_lowpass_ ## CODETYPE(halfH, src + stride, SIZE, stride);\
......
134 134
}\
135 135
\
136 136
static void OPNAME ## h264_qpel ## SIZE ## _mc33_ ## CODETYPE(uint8_t *dst, uint8_t *src, int stride){\
137
    uint64_t temp[SIZE*SIZE/4] __align16;\
137
    DECLARE_ALIGNED_16(uint64_t, temp[SIZE*SIZE/4]);\
138 138
    uint8_t * const halfH= (uint8_t*)temp;\
139 139
    uint8_t * const halfV= ((uint8_t*)temp) + SIZE*SIZE;\
140 140
    put_h264_qpel ## SIZE ## _h_lowpass_ ## CODETYPE(halfH, src + stride, SIZE, stride);\
......
143 143
}\
144 144
\
145 145
static void OPNAME ## h264_qpel ## SIZE ## _mc22_ ## CODETYPE(uint8_t *dst, uint8_t *src, int stride){\
146
    uint64_t temp[SIZE*(SIZE+8)/4] __align16;\
146
    DECLARE_ALIGNED_16(uint64_t, temp[SIZE*(SIZE+8)/4]);\
147 147
    int16_t * const tmp= (int16_t*)temp;\
148 148
    OPNAME ## h264_qpel ## SIZE ## _hv_lowpass_ ## CODETYPE(dst, tmp, src, stride, SIZE, stride);\
149 149
}\
150 150
\
151 151
static void OPNAME ## h264_qpel ## SIZE ## _mc21_ ## CODETYPE(uint8_t *dst, uint8_t *src, int stride){\
152
    uint64_t temp[SIZE*(SIZE+8)/4 + SIZE*SIZE/4] __align16;\
152
    DECLARE_ALIGNED_16(uint64_t, temp[SIZE*(SIZE+8)/4 + SIZE*SIZE/4]);\
153 153
    uint8_t * const halfH= (uint8_t*)temp;\
154 154
    uint8_t * const halfHV= ((uint8_t*)temp) + SIZE*SIZE;\
155 155
    int16_t * const tmp= ((int16_t*)temp) + SIZE*SIZE;\
......
159 159
}\
160 160
\
161 161
static void OPNAME ## h264_qpel ## SIZE ## _mc23_ ## CODETYPE(uint8_t *dst, uint8_t *src, int stride){\
162
    uint64_t temp[SIZE*(SIZE+8)/4 + SIZE*SIZE/4] __align16;\
162
    DECLARE_ALIGNED_16(uint64_t, temp[SIZE*(SIZE+8)/4 + SIZE*SIZE/4]);\
163 163
    uint8_t * const halfH= (uint8_t*)temp;\
164 164
    uint8_t * const halfHV= ((uint8_t*)temp) + SIZE*SIZE;\
165 165
    int16_t * const tmp= ((int16_t*)temp) + SIZE*SIZE;\
......
169 169
}\
170 170
\
171 171
static void OPNAME ## h264_qpel ## SIZE ## _mc12_ ## CODETYPE(uint8_t *dst, uint8_t *src, int stride){\
172
    uint64_t temp[SIZE*(SIZE+8)/4 + SIZE*SIZE/4] __align16;\
172
    DECLARE_ALIGNED_16(uint64_t, temp[SIZE*(SIZE+8)/4 + SIZE*SIZE/4]);\
173 173
    uint8_t * const halfV= (uint8_t*)temp;\
174 174
    uint8_t * const halfHV= ((uint8_t*)temp) + SIZE*SIZE;\
175 175
    int16_t * const tmp= ((int16_t*)temp) + SIZE*SIZE;\
......
179 179
}\
180 180
\
181 181
static void OPNAME ## h264_qpel ## SIZE ## _mc32_ ## CODETYPE(uint8_t *dst, uint8_t *src, int stride){\
182
    uint64_t temp[SIZE*(SIZE+8)/4 + SIZE*SIZE/4] __align16;\
182
    DECLARE_ALIGNED_16(uint64_t, temp[SIZE*(SIZE+8)/4 + SIZE*SIZE/4]);\
183 183
    uint8_t * const halfV= (uint8_t*)temp;\
184 184
    uint8_t * const halfHV= ((uint8_t*)temp) + SIZE*SIZE;\
185 185
    int16_t * const tmp= ((int16_t*)temp) + SIZE*SIZE;\

Also available in: Unified diff