Commit 842e9b03 authored by Arild Fuldseth's avatar Arild Fuldseth Committed by Yaowu Xu
Browse files

Always send frame size explicitly

This commit changes to send frame size explicitly when
error_resilient_mode=1. Purpose is to allow parsing of bitstream
after a packet loss.

Change-Id: I7d1c010a465aa18914762cc1a3e61db377304c08
parent 870a72d6
...@@ -3371,7 +3371,15 @@ static size_t read_uncompressed_header(AV1Decoder *pbi, ...@@ -3371,7 +3371,15 @@ static size_t read_uncompressed_header(AV1Decoder *pbi,
cm->ref_frame_sign_bias[LAST_FRAME + i] = aom_rb_read_bit(rb); cm->ref_frame_sign_bias[LAST_FRAME + i] = aom_rb_read_bit(rb);
} }
#if CONFIG_FRAME_SIZE
if (cm->error_resilient_mode == 0) {
setup_frame_size_with_refs(cm, rb);
} else {
setup_frame_size(cm, rb);
}
#else
setup_frame_size_with_refs(cm, rb); setup_frame_size_with_refs(cm, rb);
#endif
cm->allow_high_precision_mv = aom_rb_read_bit(rb); cm->allow_high_precision_mv = aom_rb_read_bit(rb);
cm->interp_filter = read_interp_filter(rb); cm->interp_filter = read_interp_filter(rb);
......
...@@ -3292,7 +3292,15 @@ static void write_uncompressed_header(AV1_COMP *cpi, ...@@ -3292,7 +3292,15 @@ static void write_uncompressed_header(AV1_COMP *cpi,
aom_wb_write_bit(wb, cm->ref_frame_sign_bias[ref_frame]); aom_wb_write_bit(wb, cm->ref_frame_sign_bias[ref_frame]);
} }
#if CONFIG_FRAME_SIZE
if (cm->error_resilient_mode == 0) {
write_frame_size_with_refs(cpi, wb);
} else {
write_frame_size(cm, wb);
}
#else
write_frame_size_with_refs(cpi, wb); write_frame_size_with_refs(cpi, wb);
#endif
aom_wb_write_bit(wb, cm->allow_high_precision_mv); aom_wb_write_bit(wb, cm->allow_high_precision_mv);
......
...@@ -285,6 +285,7 @@ EXPERIMENT_LIST=" ...@@ -285,6 +285,7 @@ EXPERIMENT_LIST="
palette palette
daala_ec daala_ec
cb4x4 cb4x4
frame_size
" "
CONFIG_LIST=" CONFIG_LIST="
dependency_tracking dependency_tracking
......
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