An efficient inter prediction mode selection scheme for advanced video coding based on motion homogeneity and residual complexity