Lines Matching refs:i

94         RK_S32 i, j, k, l;  in vp8e_init_entropy()  local
107 for (i = 0; i < 4; i++) { in vp8e_init_entropy()
112 tmp = i * 7 * 3 + j * 3 + k; in vp8e_init_entropy()
119 old_p = entropy->coeff_prob[i][j][k][l]; in vp8e_init_entropy()
120 upd_p = coeff_update_prob_tbl[i][j][k][l]; in vp8e_init_entropy()
132 entropy->coeff_prob[i][j][k][l] = p; in vp8e_init_entropy()
145 for (i = 0; i < 2; i++) { in vp8e_init_entropy()
149 p = calc_mvprob(left, right, entropy->old_mv_prob[i][0]); in vp8e_init_entropy()
151 if (update_prob(mv_update_prob_tbl[i][0], left, right, in vp8e_init_entropy()
152 entropy->old_mv_prob[i][0], p, 6)) in vp8e_init_entropy()
153 entropy->mv_prob[i][0] = p; in vp8e_init_entropy()
159 p = calc_mvprob(left, right, entropy->old_mv_prob[i][1]); in vp8e_init_entropy()
160 if (update_prob(mv_update_prob_tbl[i][1], left, right, in vp8e_init_entropy()
161 entropy->old_mv_prob[i][1], p, 6)) in vp8e_init_entropy()
162 entropy->mv_prob[i][1] = p; in vp8e_init_entropy()
167 p = calc_mvprob(left, right, entropy->old_mv_prob[i][4 + j]); in vp8e_init_entropy()
168 if (update_prob(mv_update_prob_tbl[i][4 + j], left, right, in vp8e_init_entropy()
169 entropy->old_mv_prob[i][4 + j], p, 6)) in vp8e_init_entropy()
170 entropy->mv_prob[i][4 + j] = p; in vp8e_init_entropy()
174 p = calc_mvprob(branch_cnt[0], branch_cnt[1], entropy->old_mv_prob[i][3]); in vp8e_init_entropy()
175 if (update_prob(mv_update_prob_tbl[i][3], branch_cnt[0], branch_cnt[1], in vp8e_init_entropy()
176 entropy->old_mv_prob[i][3], p, 6)) in vp8e_init_entropy()
177 entropy->mv_prob[i][3] = p; in vp8e_init_entropy()
184 p = calc_mvprob(left, right, entropy->old_mv_prob[i][7 + j]); in vp8e_init_entropy()
185 if (update_prob(mv_update_prob_tbl[i][7 + j], left, right, in vp8e_init_entropy()
186 entropy->old_mv_prob[i][7 + j], p, 6)) in vp8e_init_entropy()
187 entropy->mv_prob[i][7 + j] = p; in vp8e_init_entropy()
191 p = calc_mvprob(branch_cnt[0], branch_cnt[1], entropy->old_mv_prob[i][6]); in vp8e_init_entropy()
192 if (update_prob(mv_update_prob_tbl[i][6], branch_cnt[0], branch_cnt[1], in vp8e_init_entropy()
193 entropy->old_mv_prob[i][6], p, 6)) in vp8e_init_entropy()
194 entropy->mv_prob[i][6] = p; in vp8e_init_entropy()
197 entropy->old_mv_prob[i][2]); in vp8e_init_entropy()
198 if (update_prob(mv_update_prob_tbl[i][2], type, branch_cnt[0] + branch_cnt[1], in vp8e_init_entropy()
199 entropy->old_mv_prob[i][2], p, 6)) in vp8e_init_entropy()
200 entropy->mv_prob[i][2] = p; in vp8e_init_entropy()
214 RK_U32 i = 0; in vp8e_swap_endian() local
218 RK_U32 val = buf[i]; in vp8e_swap_endian()
227 RK_U32 val2 = buf[i + 1]; in vp8e_swap_endian()
235 buf[i] = tmp2; in vp8e_swap_endian()
237 i++; in vp8e_swap_endian()
240 buf[i] = tmp; in vp8e_swap_endian()
242 i++; in vp8e_swap_endian()
284 RK_S32 i, j, k, l; in vp8e_write_entropy_tables() local
286 for (i = 0; i < 8; i++) in vp8e_write_entropy_tables()
287 table[24 + i] = entropy->mv_prob[1][9 + i]; in vp8e_write_entropy_tables()
290 for (i = 0; i < 8; i++) in vp8e_write_entropy_tables()
291 table[32 + i] = entropy->mv_prob[0][9 + i]; in vp8e_write_entropy_tables()
294 for (i = 0; i < 7; i++) in vp8e_write_entropy_tables()
295 table[40 + i] = entropy->mv_prob[1][2 + i]; in vp8e_write_entropy_tables()
298 for (i = 0; i < 7; i++) in vp8e_write_entropy_tables()
299 table[48 + i] = entropy->mv_prob[0][2 + i]; in vp8e_write_entropy_tables()
305 for (i = 0; i < 4; i++) in vp8e_write_entropy_tables()
309 *table++ = entropy->coeff_prob[i][j][k][l]; in vp8e_write_entropy_tables()
317 for (i = 0; i < 4; i++) in vp8e_write_entropy_tables()
321 *table++ = entropy->coeff_prob[i][j][k][l]; in vp8e_write_entropy_tables()
323 *table++ = entropy->coeff_prob[i][j][k][3]; in vp8e_write_entropy_tables()
340 RK_S32 i = 0; in vp8e_calc_cost_mv() local
358 for (i = 0; i < 3; i++) { in vp8e_calc_cost_mv()
359 bit_cost += COST_BOOL(mv_prob[9 + i], (tmp >> i) & 1); in vp8e_calc_cost_mv()
362 for (i = 9; i > 3; i--) { in vp8e_calc_cost_mv()
363 bit_cost += COST_BOOL(mv_prob[9 + i], (tmp >> i) & 1); in vp8e_calc_cost_mv()
378 RK_S32 i, j, k, l; in vp8e_calc_coeff_prob() local
381 for (i = 0; i < 4; i++) { in vp8e_calc_coeff_prob()
385 prob = coeff_update_prob_tbl[i][j][k][l]; in vp8e_calc_coeff_prob()
386 old = (RK_S32) (*prev)[i][j][k][l]; in vp8e_calc_coeff_prob()
387 new = (RK_S32) (*curr)[i][j][k][l]; in vp8e_calc_coeff_prob()
405 RK_S32 i, j; in vp8e_calc_mv_prob() local
408 for (i = 0; i < 2; i++) { in vp8e_calc_mv_prob()
410 prob = mv_update_prob_tbl[i][j]; in vp8e_calc_mv_prob()
411 old = (RK_S32) (*prev)[i][j]; in vp8e_calc_mv_prob()
412 new = (RK_S32) (*curr)[i][j]; in vp8e_calc_mv_prob()