H264: change weight/biweight functions to take a height argument.