Commit 3e04114f authored by Jim Bankoski's avatar Jim Bankoski
Browse files

prepend ++ instead of post in for loops.

Applied the following regex  :
search for: (for.*\(.*;.*;) ([a-zA-Z_]*)\+\+\)
replace with: \1 ++\2)

This misses some for loops:
ie : for (mb_col = 0; mb_col < oci->mb_cols; mb_col++, mi++)

Change-Id: Icf5f6fb93cced0992e0bb71d2241780f7fb1f0a8
parent 106a8a15
......@@ -19,7 +19,7 @@
void vp8_de_alloc_frame_buffers(VP8_COMMON *oci) {
int i;
for (i = 0; i < NUM_YV12_BUFFERS; i++)
for (i = 0; i < NUM_YV12_BUFFERS; ++i)
vp8_yv12_de_alloc_frame_buffer(&oci->yv12_fb[i]);
vp8_yv12_de_alloc_frame_buffer(&oci->temp_scale_frame);
......@@ -56,7 +56,7 @@ int vp8_alloc_frame_buffers(VP8_COMMON *oci, int width, int height) {
if ((height & 0xf) != 0) height += 16 - (height & 0xf);
for (i = 0; i < NUM_YV12_BUFFERS; i++) {
for (i = 0; i < NUM_YV12_BUFFERS; ++i) {
oci->fb_idx_ref_cnt[i] = 0;
oci->yv12_fb[i].flags = 0;
if (vp8_yv12_alloc_frame_buffer(&oci->yv12_fb[i], width, height,
......
......@@ -15,7 +15,7 @@ void vp8_dequant_idct_add_y_block_v6(short *q, short *dq, unsigned char *dst,
int stride, char *eobs) {
int i;
for (i = 0; i < 4; i++) {
for (i = 0; i < 4; ++i) {
if (eobs[0] > 1)
vp8_dequant_idct_add_v6(q, dq, dst, stride);
else if (eobs[0] == 1) {
......@@ -56,7 +56,7 @@ void vp8_dequant_idct_add_uv_block_v6(short *q, short *dq, unsigned char *dstu,
char *eobs) {
int i;
for (i = 0; i < 2; i++) {
for (i = 0; i < 2; ++i) {
if (eobs[0] > 1)
vp8_dequant_idct_add_v6(q, dq, dstu, stride);
else if (eobs[0] == 1) {
......@@ -77,7 +77,7 @@ void vp8_dequant_idct_add_uv_block_v6(short *q, short *dq, unsigned char *dstu,
eobs += 2;
}
for (i = 0; i < 2; i++) {
for (i = 0; i < 2; ++i) {
if (eobs[0] > 1)
vp8_dequant_idct_add_v6(q, dq, dstv, stride);
else if (eobs[0] == 1) {
......
......@@ -15,7 +15,7 @@ void vp8_copy_mem8x4_neon(unsigned char *src, int src_stride,
uint8x8_t vtmp;
int r;
for (r = 0; r < 4; r++) {
for (r = 0; r < 4; ++r) {
vtmp = vld1_u8(src);
vst1_u8(dst, vtmp);
src += src_stride;
......@@ -28,7 +28,7 @@ void vp8_copy_mem8x8_neon(unsigned char *src, int src_stride,
uint8x8_t vtmp;
int r;
for (r = 0; r < 8; r++) {
for (r = 0; r < 8; ++r) {
vtmp = vld1_u8(src);
vst1_u8(dst, vtmp);
src += src_stride;
......@@ -41,7 +41,7 @@ void vp8_copy_mem16x16_neon(unsigned char *src, int src_stride,
int r;
uint8x16_t qtmp;
for (r = 0; r < 16; r++) {
for (r = 0; r < 16; ++r) {
qtmp = vld1q_u8(src);
vst1q_u8(dst, qtmp);
src += src_stride;
......
......@@ -22,7 +22,7 @@ void vp8_dc_only_idct_add_neon(int16_t input_dc, unsigned char *pred_ptr,
qAdd = vdupq_n_u16(a1);
for (i = 0; i < 2; i++) {
for (i = 0; i < 2; ++i) {
d2u32 = vld1_lane_u32((const uint32_t *)pred_ptr, d2u32, 0);
pred_ptr += pred_stride;
d2u32 = vld1_lane_u32((const uint32_t *)pred_ptr, d2u32, 1);
......
......@@ -22,7 +22,7 @@ void vp8_dequant_idct_add_y_block_neon(short *q, short *dq, unsigned char *dst,
int stride, char *eobs) {
int i;
for (i = 0; i < 4; i++) {
for (i = 0; i < 4; ++i) {
if (((short *)(eobs))[0]) {
if (((short *)eobs)[0] & 0xfefe)
idct_dequant_full_2x_neon(q, dq, dst, stride);
......
......@@ -924,7 +924,7 @@ void vp8_sixtap_predict16x16_neon(unsigned char *src_ptr,
// load src data
src_tmp = src_ptr - src_pixels_per_line * 2;
for (i = 0; i < 2; i++) {
for (i = 0; i < 2; ++i) {
src = src_tmp + i * 8;
dst = dst_ptr + i * 8;
d18u8 = vld1_u8(src);
......@@ -937,7 +937,7 @@ void vp8_sixtap_predict16x16_neon(unsigned char *src_ptr,
src += src_pixels_per_line;
d22u8 = vld1_u8(src);
src += src_pixels_per_line;
for (j = 0; j < 4; j++) {
for (j = 0; j < 4; ++j) {
d23u8 = vld1_u8(src);
src += src_pixels_per_line;
d24u8 = vld1_u8(src);
......@@ -1034,7 +1034,7 @@ void vp8_sixtap_predict16x16_neon(unsigned char *src_ptr,
if (yoffset == 0) { // firstpass_filter4x4_only
src = src_ptr - 2;
dst = dst_ptr;
for (i = 0; i < 8; i++) {
for (i = 0; i < 8; ++i) {
d6u8 = vld1_u8(src);
d7u8 = vld1_u8(src + 8);
d8u8 = vld1_u8(src + 16);
......@@ -1128,7 +1128,7 @@ void vp8_sixtap_predict16x16_neon(unsigned char *src_ptr,
src = src_ptr - 2 - src_pixels_per_line * 2;
tmpp = tmp;
for (i = 0; i < 7; i++) {
for (i = 0; i < 7; ++i) {
d6u8 = vld1_u8(src);
d7u8 = vld1_u8(src + 8);
d8u8 = vld1_u8(src + 16);
......@@ -1273,7 +1273,7 @@ void vp8_sixtap_predict16x16_neon(unsigned char *src_ptr,
d4u8 = vreinterpret_u8_s8(vabs_s8(d4s8));
d5u8 = vreinterpret_u8_s8(vabs_s8(d5s8));
for (i = 0; i < 2; i++) {
for (i = 0; i < 2; ++i) {
dst = dst_ptr + 8 * i;
tmpp = tmp + 8 * i;
d18u8 = vld1_u8(tmpp);
......@@ -1286,7 +1286,7 @@ void vp8_sixtap_predict16x16_neon(unsigned char *src_ptr,
tmpp += 16;
d22u8 = vld1_u8(tmpp);
tmpp += 16;
for (j = 0; j < 4; j++) {
for (j = 0; j < 4; ++j) {
d23u8 = vld1_u8(tmpp);
tmpp += 16;
d24u8 = vld1_u8(tmpp);
......
......@@ -18,7 +18,7 @@ void vp8_copy32xn_c(const unsigned char *src_ptr, int src_stride,
unsigned char *dst_ptr, int dst_stride, int height) {
int r;
for (r = 0; r < height; r++) {
for (r = 0; r < height; ++r) {
memcpy(dst_ptr, src_ptr, 32);
src_ptr += src_stride;
......
......@@ -22,8 +22,8 @@ void vp8_print_modes_and_motion_vectors(MODE_INFO *mi, int rows, int cols,
mb_index = 0;
fprintf(mvs, "Mb Modes for Frame %d\n", frame);
for (mb_row = 0; mb_row < rows; mb_row++) {
for (mb_col = 0; mb_col < cols; mb_col++) {
for (mb_row = 0; mb_row < rows; ++mb_row) {
for (mb_col = 0; mb_col < cols; ++mb_col) {
fprintf(mvs, "%2d ", mi[mb_index].mbmi.mode);
mb_index++;
......@@ -38,8 +38,8 @@ void vp8_print_modes_and_motion_vectors(MODE_INFO *mi, int rows, int cols,
mb_index = 0;
fprintf(mvs, "Mb mv ref for Frame %d\n", frame);
for (mb_row = 0; mb_row < rows; mb_row++) {
for (mb_col = 0; mb_col < cols; mb_col++) {
for (mb_row = 0; mb_row < rows; ++mb_row) {
for (mb_col = 0; mb_col < cols; ++mb_col) {
fprintf(mvs, "%2d ", mi[mb_index].mbmi.ref_frame);
mb_index++;
......@@ -55,8 +55,8 @@ void vp8_print_modes_and_motion_vectors(MODE_INFO *mi, int rows, int cols,
mb_index = 0;
fprintf(mvs, "UV Modes for Frame %d\n", frame);
for (mb_row = 0; mb_row < rows; mb_row++) {
for (mb_col = 0; mb_col < cols; mb_col++) {
for (mb_row = 0; mb_row < rows; ++mb_row) {
for (mb_col = 0; mb_col < cols; ++mb_col) {
fprintf(mvs, "%2d ", mi[mb_index].mbmi.uv_mode);
mb_index++;
......@@ -73,11 +73,11 @@ void vp8_print_modes_and_motion_vectors(MODE_INFO *mi, int rows, int cols,
{
int b_row;
for (b_row = 0; b_row < 4 * rows; b_row++) {
for (b_row = 0; b_row < 4 * rows; ++b_row) {
int b_col;
int bindex;
for (b_col = 0; b_col < 4 * cols; b_col++) {
for (b_col = 0; b_col < 4 * cols; ++b_col) {
mb_index = (b_row >> 2) * (cols + 1) + (b_col >> 2);
bindex = (b_row & 3) * 4 + (b_col & 3);
......@@ -96,8 +96,8 @@ void vp8_print_modes_and_motion_vectors(MODE_INFO *mi, int rows, int cols,
mb_index = 0;
fprintf(mvs, "MVs for Frame %d\n", frame);
for (mb_row = 0; mb_row < rows; mb_row++) {
for (mb_col = 0; mb_col < cols; mb_col++) {
for (mb_row = 0; mb_row < rows; ++mb_row) {
for (mb_col = 0; mb_col < cols; ++mb_col) {
fprintf(mvs, "%5d:%-5d", mi[mb_index].mbmi.mv.as_mv.row / 2,
mi[mb_index].mbmi.mv.as_mv.col / 2);
......@@ -115,11 +115,11 @@ void vp8_print_modes_and_motion_vectors(MODE_INFO *mi, int rows, int cols,
{
int b_row;
for (b_row = 0; b_row < 4 * rows; b_row++) {
for (b_row = 0; b_row < 4 * rows; ++b_row) {
int b_col;
int bindex;
for (b_col = 0; b_col < 4 * cols; b_col++) {
for (b_col = 0; b_col < 4 * cols; ++b_col) {
mb_index = (b_row >> 2) * (cols + 1) + (b_col >> 2);
bindex = (b_row & 3) * 4 + (b_col & 3);
fprintf(mvs, "%3d:%-3d ", mi[mb_index].bmi[bindex].mv.as_mv.row,
......
......@@ -18,7 +18,7 @@ void vp8_dequantize_b_c(BLOCKD *d, short *DQC) {
short *DQ = d->dqcoeff;
short *Q = d->qcoeff;
for (i = 0; i < 16; i++) {
for (i = 0; i < 16; ++i) {
DQ[i] = Q[i] * DQC[i];
}
}
......@@ -27,7 +27,7 @@ void vp8_dequant_idct_add_c(short *input, short *dq, unsigned char *dest,
int stride) {
int i;
for (i = 0; i < 16; i++) {
for (i = 0; i < 16; ++i) {
input[i] = dq[i] * input[i];
}
......
......@@ -51,7 +51,7 @@ DECLARE_ALIGNED(16, const short, vp8_default_inv_zig_zag[16]) = {
{
int i;
for (i = 0; i < 16; i++)
for (i = 0; i < 16; ++i)
{
vp8_default_zig_zag_mask[vp8_default_zig_zag1d[i]] = 1 << i;
}
......
......@@ -33,7 +33,7 @@ static void copy_and_extend_plane(unsigned char *s, /* source */
dest_ptr1 = d - el;
dest_ptr2 = d + w;
for (i = 0; i < h; i++) {
for (i = 0; i < h; ++i) {
memset(dest_ptr1, src_ptr1[0], el);
memcpy(dest_ptr1 + el, src_ptr1, w);
memset(dest_ptr2, src_ptr2[0], er);
......@@ -52,12 +52,12 @@ static void copy_and_extend_plane(unsigned char *s, /* source */
dest_ptr2 = d + dp * (h)-el;
linesize = el + er + w;
for (i = 0; i < et; i++) {
for (i = 0; i < et; ++i) {
memcpy(dest_ptr1, src_ptr1, linesize);
dest_ptr1 += dp;
}
for (i = 0; i < eb; i++) {
for (i = 0; i < eb; ++i) {
memcpy(dest_ptr2, src_ptr2, linesize);
dest_ptr2 += dp;
}
......@@ -135,7 +135,7 @@ void vp8_extend_mb_row(YV12_BUFFER_CONFIG *ybf, unsigned char *YPtr,
UPtr += ybf->uv_stride * 6;
VPtr += ybf->uv_stride * 6;
for (i = 0; i < 4; i++) {
for (i = 0; i < 4; ++i) {
YPtr[i] = YPtr[-1];
UPtr[i] = UPtr[-1];
VPtr[i] = VPtr[-1];
......@@ -145,7 +145,7 @@ void vp8_extend_mb_row(YV12_BUFFER_CONFIG *ybf, unsigned char *YPtr,
UPtr += ybf->uv_stride;
VPtr += ybf->uv_stride;
for (i = 0; i < 4; i++) {
for (i = 0; i < 4; ++i) {
YPtr[i] = YPtr[-1];
UPtr[i] = UPtr[-1];
VPtr[i] = VPtr[-1];
......
......@@ -38,8 +38,8 @@ static void filter_block2d_first_pass(unsigned char *src_ptr, int *output_ptr,
unsigned int i, j;
int Temp;
for (i = 0; i < output_height; i++) {
for (j = 0; j < output_width; j++) {
for (i = 0; i < output_height; ++i) {
for (j = 0; j < output_width; ++j) {
Temp = ((int)src_ptr[-2 * (int)pixel_step] * vp8_filter[0]) +
((int)src_ptr[-1 * (int)pixel_step] * vp8_filter[1]) +
((int)src_ptr[0] * vp8_filter[2]) +
......@@ -76,8 +76,8 @@ static void filter_block2d_second_pass(int *src_ptr, unsigned char *output_ptr,
unsigned int i, j;
int Temp;
for (i = 0; i < output_height; i++) {
for (j = 0; j < output_width; j++) {
for (i = 0; i < output_height; ++i) {
for (j = 0; j < output_width; ++j) {
/* Apply filter */
Temp = ((int)src_ptr[-2 * (int)pixel_step] * vp8_filter[0]) +
((int)src_ptr[-1 * (int)pixel_step] * vp8_filter[1]) +
......@@ -215,8 +215,8 @@ static void filter_block2d_bil_first_pass(
unsigned int height, unsigned int width, const short *vp8_filter) {
unsigned int i, j;
for (i = 0; i < height; i++) {
for (j = 0; j < width; j++) {
for (i = 0; i < height; ++i) {
for (j = 0; j < width; ++j) {
/* Apply bilinear filter */
dst_ptr[j] =
(((int)src_ptr[0] * vp8_filter[0]) +
......@@ -263,8 +263,8 @@ static void filter_block2d_bil_second_pass(unsigned short *src_ptr,
unsigned int i, j;
int Temp;
for (i = 0; i < height; i++) {
for (j = 0; j < width; j++) {
for (i = 0; i < height; ++i) {
for (j = 0; j < width; ++j) {
/* Apply filter */
Temp = ((int)src_ptr[0] * vp8_filter[0]) +
((int)src_ptr[width] * vp8_filter[1]) + (VP8_FILTER_WEIGHT / 2);
......@@ -333,7 +333,7 @@ void vp8_bilinear_predict4x4_c(unsigned char *src_ptr, int src_pixels_per_line,
bilinear_predict4x4_mmx(src_ptr, src_pixels_per_line, xoffset, yoffset, temp1, 4);
filter_block2d_bil(src_ptr, temp2, src_pixels_per_line, 4, HFilter, VFilter, 4, 4);
for (i = 0; i < 16; i++)
for (i = 0; i < 16; ++i)
{
if (temp1[i] != temp2[i])
{
......
......@@ -69,7 +69,7 @@ static int get_cpu_count() {
ULONG status;
core_count = 0;
for (proc_id = 1;; proc_id++) {
for (proc_id = 1;; ++proc_id) {
if (DosGetProcessorStatus(proc_id, &status)) break;
if (status == PROC_ONLINE) core_count++;
......
......@@ -22,8 +22,8 @@ void vp8_dequant_idct_add_y_block_c(short *q, short *dq, unsigned char *dst,
int stride, char *eobs) {
int i, j;
for (i = 0; i < 4; i++) {
for (j = 0; j < 4; j++) {
for (i = 0; i < 4; ++i) {
for (j = 0; j < 4; ++j) {
if (*eobs++ > 1)
vp8_dequant_idct_add_c(q, dq, dst, stride);
else {
......@@ -44,8 +44,8 @@ void vp8_dequant_idct_add_uv_block_c(short *q, short *dq, unsigned char *dstu,
char *eobs) {
int i, j;
for (i = 0; i < 2; i++) {
for (j = 0; j < 2; j++) {
for (i = 0; i < 2; ++i) {
for (j = 0; j < 2; ++j) {
if (*eobs++ > 1)
vp8_dequant_idct_add_c(q, dq, dstu, stride);
else {
......@@ -60,8 +60,8 @@ void vp8_dequant_idct_add_uv_block_c(short *q, short *dq, unsigned char *dstu,
dstu += 4 * stride - 8;
}
for (i = 0; i < 2; i++) {
for (j = 0; j < 2; j++) {
for (i = 0; i < 2; ++i) {
for (j = 0; j < 2; ++j) {
if (*eobs++ > 1)
vp8_dequant_idct_add_c(q, dq, dstv, stride);
else {
......
......@@ -38,7 +38,7 @@ void vp8_short_idct4x4llm_c(short *input, unsigned char *pred_ptr,
int temp1, temp2;
int shortpitch = 4;
for (i = 0; i < 4; i++) {
for (i = 0; i < 4; ++i) {
a1 = ip[0] + ip[8];
b1 = ip[0] - ip[8];
......@@ -63,7 +63,7 @@ void vp8_short_idct4x4llm_c(short *input, unsigned char *pred_ptr,
ip = output;
op = output;
for (i = 0; i < 4; i++) {
for (i = 0; i < 4; ++i) {
a1 = ip[0] + ip[2];
b1 = ip[0] - ip[2];
......@@ -86,8 +86,8 @@ void vp8_short_idct4x4llm_c(short *input, unsigned char *pred_ptr,
}
ip = output;
for (r = 0; r < 4; r++) {
for (c = 0; c < 4; c++) {
for (r = 0; r < 4; ++r) {
for (c = 0; c < 4; ++c) {
int a = ip[c] + pred_ptr[c];
if (a < 0) a = 0;
......@@ -108,8 +108,8 @@ void vp8_dc_only_idct_add_c(short input_dc, unsigned char *pred_ptr,
int a1 = ((input_dc + 4) >> 3);
int r, c;
for (r = 0; r < 4; r++) {
for (c = 0; c < 4; c++) {
for (r = 0; r < 4; ++r) {
for (c = 0; c < 4; ++c) {
int a = a1 + pred_ptr[c];
if (a < 0) a = 0;
......@@ -132,7 +132,7 @@ void vp8_short_inv_walsh4x4_c(short *input, short *mb_dqcoeff) {
short *ip = input;
short *op = output;
for (i = 0; i < 4; i++) {
for (i = 0; i < 4; ++i) {
a1 = ip[0] + ip[12];
b1 = ip[4] + ip[8];
c1 = ip[4] - ip[8];
......@@ -149,7 +149,7 @@ void vp8_short_inv_walsh4x4_c(short *input, short *mb_dqcoeff) {
ip = output;
op = output;
for (i = 0; i < 4; i++) {
for (i = 0; i < 4; ++i) {
a1 = ip[0] + ip[3];
b1 = ip[1] + ip[2];
c1 = ip[1] - ip[2];
......@@ -169,7 +169,7 @@ void vp8_short_inv_walsh4x4_c(short *input, short *mb_dqcoeff) {
op += 4;
}
for (i = 0; i < 16; i++) {
for (i = 0; i < 16; ++i) {
mb_dqcoeff[i * 16] = output[i];
}
}
......@@ -179,7 +179,7 @@ void vp8_short_inv_walsh4x4_1_c(short *input, short *mb_dqcoeff) {
int a1;
a1 = ((input[0] + 3) >> 3);
for (i = 0; i < 16; i++) {
for (i = 0; i < 16; ++i) {
mb_dqcoeff[i * 16] = a1;
}
}
......@@ -27,7 +27,7 @@ extern "C" {
static void eob_adjust(char *eobs, short *diff) {
/* eob adjust.... the idct can only skip if both the dc and eob are zero */
int js;
for (js = 0; js < 16; js++) {
for (js = 0; js < 16; ++js) {
if ((eobs[js] == 0) && (diff[0] != 0)) eobs[js]++;
diff += 16;
}
......
......@@ -13,27 +13,27 @@
void vp8_setup_block_dptrs(MACROBLOCKD *x) {
int r, c;
for (r = 0; r < 4; r++) {
for (c = 0; c < 4; c++) {
for (r = 0; r < 4; ++r) {
for (c = 0; c < 4; ++c) {
x->block[r * 4 + c].predictor = x->predictor + r * 4 * 16 + c * 4;
}
}
for (r = 0; r < 2; r++) {
for (c = 0; c < 2; c++) {
for (r = 0; r < 2; ++r) {
for (c = 0; c < 2; ++c) {
x->block[16 + r * 2 + c].predictor =
x->predictor + 256 + r * 4 * 8 + c * 4;
}
}
for (r = 0; r < 2; r++) {
for (c = 0; c < 2; c++) {
for (r = 0; r < 2; ++r) {
for (c = 0; c < 2; ++c) {
x->block[20 + r * 2 + c].predictor =
x->predictor + 320 + r * 4 * 8 + c * 4;
}
}
for (r = 0; r < 25; r++) {
for (r = 0; r < 25; ++r) {
x->block[r].qcoeff = x->qcoeff + r * 16;
x->block[r].dqcoeff = x->dqcoeff + r * 16;
x->block[r].eob = x->eobs + r;
......@@ -43,13 +43,13 @@ void vp8_setup_block_dptrs(MACROBLOCKD *x) {
void vp8_build_block_doffsets(MACROBLOCKD *x) {
int block;
for (block = 0; block < 16; block++) /* y blocks */
for (block = 0; block < 16; ++block) /* y blocks */
{
x->block[block].offset =
(block >> 2) * 4 * x->dst.y_stride + (block & 3) * 4;
}
for (block = 16; block < 20; block++) /* U and V blocks */
for (block = 16; block < 20; ++block) /* U and V blocks */
{
x->block[block + 4].offset = x->block[block].offset =
((block - 16) >> 1) * 4 * x->dst.uv_stride + (block & 1) * 4;
......
......@@ -33,8 +33,8 @@ static void filter_by_weight(unsigned char *src, int src_stride,
int rounding_bit = 1 << (MFQE_PRECISION - 1);
int r, c;
for (r = 0; r < block_size; r++) {
for (c = 0; c < block_size; c++) {
for (r = 0; r < block_size; ++r) {
for (c = 0; c < block_size; ++c) {
dst[c] = (src[c] * src_weight + dst[c] * dst_weight + rounding_bit) >>
MFQE_PRECISION;
}
......@@ -253,8 +253,8 @@ void vp8_multiframe_quality_enhance(VP8_COMMON *cm) {
vd_ptr = dest->v_buffer;
/* postprocess each macro block */
for (mb_row = 0; mb_row < cm->mb_rows; mb_row++) {
for (mb_col = 0; mb_col < cm->mb_cols; mb_col++) {
for (mb_row = 0; mb_row < cm->mb_rows; ++mb_row) {
for (mb_col = 0; mb_col < cm->mb_cols; ++mb_col) {
/* if motion is high there will likely be no benefit */
if (frame_type == INTER_FRAME)
totmap = qualify_inter_mb(mode_info_context, map);
......
......@@ -17,7 +17,7 @@ void vp8_dequant_idct_add_dspr2(short *input, short *dq, unsigned char *dest,
int stride) {
int i;
for (i = 0; i < 16; i++) {
for (i = 0; i < 16; ++i) {
input[i] = dq[i] * input[i];
}
......
......@@ -85,9 +85,9 @@ inline void prefetch_store(unsigned char *dst) {
void dsputil_static_init(void) {
int i;
for (i = 0; i < 256; i++) ff_cropTbl[i + CROP_WIDTH] = i;
for (i = 0; i < 256; ++i) ff_cropTbl[i + CROP_WIDTH] = i;
for (i = 0; i < CROP_WIDTH; i++) {
for (i = 0; i < CROP_WIDTH; ++i) {
ff_cropTbl[i] = 0;
ff_cropTbl[i + CROP_WIDTH + 256] = 255;
}
......@@ -112,7 +112,7 @@ void vp8_filter_block2d_first_pass_4(unsigned char *RESTRICT src_ptr,
/* if (xoffset == 0) we don't need any filtering */
if (vector3b == 0) {
for (i = 0; i < output_height; i++) {
for (i = 0; i < output_height; ++i) {