Move preview transform matrix code into portability library

This allows it to be calculated differently depending on the backing camera API,
which means that camera2 preview streams can be (and are!) displayed upright.

Bug: 16875535
Change-Id: I58fa86098a8b8eddc8f864b93d1e92672c40a1de
2 files changed