]> granicus.if.org Git - libvpx/commitdiff
Changed condition for using RD in Intra Mode
authorAdrian Grange <agrange@google.com>
Fri, 28 Jan 2011 14:47:36 +0000 (14:47 +0000)
committerAdrian Grange <agrange@google.com>
Fri, 28 Jan 2011 14:47:36 +0000 (14:47 +0000)
The condition for using RD when selecting the intra coding mode
for a MB is that the RD flag is set AND we're not in real-time
mode.

Previously the code used RD if either the RD flag was set OR
we were not using real-time mode.

Change-Id: Ic711151298468a3f99babad39ba8375f66d55a08

vp8/encoder/encodeframe.c

index 1689b43d12ee97f894a8e309030549899eb10ca6..793191d241a92470e3df25b1e825bc8b1b5794c7 100644 (file)
@@ -1160,7 +1160,7 @@ int vp8cx_encode_intra_macro_block(VP8_COMP *cpi, MACROBLOCK *x, TOKENEXTRA **t)
 
 #if !(CONFIG_REALTIME_ONLY)
 
-    if (cpi->sf.RD || cpi->compressor_speed != 2)
+    if (cpi->sf.RD && cpi->compressor_speed != 2)
     {
         Error4x4 = vp8_rd_pick_intra4x4mby_modes(cpi, x, &rate4x4, &rate4x4_tokenonly, &dist4x4);