提交 e399c697 authored 作者: Steve Underwood's avatar Steve Underwood

Fixed a typo in the fixed point image translate code

上级 fabd6337
......@@ -464,7 +464,7 @@ static int image_resize_row(image_translate_state_t *s, uint8_t buf[])
x = i*256*input_width/output_width;
frac_col = x & 0xFF;
x >>= 8;
c1 = row16[0][x] + (((row16[0][x + 1] - row16[0[x])*frac_col) >> 8);
c1 = row16[0][x] + (((row16[0][x + 1] - row16[0][x])*frac_col) >> 8);
c2 = row16[1][x] + (((row16[1][x + 1] - row16[1][x])*frac_col) >> 8);
buf[i] = saturateu8(c1 + (((c2 - c1)*frac_row) >> 8));
#else
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论