Unified · Split
| @@ -165,8 +165,8 @@ static void filter16_roberts(uint8_t *dstp, const uint8_t *src, int width, · 164 unmodified lines | ||
| 165 | 165 | int x; |
| 166 | 166 | |
| 167 | 167 | for (x = 0; x < width; x++) { |
| 168 | − int suma = AV_RN16A(&c[0][2 * x]) * 1 + AV_RN16A(&c[4][2 * x]) * -1; | |
| 169 | − int sumb = AV_RN16A(&c[1][2 * x]) * 1 + AV_RN16A(&c[3][2 * x]) * -1; | |
| 168 | + int suma = AV_RN16A(&c[0][2 * x]) * 1 + AV_RN16A(&c[1][2 * x]) * -1; | |
| 169 | + int sumb = AV_RN16A(&c[4][2 * x]) * 1 + AV_RN16A(&c[3][2 * x]) * -1; | |
| 170 | 170 | |
| 171 | 171 | dst[x] = av_clip(sqrt(suma*suma + sumb*sumb) * scale + delta, 0, peak); |
| 172 | 172 | } |
| @@ -215,8 +215,8 @@ static void filter_roberts(uint8_t *dst, const uint8_t *src, int width, · 42 unmodified lines | ||
| 215 | 215 | int x; |
| 216 | 216 | |
| 217 | 217 | for (x = 0; x < width; x++) { |
| 218 | − int suma = c[0][x - 1] * 1 + c[4][x ] * -1; | |
| 219 | − int sumb = c[1][x ] * 1 + c[3][x - 1] * -1; | |
| 218 | + int suma = c[0][x] * 1 + c[1][x] * -1; | |
| 219 | + int sumb = c[4][x] * 1 + c[3][x] * -1; | |
| 220 | 220 | |
| 221 | 221 | dst[x] = av_clip_uint8(sqrt(suma*suma + sumb*sumb) * scale + delta); |
| 222 | 222 | } |