edith_codecs
Clone
https://git.tahinli.com/Tahinli/edith_codecs.git
0 watching0 forksRust370.3 MiB9b67700Tahinli3 days ago4021 commits
| 1 | //! EXIF orientation, read from the TIFF block that JPEG, WebP and PNG all carry. |
| 2 | //! |
| 3 | //! The TIFF block is bare in WebP's `EXIF` chunk and in PNG's `eXIf` chunk (PNG 1.5 |
| 4 | //! and libwebp both define it that way, and `image` reads it that way). JPEG's APP1 |
| 5 | //! segment puts an `Exif\0\0` header in front, which the JPEG reader strips. Only |
| 6 | //! IFD0's orientation tag (0x0112) is read, which is the one the EXIF spec defines. |
| 7 | |
| 8 | /// Orientation 1..=8 from a bare TIFF block, or `None` if the block is not a |
| 9 | /// readable TIFF or carries no valid orientation entry. |
| 10 | pub |
| 11 | |
| 12 | |
| 13 | |
| 14 | |
| 15 | |
| 16 | |
| 17 | |
| 18 | |
| 19 | |
| 20 | |
| 21 | |
| 22 | |
| 23 | |
| 24 | |
| 25 | |
| 26 | |
| 27 | |
| 28 | |
| 29 | |
| 30 | |
| 31 | |
| 32 | |
| 33 | |
| 34 | |
| 35 | |
| 36 | |
| 37 | |
| 38 | |
| 39 | |
| 40 | |
| 41 | |
| 42 | |
| 43 | |
| 44 | |
| 45 | |
| 46 |