vbv: bugfix-calculate intraCuCostPerRow for vbv

--HG--
branch : stable
extra : amend_source : bda85855ecdde2d5bef77a29e608e078399a3160
Merge with stable
added asm primitives for 10bpp sad functions
asm: 8bpp and 10bpp code for idct8x8 module
TEncCu: initialize variables, handle malloc failures more cleanly

--HG--
extra : amend_source : 99b203389a8c422a695b0e7fc760c24c81485308
TEncSearch: mvpIdx shares storage with mergeIdx, do not set for merge CUs