Merge "Use precise rate cost for intra modes in inter frames" into nextgenv2