luma inter prediction refactoring