Compression efficiency improvement for 2D and 3D video