summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco <marpan@google.com>2017-10-04 15:27:45 -0700
committerMarco <marpan@google.com>2017-10-04 15:31:54 -0700
commit4bc1fc58b6c8b456750b7c57ce654b36565cfec0 (patch)
treed20459ab407ef1a037db76098ec0fa256da8cb30
parent77e51e2035b8818d2351d7bc6e3af423f91a69cf (diff)
downloadlibvpx-4bc1fc58b6c8b456750b7c57ce654b36565cfec0.tar
libvpx-4bc1fc58b6c8b456750b7c57ce654b36565cfec0.tar.gz
libvpx-4bc1fc58b6c8b456750b7c57ce654b36565cfec0.tar.bz2
libvpx-4bc1fc58b6c8b456750b7c57ce654b36565cfec0.zip
Avoid nonrd_pick_partition for speed >= 6.
For 1 pass vbr speed >= 6: when REFERENCE_PARTITION is selected, avoid doing the full nonrd_pickmode based partition. No change in overall metrics or speed. Reduces encode times on scene cuts by 10-20%. Change-Id: I0310b1610cc1c83793a509e0a9059840e8f18308
-rw-r--r--vp9/encoder/vp9_encodeframe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vp9/encoder/vp9_encodeframe.c b/vp9/encoder/vp9_encodeframe.c
index 4d7d28500..c9d865e5c 100644
--- a/vp9/encoder/vp9_encodeframe.c
+++ b/vp9/encoder/vp9_encodeframe.c
@@ -4216,7 +4216,7 @@ static void encode_nonrd_sb_row(VP9_COMP *cpi, ThreadData *td,
// nonrd_pick_partition does not support 4x4 partition, so avoid it
// on key frame for now.
if ((cpi->oxcf.rc_mode == VPX_VBR && cpi->rc.high_source_sad &&
- cm->frame_type != KEY_FRAME)) {
+ cpi->oxcf.speed < 6 && cm->frame_type != KEY_FRAME)) {
// Use lower max_partition_size for low resoultions.
if (cm->width <= 352 && cm->height <= 288)
x->max_partition_size = BLOCK_32X32;