Optionally write the orientation when encoding a JPEG.

Originally, there would be no exif data present when encoding a JPEG.
This CL adds exif data with an orientation. The orientation can be set,
otherwise it will just be the default orientation.
The test is rewritten from this CL:
https://skia-review.googlesource.com/c/skia/+/60721.

Bug: 310510975
Change-Id: I90ea305a38270d9316d00b41f2d0f2f419acff91
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/901166
Reviewed-by: Florin Malita <fmalita@google.com>
Reviewed-by: Leon Scroggins <scroggo@google.com>
Commit-Queue: Daniel Dilan <danieldilan@google.com>
11 files changed