paulwilkins 0149fb3d6b Changes to exhaustive motion search.
This change alters the nature and use of exhaustive motion search.

Firstly any exhaustive search is preceded by a normal step search.
The exhaustive search is only carried out if the distortion resulting
from the step search is above a threshold value.

Secondly the simple +/- 64 exhaustive search is replaced by a
multi stage mesh based search where each stage has a range
and step/interval size. Subsequent stages use the best position from
the previous stage as the center of the search but use a reduced range
and interval size.

For example:
  stage 1: Range +/- 64 interval 4
  stage 2: Range +/- 32 interval 2
  stage 3: Range +/- 15 interval 1

This process, especially when it follows on from a normal step
search, has shown itself to be almost as effective as a full range
exhaustive search with step 1 but greatly lowers the computational
complexity such that it can be used in some cases for speeds 0-2.

This patch also removes a double exhaustive search for sub 8x8 blocks
which also contained  a bug (the two searches used different distortion
metrics).

For best quality in my test animation sequence this patch has almost
no impact on quality but improves encode speed by more than 5X.

Restricted use in good quality speeds 0-2 yields significant quality gains
on the animation test of 0.2 - 0.5 db with only a small impact on encode
speed. On most clips though the quality gain and speed impact are small.

Change-Id: Id22967a840e996e1db273f6ac4ff03f4f52d49aa
2015-11-13 10:16:31 +00:00
..
2015-07-20 18:13:04 -07:00
2015-07-20 18:13:04 -07:00
2015-07-20 18:13:04 -07:00
2015-06-04 07:32:16 -07:00
2015-07-06 13:04:05 -07:00
2015-07-31 10:27:33 -07:00
2015-04-28 20:00:59 -07:00
2015-08-07 10:16:27 -07:00
2015-06-22 06:09:38 -07:00
2015-06-22 06:09:38 -07:00
2015-06-11 09:52:00 -07:00
2015-08-03 09:43:34 -07:00
2015-07-31 10:27:33 -07:00
2015-05-22 11:19:51 -07:00
2015-07-20 18:13:04 -07:00
2015-07-20 18:13:04 -07:00
2013-02-22 11:03:14 -08:00
2015-09-29 09:34:42 -07:00