53 |
INTERPOLATE8X8_6TAP_LOWPASS_PTR interpolate8x8_6tap_lowpass_h; |
INTERPOLATE8X8_6TAP_LOWPASS_PTR interpolate8x8_6tap_lowpass_h; |
54 |
INTERPOLATE8X8_6TAP_LOWPASS_PTR interpolate8x8_6tap_lowpass_v; |
INTERPOLATE8X8_6TAP_LOWPASS_PTR interpolate8x8_6tap_lowpass_v; |
55 |
|
|
56 |
void interpolate8x8_avg2_c(uint8_t *dst, const uint8_t *src1, const uint8_t *src2, const uint32_t stride, const uint32_t rounding) |
void interpolate8x8_avg2_c(uint8_t *dst, const uint8_t *src1, const uint8_t *src2, const uint32_t stride, const uint32_t rounding, const uint32_t height) |
57 |
{ |
{ |
58 |
int32_t i; |
uint32_t i; |
59 |
const int32_t round = 1 - rounding; |
const int32_t round = 1 - rounding; |
60 |
|
|
61 |
for(i = 0; i < 9; i++) |
for(i = 0; i < height; i++) |
62 |
{ |
{ |
63 |
dst[0] = (src1[0] + src2[0] + round) >> 1; |
dst[0] = (src1[0] + src2[0] + round) >> 1; |
64 |
dst[1] = (src1[1] + src2[1] + round) >> 1; |
dst[1] = (src1[1] + src2[1] + round) >> 1; |