Adaptive segmentation of moving object versus background for video coding