]> granicus.if.org Git - libvpx/commitdiff
Apply max intra block size condition to non-RD mode decision
authorJingning Han <jingning@google.com>
Thu, 24 Apr 2014 01:59:26 +0000 (18:59 -0700)
committerJingning Han <jingning@google.com>
Thu, 24 Apr 2014 01:59:26 +0000 (18:59 -0700)
Change-Id: I9b86a94d11db2239c85f61aeed5bbd83a0dfa028

vp9/encoder/vp9_pickmode.c

index 699e70784c57a744617c1efb13befe65dc0e0b7a..3a9f0f5f12e4244bd55898d56c9dd32e95fa4815 100644 (file)
@@ -418,7 +418,7 @@ int64_t vp9_pick_inter_mode(VP9_COMP *cpi, MACROBLOCK *x,
 
   // Perform intra prediction search, if the best SAD is above a certain
   // threshold.
-  if (best_rd > inter_mode_thresh) {
+  if (best_rd > inter_mode_thresh && bsize < cpi->sf.max_intra_bsize) {
     for (this_mode = DC_PRED; this_mode <= DC_PRED; ++this_mode) {
       vp9_predict_intra_block(xd, 0, b_width_log2(bsize),
                               mbmi->tx_size, this_mode,