Merge "ext-intra: refactor rd loop in interframe" into nextgenv2