Reconfigurable and approximate computing for video coding