Preload reference area in sub-pixel motion search (real-time mode)
authorYunqing Wang <yunqingwang@google.com>
Fri, 22 Jul 2011 20:01:11 +0000 (16:01 -0400)
committerYunqing Wang <yunqingwang@google.com>
Wed, 27 Jul 2011 18:19:10 +0000 (14:19 -0400)
commit2f2302f8d5e41862e517f34544f9bcd8c8edeaad
tree950325ee88ab2f0b493b5c5fa0768a99c267cc6c
parentf11613b62086894dd699e33a54cfc675b19898a8
Preload reference area in sub-pixel motion search (real-time mode)

This change implemented same idea in change "Preload reference area
to an intermediate buffer in sub-pixel motion search." The changes
were made to vp8_find_best_sub_pixel_step() and vp8_find_best_half
_pixel_step() functions which are called when speed >= 5. Test
result (using tulip clip):

1. On Core2 Quad machine(Linux)
rt mode, speed (-5 ~ -8), encoding speed gain: 2% ~ 3%
rt mode, speed (-9 ~ -11), encoding speed gain: 1% ~ 2%
rt mode, speed (-12 ~ -14), no noticeable encoding speed gain

2. On Xeon machine(Linux)
Test on speed (-5 ~ -14) didn't show noticeable speed change.

Change-Id: I21bec2d6e7fbe541fcc0f4c0366bbdf3e2076aa2
vp8/encoder/mcomp.c
vp8/encoder/rdopt.c