display: add matrix flip api