github.com/boki/go-xmp@v1.0.1/models/tiff/enum.go (about) 1 // Copyright (c) 2017-2018 Alexander Eichhorn 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"): you may 4 // not use this file except in compliance with the License. You may obtain 5 // a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 11 // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 12 // License for the specific language governing permissions and limitations 13 // under the License. 14 15 package tiff 16 17 // TIFF enumeration values 18 // http://www.cipa.jp/std/documents/e/DC-008-2012_E.pdf 19 20 type CompressionType int 21 22 const ( 23 CompressionUncompressed CompressionType = 1 24 CompressionJPEG CompressionType = 6 25 ) 26 27 type ColorModel int 28 29 const ( 30 ColorModelWhiteIsZero ColorModel = 0 // WhiteIsZero 31 ColorModelBlackIsZero ColorModel = 1 // BlackIsZero 32 ColorModelRGB ColorModel = 2 // RGB 33 ColorModelRGBPalette ColorModel = 3 // RGB Palette 34 ColorModelTransparencyMask ColorModel = 4 // Transparency Mask 35 ColorModelCMYK ColorModel = 5 // CMYK 36 ColorModelYCbCr ColorModel = 6 // YCbCr 37 ColorModelCIELab ColorModel = 8 // CIELab 38 ColorModelICCLab ColorModel = 9 // ICCLab 39 ColorModelITULab ColorModel = 10 // ITULab 40 ColorModelColorFilterArray ColorModel = 32803 // Color Filter Array 41 ColorModelPixarLogL ColorModel = 32844 // Pixar LogL 42 ColorModelPixarLogLuv ColorModel = 32845 // Pixar LogLuv 43 ColorModelLinearRaw ColorModel = 34892 // Linear Raw 44 ) 45 46 type OrientationType int 47 48 const ( 49 OrientationTopLeft OrientationType = 1 // 1 = Horizontal (normal) 50 OrientationTopRight OrientationType = 2 // 2 = Mirror horizontal 51 OrientationBottomRight OrientationType = 3 // 3 = Rotate 180 52 OrientationBottomLeft OrientationType = 4 // 4 = Mirror vertical 53 OrientationLeftTop OrientationType = 5 // 5 = Mirror horizontal and rotate 270 CW 54 OrientationRightTop OrientationType = 6 // 6 = Rotate 90 CW 55 OrientationRightBottom OrientationType = 7 // 7 = Mirror horizontal and rotate 90 CW 56 OrientationLeftBottom OrientationType = 8 // 8 = Rotate 270 CW 57 ) 58 59 type PlanarType int 60 61 const ( 62 PlanarChunky PlanarType = 1 // 1 = chunky 63 PlanarPlanar PlanarType = 2 // 2 = planar 64 ) 65 66 type YCbCrPosition int 67 68 const ( 69 YCbCrPositionCentered YCbCrPosition = 1 70 YCbCrPositionCoSited YCbCrPosition = 2 71 ) 72 73 type ResolutionUnit int 74 75 const ( 76 ResolutionUnitInches ResolutionUnit = 2 77 ResolutionUnitCentimeter ResolutionUnit = 3 78 )