OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 29 matching lines...) Expand all Loading... |
40 // "TopLeft" means that the 0 row starts at the Top, the 0 column starts at | 40 // "TopLeft" means that the 0 row starts at the Top, the 0 column starts at |
41 // the Left. | 41 // the Left. |
42 OriginTopLeft = 1, // default | 42 OriginTopLeft = 1, // default |
43 OriginTopRight = 2, // mirror along y-axis | 43 OriginTopRight = 2, // mirror along y-axis |
44 OriginBottomRight = 3, // 180 degree rotation | 44 OriginBottomRight = 3, // 180 degree rotation |
45 OriginBottomLeft = 4, // mirror along the x-axis | 45 OriginBottomLeft = 4, // mirror along the x-axis |
46 OriginLeftTop = 5, // mirror along x-axis + 270 degree CW rotation | 46 OriginLeftTop = 5, // mirror along x-axis + 270 degree CW rotation |
47 OriginRightTop = 6, // 90 degree CW rotation | 47 OriginRightTop = 6, // 90 degree CW rotation |
48 OriginRightBottom = 7, // mirror along x-axis + 90 degree CW rotation | 48 OriginRightBottom = 7, // mirror along x-axis + 90 degree CW rotation |
49 OriginLeftBottom = 8, // 270 degree CW rotation | 49 OriginLeftBottom = 8, // 270 degree CW rotation |
50 // All other values are "reserved" as of EXIF 2.2 | 50 // All other values are "reserved" as of EXIF 2.2 |
51 DefaultImageOrientation = OriginTopLeft, | 51 DefaultImageOrientation = OriginTopLeft, |
52 ImageOrientationEnumEnd = OriginLeftBottom + 1, | 52 ImageOrientationEnumEnd = OriginLeftBottom + 1, |
53 }; | 53 }; |
54 | 54 |
55 enum RespectImageOrientationEnum { | 55 enum RespectImageOrientationEnum { |
56 DoNotRespectImageOrientation = 0, | 56 DoNotRespectImageOrientation = 0, |
57 RespectImageOrientation = 1 | 57 RespectImageOrientation = 1 |
58 }; | 58 }; |
59 | 59 |
60 class PLATFORM_EXPORT ImageOrientation final { | 60 class PLATFORM_EXPORT ImageOrientation final { |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 ImageOrientationEnum orientation() const { return m_orientation; } | 93 ImageOrientationEnum orientation() const { return m_orientation; } |
94 | 94 |
95 private: | 95 private: |
96 // FIXME: This only needs to be one byte. | 96 // FIXME: This only needs to be one byte. |
97 ImageOrientationEnum m_orientation; | 97 ImageOrientationEnum m_orientation; |
98 }; | 98 }; |
99 | 99 |
100 } // namespace blink | 100 } // namespace blink |
101 | 101 |
102 #endif // ImageOrientation_h | 102 #endif // ImageOrientation_h |
OLD | NEW |