| @@ -73,7 +73,7 @@ static void OPNAME ## h264_qpel ## SIZE ## _mc00_ ## CODETYPE (uint8_t *dst, con · 72 unmodified lines |
| 73 | \ | 73 | \ |
| 74 | static void OPNAME ## h264_qpel ## SIZE ## _mc10_ ## CODETYPE(uint8_t *dst, const uint8_t *src, ptrdiff_t stride)\ | 74 | static void OPNAME ## h264_qpel ## SIZE ## _mc10_ ## CODETYPE(uint8_t *dst, const uint8_t *src, ptrdiff_t stride)\ |
| 75 | { \ | 75 | { \ |
| 76 | LOCAL_ALIGNED(16, uint8_t, half, [SIZE*SIZE]);\ | 76 | DECLARE_ALIGNED(16, uint8_t, half)[SIZE*SIZE];\ |
| 77 | put_h264_qpel ## SIZE ## _h_lowpass_ ## CODETYPE(half, src, SIZE, stride);\ | 77 | put_h264_qpel ## SIZE ## _h_lowpass_ ## CODETYPE(half, src, SIZE, stride);\ |
| 78 | OPNAME ## pixels ## SIZE ## _l2_ ## CODETYPE(dst, src, half, stride, stride, SIZE);\ | 78 | OPNAME ## pixels ## SIZE ## _l2_ ## CODETYPE(dst, src, half, stride, stride, SIZE);\ |
| 79 | }\ | 79 | }\ |
| @@ -85,14 +85,14 @@ static void OPNAME ## h264_qpel ## SIZE ## _mc20_ ## CODETYPE(uint8_t *dst, cons · 5 unmodified lines |
| 85 | \ | 85 | \ |
| 86 | static void OPNAME ## h264_qpel ## SIZE ## _mc30_ ## CODETYPE(uint8_t *dst, const uint8_t *src, ptrdiff_t stride)\ | 86 | static void OPNAME ## h264_qpel ## SIZE ## _mc30_ ## CODETYPE(uint8_t *dst, const uint8_t *src, ptrdiff_t stride)\ |
| 87 | {\ | 87 | {\ |
| 88 | LOCAL_ALIGNED(16, uint8_t, half, [SIZE*SIZE]);\ | 88 | DECLARE_ALIGNED(16, uint8_t, half)[SIZE*SIZE];\ |
| 89 | put_h264_qpel ## SIZE ## _h_lowpass_ ## CODETYPE(half, src, SIZE, stride);\ | 89 | put_h264_qpel ## SIZE ## _h_lowpass_ ## CODETYPE(half, src, SIZE, stride);\ |
| 90 | OPNAME ## pixels ## SIZE ## _l2_ ## CODETYPE(dst, src+1, half, stride, stride, SIZE);\ | 90 | OPNAME ## pixels ## SIZE ## _l2_ ## CODETYPE(dst, src+1, half, stride, stride, SIZE);\ |
| 91 | }\ | 91 | }\ |
| 92 | \ | 92 | \ |
| 93 | static void OPNAME ## h264_qpel ## SIZE ## _mc01_ ## CODETYPE(uint8_t *dst, const uint8_t *src, ptrdiff_t stride)\ | 93 | static void OPNAME ## h264_qpel ## SIZE ## _mc01_ ## CODETYPE(uint8_t *dst, const uint8_t *src, ptrdiff_t stride)\ |
| 94 | {\ | 94 | {\ |
| 95 | LOCAL_ALIGNED(16, uint8_t, half, [SIZE*SIZE]);\ | 95 | DECLARE_ALIGNED(16, uint8_t, half)[SIZE*SIZE];\ |
| 96 | put_h264_qpel ## SIZE ## _v_lowpass_ ## CODETYPE(half, src, SIZE, stride);\ | 96 | put_h264_qpel ## SIZE ## _v_lowpass_ ## CODETYPE(half, src, SIZE, stride);\ |
| 97 | OPNAME ## pixels ## SIZE ## _l2_ ## CODETYPE(dst, src, half, stride, stride, SIZE);\ | 97 | OPNAME ## pixels ## SIZE ## _l2_ ## CODETYPE(dst, src, half, stride, stride, SIZE);\ |
| 98 | }\ | 98 | }\ |
| @@ -104,15 +104,15 @@ static void OPNAME ## h264_qpel ## SIZE ## _mc02_ ## CODETYPE(uint8_t *dst, cons · 5 unmodified lines |
| 104 | \ | 104 | \ |
| 105 | static void OPNAME ## h264_qpel ## SIZE ## _mc03_ ## CODETYPE(uint8_t *dst, const uint8_t *src, ptrdiff_t stride)\ | 105 | static void OPNAME ## h264_qpel ## SIZE ## _mc03_ ## CODETYPE(uint8_t *dst, const uint8_t *src, ptrdiff_t stride)\ |
| 106 | {\ | 106 | {\ |
| 107 | LOCAL_ALIGNED(16, uint8_t, half, [SIZE*SIZE]);\ | 107 | DECLARE_ALIGNED(16, uint8_t, half)[SIZE*SIZE];\ |
| 108 | put_h264_qpel ## SIZE ## _v_lowpass_ ## CODETYPE(half, src, SIZE, stride);\ | 108 | put_h264_qpel ## SIZE ## _v_lowpass_ ## CODETYPE(half, src, SIZE, stride);\ |
| 109 | OPNAME ## pixels ## SIZE ## _l2_ ## CODETYPE(dst, src+stride, half, stride, stride, SIZE);\ | 109 | OPNAME ## pixels ## SIZE ## _l2_ ## CODETYPE(dst, src+stride, half, stride, stride, SIZE);\ |
| 110 | }\ | 110 | }\ |
| 111 | \ | 111 | \ |
| 112 | static void OPNAME ## h264_qpel ## SIZE ## _mc11_ ## CODETYPE(uint8_t *dst, const uint8_t *src, ptrdiff_t stride)\ | 112 | static void OPNAME ## h264_qpel ## SIZE ## _mc11_ ## CODETYPE(uint8_t *dst, const uint8_t *src, ptrdiff_t stride)\ |
| 113 | {\ | 113 | {\ |
| 114 | LOCAL_ALIGNED(16, uint8_t, halfH, [SIZE*SIZE]);\ | 114 | DECLARE_ALIGNED(16, uint8_t, halfH)[SIZE*SIZE];\ |
| 115 | LOCAL_ALIGNED(16, uint8_t, halfV, [SIZE*SIZE]);\ | 115 | DECLARE_ALIGNED(16, uint8_t, halfV)[SIZE*SIZE];\ |
| 116 | put_h264_qpel ## SIZE ## _h_lowpass_ ## CODETYPE(halfH, src, SIZE, stride);\ | 116 | put_h264_qpel ## SIZE ## _h_lowpass_ ## CODETYPE(halfH, src, SIZE, stride);\ |
| 117 | put_h264_qpel ## SIZE ## _v_lowpass_ ## CODETYPE(halfV, src, SIZE, stride);\ | 117 | put_h264_qpel ## SIZE ## _v_lowpass_ ## CODETYPE(halfV, src, SIZE, stride);\ |
| 118 | OPNAME ## pixels ## SIZE ## _l2_ ## CODETYPE(dst, halfH, halfV, stride, SIZE, SIZE);\ | 118 | OPNAME ## pixels ## SIZE ## _l2_ ## CODETYPE(dst, halfH, halfV, stride, SIZE, SIZE);\ |
| @@ -120,8 +120,8 @@ static void OPNAME ## h264_qpel ## SIZE ## _mc11_ ## CODETYPE(uint8_t *dst, cons · 1 unmodified line |
| 120 | \ | 120 | \ |
| 121 | static void OPNAME ## h264_qpel ## SIZE ## _mc31_ ## CODETYPE(uint8_t *dst, const uint8_t *src, ptrdiff_t stride)\ | 121 | static void OPNAME ## h264_qpel ## SIZE ## _mc31_ ## CODETYPE(uint8_t *dst, const uint8_t *src, ptrdiff_t stride)\ |
| 122 | {\ | 122 | {\ |
| 123 | LOCAL_ALIGNED(16, uint8_t, halfH, [SIZE*SIZE]);\ | 123 | DECLARE_ALIGNED(16, uint8_t, halfH)[SIZE*SIZE];\ |
| 124 | LOCAL_ALIGNED(16, uint8_t, halfV, [SIZE*SIZE]);\ | 124 | DECLARE_ALIGNED(16, uint8_t, halfV)[SIZE*SIZE];\ |
| 125 | put_h264_qpel ## SIZE ## _h_lowpass_ ## CODETYPE(halfH, src, SIZE, stride);\ | 125 | put_h264_qpel ## SIZE ## _h_lowpass_ ## CODETYPE(halfH, src, SIZE, stride);\ |
| 126 | put_h264_qpel ## SIZE ## _v_lowpass_ ## CODETYPE(halfV, src+1, SIZE, stride);\ | 126 | put_h264_qpel ## SIZE ## _v_lowpass_ ## CODETYPE(halfV, src+1, SIZE, stride);\ |
| 127 | OPNAME ## pixels ## SIZE ## _l2_ ## CODETYPE(dst, halfH, halfV, stride, SIZE, SIZE);\ | 127 | OPNAME ## pixels ## SIZE ## _l2_ ## CODETYPE(dst, halfH, halfV, stride, SIZE, SIZE);\ |
| @@ -129,8 +129,8 @@ static void OPNAME ## h264_qpel ## SIZE ## _mc31_ ## CODETYPE(uint8_t *dst, cons · 1 unmodified line |
| 129 | \ | 129 | \ |
| 130 | static void OPNAME ## h264_qpel ## SIZE ## _mc13_ ## CODETYPE(uint8_t *dst, const uint8_t *src, ptrdiff_t stride)\ | 130 | static void OPNAME ## h264_qpel ## SIZE ## _mc13_ ## CODETYPE(uint8_t *dst, const uint8_t *src, ptrdiff_t stride)\ |
| 131 | {\ | 131 | {\ |
| 132 | LOCAL_ALIGNED(16, uint8_t, halfH, [SIZE*SIZE]);\ | 132 | DECLARE_ALIGNED(16, uint8_t, halfH)[SIZE*SIZE];\ |
| 133 | LOCAL_ALIGNED(16, uint8_t, halfV, [SIZE*SIZE]);\ | 133 | DECLARE_ALIGNED(16, uint8_t, halfV)[SIZE*SIZE];\ |
| 134 | put_h264_qpel ## SIZE ## _h_lowpass_ ## CODETYPE(halfH, src + stride, SIZE, stride);\ | 134 | put_h264_qpel ## SIZE ## _h_lowpass_ ## CODETYPE(halfH, src + stride, SIZE, stride);\ |
| 135 | put_h264_qpel ## SIZE ## _v_lowpass_ ## CODETYPE(halfV, src, SIZE, stride);\ | 135 | put_h264_qpel ## SIZE ## _v_lowpass_ ## CODETYPE(halfV, src, SIZE, stride);\ |
| 136 | OPNAME ## pixels ## SIZE ## _l2_ ## CODETYPE(dst, halfH, halfV, stride, SIZE, SIZE);\ | 136 | OPNAME ## pixels ## SIZE ## _l2_ ## CODETYPE(dst, halfH, halfV, stride, SIZE, SIZE);\ |
| @@ -138,8 +138,8 @@ static void OPNAME ## h264_qpel ## SIZE ## _mc13_ ## CODETYPE(uint8_t *dst, cons · 1 unmodified line |
| 138 | \ | 138 | \ |
| 139 | static void OPNAME ## h264_qpel ## SIZE ## _mc33_ ## CODETYPE(uint8_t *dst, const uint8_t *src, ptrdiff_t stride)\ | 139 | static void OPNAME ## h264_qpel ## SIZE ## _mc33_ ## CODETYPE(uint8_t *dst, const uint8_t *src, ptrdiff_t stride)\ |
| 140 | {\ | 140 | {\ |
| 141 | LOCAL_ALIGNED(16, uint8_t, halfH, [SIZE*SIZE]);\ | 141 | DECLARE_ALIGNED(16, uint8_t, halfH)[SIZE*SIZE];\ |
| 142 | LOCAL_ALIGNED(16, uint8_t, halfV, [SIZE*SIZE]);\ | 142 | DECLARE_ALIGNED(16, uint8_t, halfV)[SIZE*SIZE];\ |
| 143 | put_h264_qpel ## SIZE ## _h_lowpass_ ## CODETYPE(halfH, src + stride, SIZE, stride);\ | 143 | put_h264_qpel ## SIZE ## _h_lowpass_ ## CODETYPE(halfH, src + stride, SIZE, stride);\ |
| 144 | put_h264_qpel ## SIZE ## _v_lowpass_ ## CODETYPE(halfV, src+1, SIZE, stride);\ | 144 | put_h264_qpel ## SIZE ## _v_lowpass_ ## CODETYPE(halfV, src+1, SIZE, stride);\ |
| 145 | OPNAME ## pixels ## SIZE ## _l2_ ## CODETYPE(dst, halfH, halfV, stride, SIZE, SIZE);\ | 145 | OPNAME ## pixels ## SIZE ## _l2_ ## CODETYPE(dst, halfH, halfV, stride, SIZE, SIZE);\ |
| @@ -147,15 +147,15 @@ static void OPNAME ## h264_qpel ## SIZE ## _mc33_ ## CODETYPE(uint8_t *dst, cons · 1 unmodified line |
| 147 | \ | 147 | \ |
| 148 | static void OPNAME ## h264_qpel ## SIZE ## _mc22_ ## CODETYPE(uint8_t *dst, const uint8_t *src, ptrdiff_t stride)\ | 148 | static void OPNAME ## h264_qpel ## SIZE ## _mc22_ ## CODETYPE(uint8_t *dst, const uint8_t *src, ptrdiff_t stride)\ |
| 149 | {\ | 149 | {\ |
| 150 | LOCAL_ALIGNED(16, int16_t, tmp, [SIZE*(SIZE+8)]);\ | 150 | DECLARE_ALIGNED(16, int16_t, tmp)[SIZE*(SIZE+8)];\ |
| 151 | OPNAME ## h264_qpel ## SIZE ## _hv_lowpass_ ## CODETYPE(dst, tmp, src, stride, SIZE, stride);\ | 151 | OPNAME ## h264_qpel ## SIZE ## _hv_lowpass_ ## CODETYPE(dst, tmp, src, stride, SIZE, stride);\ |
| 152 | }\ | 152 | }\ |
| 153 | \ | 153 | \ |
| 154 | static void OPNAME ## h264_qpel ## SIZE ## _mc21_ ## CODETYPE(uint8_t *dst, const uint8_t *src, ptrdiff_t stride)\ | 154 | static void OPNAME ## h264_qpel ## SIZE ## _mc21_ ## CODETYPE(uint8_t *dst, const uint8_t *src, ptrdiff_t stride)\ |
| 155 | {\ | 155 | {\ |
| 156 | LOCAL_ALIGNED(16, uint8_t, halfH, [SIZE*SIZE]);\ | 156 | DECLARE_ALIGNED(16, uint8_t, halfH)[SIZE*SIZE];\ |
| 157 | LOCAL_ALIGNED(16, uint8_t, halfHV, [SIZE*SIZE]);\ | 157 | DECLARE_ALIGNED(16, uint8_t, halfHV)[SIZE*SIZE];\ |
| 158 | LOCAL_ALIGNED(16, int16_t, tmp, [SIZE*(SIZE+8)]);\ | 158 | DECLARE_ALIGNED(16, int16_t, tmp)[SIZE*(SIZE+8)];\ |
| 159 | put_h264_qpel ## SIZE ## _h_lowpass_ ## CODETYPE(halfH, src, SIZE, stride);\ | 159 | put_h264_qpel ## SIZE ## _h_lowpass_ ## CODETYPE(halfH, src, SIZE, stride);\ |
| 160 | put_h264_qpel ## SIZE ## _hv_lowpass_ ## CODETYPE(halfHV, tmp, src, SIZE, SIZE, stride);\ | 160 | put_h264_qpel ## SIZE ## _hv_lowpass_ ## CODETYPE(halfHV, tmp, src, SIZE, SIZE, stride);\ |
| 161 | OPNAME ## pixels ## SIZE ## _l2_ ## CODETYPE(dst, halfH, halfHV, stride, SIZE, SIZE);\ | 161 | OPNAME ## pixels ## SIZE ## _l2_ ## CODETYPE(dst, halfH, halfHV, stride, SIZE, SIZE);\ |
| @@ -163,9 +163,9 @@ static void OPNAME ## h264_qpel ## SIZE ## _mc21_ ## CODETYPE(uint8_t *dst, cons · 1 unmodified line |
| 163 | \ | 163 | \ |
| 164 | static void OPNAME ## h264_qpel ## SIZE ## _mc23_ ## CODETYPE(uint8_t *dst, const uint8_t *src, ptrdiff_t stride)\ | 164 | static void OPNAME ## h264_qpel ## SIZE ## _mc23_ ## CODETYPE(uint8_t *dst, const uint8_t *src, ptrdiff_t stride)\ |
| 165 | {\ | 165 | {\ |
| 166 | LOCAL_ALIGNED(16, uint8_t, halfH, [SIZE*SIZE]);\ | 166 | DECLARE_ALIGNED(16, uint8_t, halfH)[SIZE*SIZE];\ |
| 167 | LOCAL_ALIGNED(16, uint8_t, halfHV, [SIZE*SIZE]);\ | 167 | DECLARE_ALIGNED(16, uint8_t, halfHV)[SIZE*SIZE];\ |
| 168 | LOCAL_ALIGNED(16, int16_t, tmp, [SIZE*(SIZE+8)]);\ | 168 | DECLARE_ALIGNED(16, int16_t, tmp)[SIZE*(SIZE+8)];\ |
| 169 | put_h264_qpel ## SIZE ## _h_lowpass_ ## CODETYPE(halfH, src + stride, SIZE, stride);\ | 169 | put_h264_qpel ## SIZE ## _h_lowpass_ ## CODETYPE(halfH, src + stride, SIZE, stride);\ |
| 170 | put_h264_qpel ## SIZE ## _hv_lowpass_ ## CODETYPE(halfHV, tmp, src, SIZE, SIZE, stride);\ | 170 | put_h264_qpel ## SIZE ## _hv_lowpass_ ## CODETYPE(halfHV, tmp, src, SIZE, SIZE, stride);\ |
| 171 | OPNAME ## pixels ## SIZE ## _l2_ ## CODETYPE(dst, halfH, halfHV, stride, SIZE, SIZE);\ | 171 | OPNAME ## pixels ## SIZE ## _l2_ ## CODETYPE(dst, halfH, halfHV, stride, SIZE, SIZE);\ |
| @@ -173,9 +173,9 @@ static void OPNAME ## h264_qpel ## SIZE ## _mc23_ ## CODETYPE(uint8_t *dst, cons · 1 unmodified line |
| 173 | \ | 173 | \ |
| 174 | static void OPNAME ## h264_qpel ## SIZE ## _mc12_ ## CODETYPE(uint8_t *dst, const uint8_t *src, ptrdiff_t stride)\ | 174 | static void OPNAME ## h264_qpel ## SIZE ## _mc12_ ## CODETYPE(uint8_t *dst, const uint8_t *src, ptrdiff_t stride)\ |
| 175 | {\ | 175 | {\ |
| 176 | LOCAL_ALIGNED(16, uint8_t, halfH, [SIZE*SIZE]);\ | 176 | DECLARE_ALIGNED(16, uint8_t, halfV)[SIZE*SIZE];\ |
| 177 | LOCAL_ALIGNED(16, uint8_t, halfHV, [SIZE*SIZE]);\ | 177 | DECLARE_ALIGNED(16, uint8_t, halfHV)[SIZE*SIZE];\ |
| 178 | LOCAL_ALIGNED(16, int16_t, tmp, [SIZE*(SIZE+8)]);\ | 178 | DECLARE_ALIGNED(16, int16_t, tmp)[SIZE*(SIZE+8)];\ |
| 179 | put_h264_qpel ## SIZE ## _v_lowpass_ ## CODETYPE(halfV, src, SIZE, stride);\ | 179 | put_h264_qpel ## SIZE ## _v_lowpass_ ## CODETYPE(halfV, src, SIZE, stride);\ |
| 180 | put_h264_qpel ## SIZE ## _hv_lowpass_ ## CODETYPE(halfHV, tmp, src, SIZE, SIZE, stride);\ | 180 | put_h264_qpel ## SIZE ## _hv_lowpass_ ## CODETYPE(halfHV, tmp, src, SIZE, SIZE, stride);\ |
| 181 | OPNAME ## pixels ## SIZE ## _l2_ ## CODETYPE(dst, halfV, halfHV, stride, SIZE, SIZE);\ | 181 | OPNAME ## pixels ## SIZE ## _l2_ ## CODETYPE(dst, halfV, halfHV, stride, SIZE, SIZE);\ |
| @@ -183,9 +183,9 @@ static void OPNAME ## h264_qpel ## SIZE ## _mc12_ ## CODETYPE(uint8_t *dst, cons · 1 unmodified line |
| 183 | \ | 183 | \ |
| 184 | static void OPNAME ## h264_qpel ## SIZE ## _mc32_ ## CODETYPE(uint8_t *dst, const uint8_t *src, ptrdiff_t stride)\ | 184 | static void OPNAME ## h264_qpel ## SIZE ## _mc32_ ## CODETYPE(uint8_t *dst, const uint8_t *src, ptrdiff_t stride)\ |
| 185 | {\ | 185 | {\ |
| 186 | LOCAL_ALIGNED(16, uint8_t, halfH, [SIZE*SIZE]);\ | 186 | DECLARE_ALIGNED(16, uint8_t, halfV)[SIZE*SIZE];\ |
| 187 | LOCAL_ALIGNED(16, uint8_t, halfHV, [SIZE*SIZE]);\ | 187 | DECLARE_ALIGNED(16, uint8_t, halfHV)[SIZE*SIZE];\ |
| 188 | LOCAL_ALIGNED(16, int16_t, tmp, [SIZE*(SIZE+8)]);\ | 188 | DECLARE_ALIGNED(16, int16_t, tmp)[SIZE*(SIZE+8)];\ |
| 189 | put_h264_qpel ## SIZE ## _v_lowpass_ ## CODETYPE(halfV, src+1, SIZE, stride);\ | 189 | put_h264_qpel ## SIZE ## _v_lowpass_ ## CODETYPE(halfV, src+1, SIZE, stride);\ |
| 190 | put_h264_qpel ## SIZE ## _hv_lowpass_ ## CODETYPE(halfHV, tmp, src, SIZE, SIZE, stride);\ | 190 | put_h264_qpel ## SIZE ## _hv_lowpass_ ## CODETYPE(halfHV, tmp, src, SIZE, SIZE, stride);\ |
| 191 | OPNAME ## pixels ## SIZE ## _l2_ ## CODETYPE(dst, halfV, halfHV, stride, SIZE, SIZE);\ | 191 | OPNAME ## pixels ## SIZE ## _l2_ ## CODETYPE(dst, halfV, halfHV, stride, SIZE, SIZE);\ |