156 |
const uint32_t rounding) |
const uint32_t rounding) |
157 |
{ |
{ |
158 |
|
|
159 |
const uint8_t * const src = refn + (y + (dy>>1)) * stride + x + (dx>>1); |
const uint8_t * const src = refn + (int)((y + (dy>>1)) * stride + x + (dx>>1)); |
160 |
uint8_t * const dst = cur + y * stride + x; |
uint8_t * const dst = cur + (int)(y * stride + x); |
161 |
|
|
162 |
switch (((dx & 1) << 1) + (dy & 1)) { /* ((dx%2)?2:0)+((dy%2)?1:0) */ |
switch (((dx & 1) << 1) + (dy & 1)) { /* ((dx%2)?2:0)+((dy%2)?1:0) */ |
163 |
case 0: |
case 0: |
221 |
const uint32_t rounding) |
const uint32_t rounding) |
222 |
{ |
{ |
223 |
|
|
224 |
const uint8_t * const src = refn + (y + (dy>>1)) * stride + x + (dx>>1); |
const uint8_t * const src = refn + (int)((y + (dy>>1)) * stride + x + (dx>>1)); |
225 |
|
|
226 |
switch (((dx & 1) << 1) + (dy & 1)) { /* ((dx%2)?2:0)+((dy%2)?1:0) */ |
switch (((dx & 1) << 1) + (dy & 1)) { /* ((dx%2)?2:0)+((dy%2)?1:0) */ |
227 |
case 0: |
case 0: |