changed to use a fixed number for update probabity
This commit is to remove two arrays, which contain the probabilities of how likely each probability in coef_probs table is updated. The commit changed to use a fixed number "252". Surprisedly, the overall impact on quality is close to zero, which basically says the two big static arrays are not helpful at all. derf: -0.016%, -0.020% std-hd: 0.000%, -0.013% yt: -0.022%, +0.007% yt-hd: -0.038%, +0.034% Change-Id: Ifee94d28a37dcab4f1d2b994bd5b07575be42b72
This commit is contained in:
@@ -832,7 +832,7 @@ static void read_coef_probs3(VP8D_COMP *pbi)
|
||||
#endif
|
||||
{
|
||||
vp8_prob *const p = pc->fc.coef_probs [i][j][k] + l;
|
||||
int u = vp8_read(bc, vp8_coef_update_probs [i][j][k][l]);
|
||||
int u = vp8_read(bc, COEF_UPDATE_PROB);
|
||||
if (u) *p = read_prob_diff_update(bc, *p);
|
||||
}
|
||||
}
|
||||
@@ -856,7 +856,7 @@ static void read_coef_probs3(VP8D_COMP *pbi)
|
||||
#endif
|
||||
{
|
||||
vp8_prob *const p = pc->fc.coef_probs_8x8 [i][j][k] + l;
|
||||
int u = vp8_read(bc, vp8_coef_update_probs_8x8 [i][j][k][l]);
|
||||
int u = vp8_read(bc, COEF_UPDATE_PROB_8X8);
|
||||
if (u) *p = read_prob_diff_update(bc, *p);
|
||||
}
|
||||
}
|
||||
@@ -887,7 +887,7 @@ static void read_coef_probs2(VP8D_COMP *pbi)
|
||||
#endif
|
||||
{
|
||||
vp8_prob *const p = pc->fc.coef_probs [i][j][k] + l;
|
||||
int u = vp8_read(bc, vp8_coef_update_probs [i][j][k][l]);
|
||||
int u = vp8_read(bc, COEF_UPDATE_PROB);
|
||||
if (u) *p = read_prob_diff_update(bc, *p);
|
||||
}
|
||||
}
|
||||
@@ -911,7 +911,7 @@ static void read_coef_probs2(VP8D_COMP *pbi)
|
||||
{
|
||||
vp8_prob *const p = pc->fc.coef_probs_8x8 [i][j][k] + l;
|
||||
|
||||
int u = vp8_read(bc, vp8_coef_update_probs_8x8 [i][j][k][l]);
|
||||
int u = vp8_read(bc, COEF_UPDATE_PROB_8X8);
|
||||
if (u) *p = read_prob_diff_update(bc, *p);
|
||||
}
|
||||
}
|
||||
@@ -948,7 +948,7 @@ static void read_coef_probs(VP8D_COMP *pbi)
|
||||
{
|
||||
vp8_prob *const p = pc->fc.coef_probs [i][j][k] + l;
|
||||
|
||||
if (vp8_read(bc, vp8_coef_update_probs [i][j][k][l]))
|
||||
if (vp8_read(bc, COEF_UPDATE_PROB))
|
||||
{
|
||||
#if CONFIG_NEWUPDATE
|
||||
*p = read_prob_diff_update(bc, *p);
|
||||
@@ -982,7 +982,7 @@ static void read_coef_probs(VP8D_COMP *pbi)
|
||||
|
||||
vp8_prob *const p = pc->fc.coef_probs_8x8 [i][j][k] + l;
|
||||
|
||||
if (vp8_read(bc, vp8_coef_update_probs_8x8 [i][j][k][l]))
|
||||
if (vp8_read(bc, COEF_UPDATE_PROB_8X8))
|
||||
{
|
||||
#if CONFIG_NEWUPDATE
|
||||
*p = read_prob_diff_update(bc, *p);
|
||||
|
||||
Reference in New Issue
Block a user