From e9f513d74ae9cfc88f5423cb25bd65000bc32c0d Mon Sep 17 00:00:00 2001 From: Adrian Grange Date: Fri, 28 Jan 2011 14:47:36 +0000 Subject: [PATCH] Changed condition for using RD in Intra Mode 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vp8/encoder/encodeframe.c b/vp8/encoder/encodeframe.c index 1689b43d1..793191d24 100644 --- a/vp8/encoder/encodeframe.c +++ b/vp8/encoder/encodeframe.c @@ -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);