• Ronald S. Bultje's avatar
    Add averaging-SAD functions for 8-point comp-inter motion search. · c24d9223
    Ronald S. Bultje authored
    Makes first 50 frames of bus @ 1500kbps encode from 3min22.7 to 3min18.2,
    i.e. 2.3% faster. In addition, use the sub_pixel_avg functions to calc
    the variance of the averaging predictor. This is slightly suboptimal
    because the function is subpixel-position-aware, but it will (at least
    for the SSE2 version) not actually use a bilinear filter for a full-pixel
    position, thus leading to approximately the same performance compared to
    if we implemented an actual average-aware full-pixel variance function.
    That gains another 0.3 seconds (i.e. encode time goes to 3min17.4), thus
    leading to a total gain of 2.7%.
    
    Change-Id: I3f059d2b04243921868cfed2568d4fa65d7b5acd
    c24d9223