Add sao_type_idx to SAO mode cost estimation.

This commit is contained in:
Ari Koivula 2014-04-15 16:34:59 +03:00
parent 280a946269
commit 880d09b27a

View file

@ -155,6 +155,9 @@ static int sao_mode_bits_edge(int edge_class, int offsets[NUM_SAO_EDGE_CATEGORIE
} }
} }
// TR coded type_idx_, edge = 2 = cMax
mode_bits += 1;
// TR coded offsets. // TR coded offsets.
{ {
sao_eo_cat edge_cat; sao_eo_cat edge_cat;
@ -198,6 +201,9 @@ static int sao_mode_bits_band(int band_position, int offsets[4],
} }
} }
// TR coded sao_type_idx_, band = 1
mode_bits += 2;
// TR coded offsets and possible FL coded offset signs. // TR coded offsets and possible FL coded offset signs.
{ {
int i; int i;