diff options
author | Jingning Han <jingning@google.com> | 2018-08-21 10:05:33 -0700 |
---|---|---|
committer | Jingning Han <jingning@google.com> | 2018-08-21 10:05:33 -0700 |
commit | 3b0d06b5992b0a2be6aae195ad45064332759ff2 (patch) | |
tree | d0ff6fe97371535745418c2b974ff60201475e86 /vp9/encoder | |
parent | dcbdab221e5d17927dfe377efb8a4cd54a6cf0f6 (diff) | |
download | libvpx-3b0d06b5992b0a2be6aae195ad45064332759ff2.tar libvpx-3b0d06b5992b0a2be6aae195ad45064332759ff2.tar.gz libvpx-3b0d06b5992b0a2be6aae195ad45064332759ff2.tar.bz2 libvpx-3b0d06b5992b0a2be6aae195ad45064332759ff2.zip |
Skip frame encoding when show_existing_frame is on
No need to process through the frame encoding stage when a current
frame is coded using show_existing_frame.
Change-Id: I36c6f04e344326fa6ecc95cd0a4e4fd6f467fdcb
Diffstat (limited to 'vp9/encoder')
-rw-r--r-- | vp9/encoder/vp9_encoder.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/vp9/encoder/vp9_encoder.c b/vp9/encoder/vp9_encoder.c index 98da31956..4862ffdbc 100644 --- a/vp9/encoder/vp9_encoder.c +++ b/vp9/encoder/vp9_encoder.c @@ -3816,6 +3816,8 @@ static int encode_without_recode_loop(VP9_COMP *cpi, size_t *size, ? cpi->svc.downsample_filter_phase[cpi->svc.spatial_layer_id] : 0; + if (cm->show_existing_frame) return 1; + // Flag to check if its valid to compute the source sad (used for // scene detection and for superblock content state in CBR mode). // The flag may get reset below based on SVC or resizing state. @@ -4093,6 +4095,8 @@ static void encode_with_recode_loop(VP9_COMP *cpi, size_t *size, int qrange_adj = 1; #endif + if (cm->show_existing_frame) return; + set_size_independent_vars(cpi); enable_acl = cpi->sf.allow_acl |