Merge "Cleaning up read_skip_coeff() function."

This commit is contained in:
Dmitry Kovalev 2013-11-01 10:56:55 -07:00 коммит произвёл Gerrit Code Review
Родитель a272530bf0 970eb39bdc
Коммит 5113d9c3c9
1 изменённых файлов: 8 добавлений и 7 удалений

Просмотреть файл

@ -149,16 +149,17 @@ static int read_inter_segment_id(VP9_COMMON *const cm, MACROBLOCKD *const xd,
return segment_id;
}
static uint8_t read_skip_coeff(VP9_COMMON *const cm, MACROBLOCKD *const xd,
int segment_id, vp9_reader *r) {
int skip_coeff = vp9_segfeature_active(&cm->seg, segment_id, SEG_LVL_SKIP);
if (!skip_coeff) {
static int read_skip_coeff(VP9_COMMON *cm, const MACROBLOCKD *xd,
int segment_id, vp9_reader *r) {
if (vp9_segfeature_active(&cm->seg, segment_id, SEG_LVL_SKIP)) {
return 1;
} else {
const int ctx = vp9_get_pred_context_mbskip(xd);
skip_coeff = vp9_read(r, vp9_get_pred_prob_mbskip(cm, xd));
const int skip = vp9_read(r, cm->fc.mbskip_probs[ctx]);
if (!cm->frame_parallel_decoding_mode)
++cm->counts.mbskip[ctx][skip_coeff];
++cm->counts.mbskip[ctx][skip];
return skip;
}
return skip_coeff;
}
static void read_intra_frame_mode_info(VP9_COMMON *const cm,