b6ab10f34b
It is now used by SkPixmap and will soon be in SkJpegEncoder. No need for those to depend on SkCodec. Bug: 768878 TBR=reed@google.com (reed@ already approved the API change in https://skia-review.googlesource.com/60721) Change-Id: If1a6e1d5b60a7a3d8c97818e15a48d28ba804668 Reviewed-on: https://skia-review.googlesource.com/61680 Reviewed-by: Leon Scroggins <scroggo@google.com> Commit-Queue: Leon Scroggins <scroggo@google.com>
24 lines
962 B
C
24 lines
962 B
C
/*
|
|
* Copyright 2017 Google Inc.
|
|
*
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
* found in the LICENSE file.
|
|
*/
|
|
|
|
#ifndef SkEncodedOrigin_DEFINED
|
|
#define SkEncodedOrigin_DEFINED
|
|
// These values match the orientation www.exif.org/Exif2-2.PDF.
|
|
enum SkEncodedOrigin {
|
|
kTopLeft_SkEncodedOrigin = 1, // Default
|
|
kTopRight_SkEncodedOrigin = 2, // Reflected across y-axis
|
|
kBottomRight_SkEncodedOrigin = 3, // Rotated 180
|
|
kBottomLeft_SkEncodedOrigin = 4, // Reflected across x-axis
|
|
kLeftTop_SkEncodedOrigin = 5, // Reflected across x-axis, Rotated 90 CCW
|
|
kRightTop_SkEncodedOrigin = 6, // Rotated 90 CW
|
|
kRightBottom_SkEncodedOrigin = 7, // Reflected across x-axis, Rotated 90 CW
|
|
kLeftBottom_SkEncodedOrigin = 8, // Rotated 90 CCW
|
|
kDefault_SkEncodedOrigin = kTopLeft_SkEncodedOrigin,
|
|
kLast_SkEncodedOrigin = kLeftBottom_SkEncodedOrigin,
|
|
};
|
|
#endif // SkEncodedOrigin_DEFINED
|