Commit 98bc74ca authored by Luc Trudeau's avatar Luc Trudeau

Remove redundant loop in ctx_reset

Merges two consecutive loops that iterated over TX_SIZES. There's no
impact to the bitstream. The 4 used as the termination threshold in the
second loop is equivalent to TX_SIZES.

Change-Id: Ic891d209b28f20907d53bcdd58139fe39c37b0fa
parent 1bdcc775
......@@ -21,10 +21,8 @@ void od_adapt_ctx_reset(od_adapt_ctx *adapt, int is_keyframe) {
for (pli = 0; pli < OD_NPLANES_MAX; pli++) {
generic_model_init(&adapt->model_dc[pli]);
for (i = 0; i < OD_TXSIZES; i++) {
adapt->ex_g[pli][i] = 8;
}
for (i = 0; i < 4; i++) {
int j;
adapt->ex_g[pli][i] = 8;
for (j = 0; j < 3; j++) {
adapt->ex_dc[pli][i][j] = pli > 0 ? 8 : 32768;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment