From: Jingning Han Date: Thu, 3 Apr 2014 05:44:06 +0000 (-0700) Subject: Adjust key frame quantization index for rtc coding X-Git-Tag: v1.4.0~1906^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2536a89a4f6398b9b48e5443f8259b9968ae9da6;p=libvpx Adjust key frame quantization index for rtc coding This commit slightly increases the bit allocation for key frame. This improves speed -5 coding performance by 2.77% with aq-mode=0 and by 2.78% with aq-mode=3. Change-Id: Iaa3e777f80b9706306606af06e89852bac146659 --- diff --git a/vp9/encoder/vp9_speed_features.c b/vp9/encoder/vp9_speed_features.c index 6f1cdcae9..0d9007b94 100644 --- a/vp9/encoder/vp9_speed_features.c +++ b/vp9/encoder/vp9_speed_features.c @@ -244,10 +244,10 @@ static void set_rt_speed_feature(VP9_COMMON *cm, sf->min_partition_size = BLOCK_8X8; sf->partition_check = (cm->current_video_frame % sf->last_partitioning_redo_frequency == 1); - sf->force_ref_frame = + sf->force_ref_frame = cm->frame_type == KEY_FRAME || (cm->current_video_frame % (sf->last_partitioning_redo_frequency << 1) == 1); - sf->max_delta_qindex = 15; + sf->max_delta_qindex = (cm->frame_type == KEY_FRAME) ? 20 : 15; sf->partition_search_type = REFERENCE_PARTITION; sf->use_nonrd_pick_mode = 1; sf->search_method = FAST_DIAMOND;