Merge "Send allow_screen_content flag for both key and intra only frames" into nextgenv2

This commit is contained in:
Hui Su 2016-10-12 21:13:24 +00:00 коммит произвёл Gerrit Code Review
Родитель 4282b6bbbb 24f7b07f2e
Коммит 933bf08cfb
2 изменённых файлов: 4 добавлений и 6 удалений

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

@ -3224,11 +3224,10 @@ static size_t read_uncompressed_header(AV1Decoder *pbi,
memset(&cm->ref_frame_map, -1, sizeof(cm->ref_frame_map)); memset(&cm->ref_frame_map, -1, sizeof(cm->ref_frame_map));
pbi->need_resync = 0; pbi->need_resync = 0;
} }
if (frame_is_intra_only(cm))
cm->allow_screen_content_tools = aom_rb_read_bit(rb); cm->allow_screen_content_tools = aom_rb_read_bit(rb);
} else { } else {
cm->intra_only = cm->show_frame ? 0 : aom_rb_read_bit(rb); cm->intra_only = cm->show_frame ? 0 : aom_rb_read_bit(rb);
if (cm->intra_only) cm->allow_screen_content_tools = aom_rb_read_bit(rb);
if (cm->error_resilient_mode) { if (cm->error_resilient_mode) {
cm->reset_frame_context = RESET_FRAME_CONTEXT_ALL; cm->reset_frame_context = RESET_FRAME_CONTEXT_ALL;
} else { } else {

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

@ -3198,11 +3198,10 @@ static void write_uncompressed_header(AV1_COMP *cpi,
write_sync_code(wb); write_sync_code(wb);
write_bitdepth_colorspace_sampling(cm, wb); write_bitdepth_colorspace_sampling(cm, wb);
write_frame_size(cm, wb); write_frame_size(cm, wb);
if (frame_is_intra_only(cm))
aom_wb_write_bit(wb, cm->allow_screen_content_tools); aom_wb_write_bit(wb, cm->allow_screen_content_tools);
} else { } else {
if (!cm->show_frame) aom_wb_write_bit(wb, cm->intra_only); if (!cm->show_frame) aom_wb_write_bit(wb, cm->intra_only);
if (cm->intra_only) aom_wb_write_bit(wb, cm->allow_screen_content_tools);
if (!cm->error_resilient_mode) { if (!cm->error_resilient_mode) {
if (cm->intra_only) { if (cm->intra_only) {
aom_wb_write_bit(wb, aom_wb_write_bit(wb,