skia2/include/codec
Leon Scroggins III e42716032b SkAnimatedImage: Always respect exif orientation
No known clients (CanvasKit, Android) want to ignore the exif
orientation in an animation.

A follow-on CL will deprecate SkAndroidCodec::ExifOrientation, leaving
it up to the client (e.g. SkAnimatedImage, hwui/ImageDecoder) to
handle the orientation. Add SkEncodedOriginSwapsWidthHeight to assist
clients to do so.

Update stoplight_animated_image GM. It previously showed using
SkAnimatedImage without respecting the orientation, which is no longer
supported. The new version replaces the left half of the image with the
right.

Remove assert that is no longer true. Originally, an SkAnimatedImage was
"simple" if it did not have a crop or postProcessor. This is no longer
true if has an exif orientation. Add a test that calls the simple
constructor and verifies it does not crash.

Change-Id: I421fd02700f220fb90458cd03c4431dee7daf399
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/344762
Reviewed-by: Derek Sollenberger <djsollen@google.com>
Commit-Queue: Leon Scroggins <scroggo@google.com>
2020-12-21 16:39:12 +00:00
..
SkAndroidCodec.h SkAnimatedImage: Always respect exif orientation 2020-12-21 16:39:12 +00:00
SkCodec.h Expose more info in SkCodec::FrameInfo 2020-12-02 22:37:20 +00:00
SkCodecAnimation.h Expose more info in SkCodec::FrameInfo 2020-12-02 22:37:20 +00:00
SkEncodedOrigin.h SkAnimatedImage: Always respect exif orientation 2020-12-21 16:39:12 +00:00