mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-22 20:01:29 +08:00
Add precise values for enum members where possible (#11299)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> Co-authored-by: Alex Waygood <alex.waygood@gmail.com>
This commit is contained in:
@@ -5,17 +5,17 @@ from typing import ClassVar, Literal
|
||||
from .ImageFile import ImageFile, PyDecoder, PyEncoder
|
||||
|
||||
class Format(IntEnum):
|
||||
JPEG: int
|
||||
JPEG = 0
|
||||
|
||||
class Encoding(IntEnum):
|
||||
UNCOMPRESSED: int
|
||||
DXT: int
|
||||
UNCOMPRESSED_RAW_BGRA: int
|
||||
UNCOMPRESSED = 1
|
||||
DXT = 2
|
||||
UNCOMPRESSED_RAW_BGRA = 3
|
||||
|
||||
class AlphaEncoding(IntEnum):
|
||||
DXT1: int
|
||||
DXT3: int
|
||||
DXT5: int
|
||||
DXT1 = 0
|
||||
DXT3 = 1
|
||||
DXT5 = 7
|
||||
|
||||
def unpack_565(i): ...
|
||||
def decode_dxt1(data, alpha: bool = False): ...
|
||||
|
||||
@@ -2,346 +2,346 @@ from collections.abc import Mapping
|
||||
from enum import IntEnum
|
||||
|
||||
class Base(IntEnum):
|
||||
InteropIndex: int
|
||||
ProcessingSoftware: int
|
||||
NewSubfileType: int
|
||||
SubfileType: int
|
||||
ImageWidth: int
|
||||
ImageLength: int
|
||||
BitsPerSample: int
|
||||
Compression: int
|
||||
PhotometricInterpretation: int
|
||||
Thresholding: int
|
||||
CellWidth: int
|
||||
CellLength: int
|
||||
FillOrder: int
|
||||
DocumentName: int
|
||||
ImageDescription: int
|
||||
Make: int
|
||||
Model: int
|
||||
StripOffsets: int
|
||||
Orientation: int
|
||||
SamplesPerPixel: int
|
||||
RowsPerStrip: int
|
||||
StripByteCounts: int
|
||||
MinSampleValue: int
|
||||
MaxSampleValue: int
|
||||
XResolution: int
|
||||
YResolution: int
|
||||
PlanarConfiguration: int
|
||||
PageName: int
|
||||
FreeOffsets: int
|
||||
FreeByteCounts: int
|
||||
GrayResponseUnit: int
|
||||
GrayResponseCurve: int
|
||||
T4Options: int
|
||||
T6Options: int
|
||||
ResolutionUnit: int
|
||||
PageNumber: int
|
||||
TransferFunction: int
|
||||
Software: int
|
||||
DateTime: int
|
||||
Artist: int
|
||||
HostComputer: int
|
||||
Predictor: int
|
||||
WhitePoint: int
|
||||
PrimaryChromaticities: int
|
||||
ColorMap: int
|
||||
HalftoneHints: int
|
||||
TileWidth: int
|
||||
TileLength: int
|
||||
TileOffsets: int
|
||||
TileByteCounts: int
|
||||
SubIFDs: int
|
||||
InkSet: int
|
||||
InkNames: int
|
||||
NumberOfInks: int
|
||||
DotRange: int
|
||||
TargetPrinter: int
|
||||
ExtraSamples: int
|
||||
SampleFormat: int
|
||||
SMinSampleValue: int
|
||||
SMaxSampleValue: int
|
||||
TransferRange: int
|
||||
ClipPath: int
|
||||
XClipPathUnits: int
|
||||
YClipPathUnits: int
|
||||
Indexed: int
|
||||
JPEGTables: int
|
||||
OPIProxy: int
|
||||
JPEGProc: int
|
||||
JpegIFOffset: int
|
||||
JpegIFByteCount: int
|
||||
JpegRestartInterval: int
|
||||
JpegLosslessPredictors: int
|
||||
JpegPointTransforms: int
|
||||
JpegQTables: int
|
||||
JpegDCTables: int
|
||||
JpegACTables: int
|
||||
YCbCrCoefficients: int
|
||||
YCbCrSubSampling: int
|
||||
YCbCrPositioning: int
|
||||
ReferenceBlackWhite: int
|
||||
XMLPacket: int
|
||||
RelatedImageFileFormat: int
|
||||
RelatedImageWidth: int
|
||||
RelatedImageLength: int
|
||||
Rating: int
|
||||
RatingPercent: int
|
||||
ImageID: int
|
||||
CFARepeatPatternDim: int
|
||||
BatteryLevel: int
|
||||
Copyright: int
|
||||
ExposureTime: int
|
||||
FNumber: int
|
||||
IPTCNAA: int
|
||||
ImageResources: int
|
||||
ExifOffset: int
|
||||
InterColorProfile: int
|
||||
ExposureProgram: int
|
||||
SpectralSensitivity: int
|
||||
GPSInfo: int
|
||||
ISOSpeedRatings: int
|
||||
OECF: int
|
||||
Interlace: int
|
||||
TimeZoneOffset: int
|
||||
SelfTimerMode: int
|
||||
SensitivityType: int
|
||||
StandardOutputSensitivity: int
|
||||
RecommendedExposureIndex: int
|
||||
ISOSpeed: int
|
||||
ISOSpeedLatitudeyyy: int
|
||||
ISOSpeedLatitudezzz: int
|
||||
ExifVersion: int
|
||||
DateTimeOriginal: int
|
||||
DateTimeDigitized: int
|
||||
OffsetTime: int
|
||||
OffsetTimeOriginal: int
|
||||
OffsetTimeDigitized: int
|
||||
ComponentsConfiguration: int
|
||||
CompressedBitsPerPixel: int
|
||||
ShutterSpeedValue: int
|
||||
ApertureValue: int
|
||||
BrightnessValue: int
|
||||
ExposureBiasValue: int
|
||||
MaxApertureValue: int
|
||||
SubjectDistance: int
|
||||
MeteringMode: int
|
||||
LightSource: int
|
||||
Flash: int
|
||||
FocalLength: int
|
||||
Noise: int
|
||||
ImageNumber: int
|
||||
SecurityClassification: int
|
||||
ImageHistory: int
|
||||
TIFFEPStandardID: int
|
||||
MakerNote: int
|
||||
UserComment: int
|
||||
SubsecTime: int
|
||||
SubsecTimeOriginal: int
|
||||
SubsecTimeDigitized: int
|
||||
AmbientTemperature: int
|
||||
Humidity: int
|
||||
Pressure: int
|
||||
WaterDepth: int
|
||||
Acceleration: int
|
||||
CameraElevationAngle: int
|
||||
XPTitle: int
|
||||
XPComment: int
|
||||
XPAuthor: int
|
||||
XPKeywords: int
|
||||
XPSubject: int
|
||||
FlashPixVersion: int
|
||||
ColorSpace: int
|
||||
ExifImageWidth: int
|
||||
ExifImageHeight: int
|
||||
RelatedSoundFile: int
|
||||
ExifInteroperabilityOffset: int
|
||||
FlashEnergy: int
|
||||
SpatialFrequencyResponse: int
|
||||
FocalPlaneXResolution: int
|
||||
FocalPlaneYResolution: int
|
||||
FocalPlaneResolutionUnit: int
|
||||
SubjectLocation: int
|
||||
ExposureIndex: int
|
||||
SensingMethod: int
|
||||
FileSource: int
|
||||
SceneType: int
|
||||
CFAPattern: int
|
||||
CustomRendered: int
|
||||
ExposureMode: int
|
||||
WhiteBalance: int
|
||||
DigitalZoomRatio: int
|
||||
FocalLengthIn35mmFilm: int
|
||||
SceneCaptureType: int
|
||||
GainControl: int
|
||||
Contrast: int
|
||||
Saturation: int
|
||||
Sharpness: int
|
||||
DeviceSettingDescription: int
|
||||
SubjectDistanceRange: int
|
||||
ImageUniqueID: int
|
||||
CameraOwnerName: int
|
||||
BodySerialNumber: int
|
||||
LensSpecification: int
|
||||
LensMake: int
|
||||
LensModel: int
|
||||
LensSerialNumber: int
|
||||
CompositeImage: int
|
||||
CompositeImageCount: int
|
||||
CompositeImageExposureTimes: int
|
||||
Gamma: int
|
||||
PrintImageMatching: int
|
||||
DNGVersion: int
|
||||
DNGBackwardVersion: int
|
||||
UniqueCameraModel: int
|
||||
LocalizedCameraModel: int
|
||||
CFAPlaneColor: int
|
||||
CFALayout: int
|
||||
LinearizationTable: int
|
||||
BlackLevelRepeatDim: int
|
||||
BlackLevel: int
|
||||
BlackLevelDeltaH: int
|
||||
BlackLevelDeltaV: int
|
||||
WhiteLevel: int
|
||||
DefaultScale: int
|
||||
DefaultCropOrigin: int
|
||||
DefaultCropSize: int
|
||||
ColorMatrix1: int
|
||||
ColorMatrix2: int
|
||||
CameraCalibration1: int
|
||||
CameraCalibration2: int
|
||||
ReductionMatrix1: int
|
||||
ReductionMatrix2: int
|
||||
AnalogBalance: int
|
||||
AsShotNeutral: int
|
||||
AsShotWhiteXY: int
|
||||
BaselineExposure: int
|
||||
BaselineNoise: int
|
||||
BaselineSharpness: int
|
||||
BayerGreenSplit: int
|
||||
LinearResponseLimit: int
|
||||
CameraSerialNumber: int
|
||||
LensInfo: int
|
||||
ChromaBlurRadius: int
|
||||
AntiAliasStrength: int
|
||||
ShadowScale: int
|
||||
DNGPrivateData: int
|
||||
MakerNoteSafety: int
|
||||
CalibrationIlluminant1: int
|
||||
CalibrationIlluminant2: int
|
||||
BestQualityScale: int
|
||||
RawDataUniqueID: int
|
||||
OriginalRawFileName: int
|
||||
OriginalRawFileData: int
|
||||
ActiveArea: int
|
||||
MaskedAreas: int
|
||||
AsShotICCProfile: int
|
||||
AsShotPreProfileMatrix: int
|
||||
CurrentICCProfile: int
|
||||
CurrentPreProfileMatrix: int
|
||||
ColorimetricReference: int
|
||||
CameraCalibrationSignature: int
|
||||
ProfileCalibrationSignature: int
|
||||
AsShotProfileName: int
|
||||
NoiseReductionApplied: int
|
||||
ProfileName: int
|
||||
ProfileHueSatMapDims: int
|
||||
ProfileHueSatMapData1: int
|
||||
ProfileHueSatMapData2: int
|
||||
ProfileToneCurve: int
|
||||
ProfileEmbedPolicy: int
|
||||
ProfileCopyright: int
|
||||
ForwardMatrix1: int
|
||||
ForwardMatrix2: int
|
||||
PreviewApplicationName: int
|
||||
PreviewApplicationVersion: int
|
||||
PreviewSettingsName: int
|
||||
PreviewSettingsDigest: int
|
||||
PreviewColorSpace: int
|
||||
PreviewDateTime: int
|
||||
RawImageDigest: int
|
||||
OriginalRawFileDigest: int
|
||||
SubTileBlockSize: int
|
||||
RowInterleaveFactor: int
|
||||
ProfileLookTableDims: int
|
||||
ProfileLookTableData: int
|
||||
OpcodeList1: int
|
||||
OpcodeList2: int
|
||||
OpcodeList3: int
|
||||
NoiseProfile: int
|
||||
InteropIndex = 0x0001
|
||||
ProcessingSoftware = 0x000B
|
||||
NewSubfileType = 0x00FE
|
||||
SubfileType = 0x00FF
|
||||
ImageWidth = 0x0100
|
||||
ImageLength = 0x0101
|
||||
BitsPerSample = 0x0102
|
||||
Compression = 0x0103
|
||||
PhotometricInterpretation = 0x0106
|
||||
Thresholding = 0x0107
|
||||
CellWidth = 0x0108
|
||||
CellLength = 0x0109
|
||||
FillOrder = 0x010A
|
||||
DocumentName = 0x010D
|
||||
ImageDescription = 0x010E
|
||||
Make = 0x010F
|
||||
Model = 0x0110
|
||||
StripOffsets = 0x0111
|
||||
Orientation = 0x0112
|
||||
SamplesPerPixel = 0x0115
|
||||
RowsPerStrip = 0x0116
|
||||
StripByteCounts = 0x0117
|
||||
MinSampleValue = 0x0118
|
||||
MaxSampleValue = 0x0119
|
||||
XResolution = 0x011A
|
||||
YResolution = 0x011B
|
||||
PlanarConfiguration = 0x011C
|
||||
PageName = 0x011D
|
||||
FreeOffsets = 0x0120
|
||||
FreeByteCounts = 0x0121
|
||||
GrayResponseUnit = 0x0122
|
||||
GrayResponseCurve = 0x0123
|
||||
T4Options = 0x0124
|
||||
T6Options = 0x0125
|
||||
ResolutionUnit = 0x0128
|
||||
PageNumber = 0x0129
|
||||
TransferFunction = 0x012D
|
||||
Software = 0x0131
|
||||
DateTime = 0x0132
|
||||
Artist = 0x013B
|
||||
HostComputer = 0x013C
|
||||
Predictor = 0x013D
|
||||
WhitePoint = 0x013E
|
||||
PrimaryChromaticities = 0x013F
|
||||
ColorMap = 0x0140
|
||||
HalftoneHints = 0x0141
|
||||
TileWidth = 0x0142
|
||||
TileLength = 0x0143
|
||||
TileOffsets = 0x0144
|
||||
TileByteCounts = 0x0145
|
||||
SubIFDs = 0x014A
|
||||
InkSet = 0x014C
|
||||
InkNames = 0x014D
|
||||
NumberOfInks = 0x014E
|
||||
DotRange = 0x0150
|
||||
TargetPrinter = 0x0151
|
||||
ExtraSamples = 0x0152
|
||||
SampleFormat = 0x0153
|
||||
SMinSampleValue = 0x0154
|
||||
SMaxSampleValue = 0x0155
|
||||
TransferRange = 0x0156
|
||||
ClipPath = 0x0157
|
||||
XClipPathUnits = 0x0158
|
||||
YClipPathUnits = 0x0159
|
||||
Indexed = 0x015A
|
||||
JPEGTables = 0x015B
|
||||
OPIProxy = 0x015F
|
||||
JPEGProc = 0x0200
|
||||
JpegIFOffset = 0x0201
|
||||
JpegIFByteCount = 0x0202
|
||||
JpegRestartInterval = 0x0203
|
||||
JpegLosslessPredictors = 0x0205
|
||||
JpegPointTransforms = 0x0206
|
||||
JpegQTables = 0x0207
|
||||
JpegDCTables = 0x0208
|
||||
JpegACTables = 0x0209
|
||||
YCbCrCoefficients = 0x0211
|
||||
YCbCrSubSampling = 0x0212
|
||||
YCbCrPositioning = 0x0213
|
||||
ReferenceBlackWhite = 0x0214
|
||||
XMLPacket = 0x02BC
|
||||
RelatedImageFileFormat = 0x1000
|
||||
RelatedImageWidth = 0x1001
|
||||
RelatedImageLength = 0x1002
|
||||
Rating = 0x4746
|
||||
RatingPercent = 0x4749
|
||||
ImageID = 0x800D
|
||||
CFARepeatPatternDim = 0x828D
|
||||
BatteryLevel = 0x828F
|
||||
Copyright = 0x8298
|
||||
ExposureTime = 0x829A
|
||||
FNumber = 0x829D
|
||||
IPTCNAA = 0x83BB
|
||||
ImageResources = 0x8649
|
||||
ExifOffset = 0x8769
|
||||
InterColorProfile = 0x8773
|
||||
ExposureProgram = 0x8822
|
||||
SpectralSensitivity = 0x8824
|
||||
GPSInfo = 0x8825
|
||||
ISOSpeedRatings = 0x8827
|
||||
OECF = 0x8828
|
||||
Interlace = 0x8829
|
||||
TimeZoneOffset = 0x882A
|
||||
SelfTimerMode = 0x882B
|
||||
SensitivityType = 0x8830
|
||||
StandardOutputSensitivity = 0x8831
|
||||
RecommendedExposureIndex = 0x8832
|
||||
ISOSpeed = 0x8833
|
||||
ISOSpeedLatitudeyyy = 0x8834
|
||||
ISOSpeedLatitudezzz = 0x8835
|
||||
ExifVersion = 0x9000
|
||||
DateTimeOriginal = 0x9003
|
||||
DateTimeDigitized = 0x9004
|
||||
OffsetTime = 0x9010
|
||||
OffsetTimeOriginal = 0x9011
|
||||
OffsetTimeDigitized = 0x9012
|
||||
ComponentsConfiguration = 0x9101
|
||||
CompressedBitsPerPixel = 0x9102
|
||||
ShutterSpeedValue = 0x9201
|
||||
ApertureValue = 0x9202
|
||||
BrightnessValue = 0x9203
|
||||
ExposureBiasValue = 0x9204
|
||||
MaxApertureValue = 0x9205
|
||||
SubjectDistance = 0x9206
|
||||
MeteringMode = 0x9207
|
||||
LightSource = 0x9208
|
||||
Flash = 0x9209
|
||||
FocalLength = 0x920A
|
||||
Noise = 0x920D
|
||||
ImageNumber = 0x9211
|
||||
SecurityClassification = 0x9212
|
||||
ImageHistory = 0x9213
|
||||
TIFFEPStandardID = 0x9216
|
||||
MakerNote = 0x927C
|
||||
UserComment = 0x9286
|
||||
SubsecTime = 0x9290
|
||||
SubsecTimeOriginal = 0x9291
|
||||
SubsecTimeDigitized = 0x9292
|
||||
AmbientTemperature = 0x9400
|
||||
Humidity = 0x9401
|
||||
Pressure = 0x9402
|
||||
WaterDepth = 0x9403
|
||||
Acceleration = 0x9404
|
||||
CameraElevationAngle = 0x9405
|
||||
XPTitle = 0x9C9B
|
||||
XPComment = 0x9C9C
|
||||
XPAuthor = 0x9C9D
|
||||
XPKeywords = 0x9C9E
|
||||
XPSubject = 0x9C9F
|
||||
FlashPixVersion = 0xA000
|
||||
ColorSpace = 0xA001
|
||||
ExifImageWidth = 0xA002
|
||||
ExifImageHeight = 0xA003
|
||||
RelatedSoundFile = 0xA004
|
||||
ExifInteroperabilityOffset = 0xA005
|
||||
FlashEnergy = 0xA20B
|
||||
SpatialFrequencyResponse = 0xA20C
|
||||
FocalPlaneXResolution = 0xA20E
|
||||
FocalPlaneYResolution = 0xA20F
|
||||
FocalPlaneResolutionUnit = 0xA210
|
||||
SubjectLocation = 0xA214
|
||||
ExposureIndex = 0xA215
|
||||
SensingMethod = 0xA217
|
||||
FileSource = 0xA300
|
||||
SceneType = 0xA301
|
||||
CFAPattern = 0xA302
|
||||
CustomRendered = 0xA401
|
||||
ExposureMode = 0xA402
|
||||
WhiteBalance = 0xA403
|
||||
DigitalZoomRatio = 0xA404
|
||||
FocalLengthIn35mmFilm = 0xA405
|
||||
SceneCaptureType = 0xA406
|
||||
GainControl = 0xA407
|
||||
Contrast = 0xA408
|
||||
Saturation = 0xA409
|
||||
Sharpness = 0xA40A
|
||||
DeviceSettingDescription = 0xA40B
|
||||
SubjectDistanceRange = 0xA40C
|
||||
ImageUniqueID = 0xA420
|
||||
CameraOwnerName = 0xA430
|
||||
BodySerialNumber = 0xA431
|
||||
LensSpecification = 0xA432
|
||||
LensMake = 0xA433
|
||||
LensModel = 0xA434
|
||||
LensSerialNumber = 0xA435
|
||||
CompositeImage = 0xA460
|
||||
CompositeImageCount = 0xA461
|
||||
CompositeImageExposureTimes = 0xA462
|
||||
Gamma = 0xA500
|
||||
PrintImageMatching = 0xC4A5
|
||||
DNGVersion = 0xC612
|
||||
DNGBackwardVersion = 0xC613
|
||||
UniqueCameraModel = 0xC614
|
||||
LocalizedCameraModel = 0xC615
|
||||
CFAPlaneColor = 0xC616
|
||||
CFALayout = 0xC617
|
||||
LinearizationTable = 0xC618
|
||||
BlackLevelRepeatDim = 0xC619
|
||||
BlackLevel = 0xC61A
|
||||
BlackLevelDeltaH = 0xC61B
|
||||
BlackLevelDeltaV = 0xC61C
|
||||
WhiteLevel = 0xC61D
|
||||
DefaultScale = 0xC61E
|
||||
DefaultCropOrigin = 0xC61F
|
||||
DefaultCropSize = 0xC620
|
||||
ColorMatrix1 = 0xC621
|
||||
ColorMatrix2 = 0xC622
|
||||
CameraCalibration1 = 0xC623
|
||||
CameraCalibration2 = 0xC624
|
||||
ReductionMatrix1 = 0xC625
|
||||
ReductionMatrix2 = 0xC626
|
||||
AnalogBalance = 0xC627
|
||||
AsShotNeutral = 0xC628
|
||||
AsShotWhiteXY = 0xC629
|
||||
BaselineExposure = 0xC62A
|
||||
BaselineNoise = 0xC62B
|
||||
BaselineSharpness = 0xC62C
|
||||
BayerGreenSplit = 0xC62D
|
||||
LinearResponseLimit = 0xC62E
|
||||
CameraSerialNumber = 0xC62F
|
||||
LensInfo = 0xC630
|
||||
ChromaBlurRadius = 0xC631
|
||||
AntiAliasStrength = 0xC632
|
||||
ShadowScale = 0xC633
|
||||
DNGPrivateData = 0xC634
|
||||
MakerNoteSafety = 0xC635
|
||||
CalibrationIlluminant1 = 0xC65A
|
||||
CalibrationIlluminant2 = 0xC65B
|
||||
BestQualityScale = 0xC65C
|
||||
RawDataUniqueID = 0xC65D
|
||||
OriginalRawFileName = 0xC68B
|
||||
OriginalRawFileData = 0xC68C
|
||||
ActiveArea = 0xC68D
|
||||
MaskedAreas = 0xC68E
|
||||
AsShotICCProfile = 0xC68F
|
||||
AsShotPreProfileMatrix = 0xC690
|
||||
CurrentICCProfile = 0xC691
|
||||
CurrentPreProfileMatrix = 0xC692
|
||||
ColorimetricReference = 0xC6BF
|
||||
CameraCalibrationSignature = 0xC6F3
|
||||
ProfileCalibrationSignature = 0xC6F4
|
||||
AsShotProfileName = 0xC6F6
|
||||
NoiseReductionApplied = 0xC6F7
|
||||
ProfileName = 0xC6F8
|
||||
ProfileHueSatMapDims = 0xC6F9
|
||||
ProfileHueSatMapData1 = 0xC6FA
|
||||
ProfileHueSatMapData2 = 0xC6FB
|
||||
ProfileToneCurve = 0xC6FC
|
||||
ProfileEmbedPolicy = 0xC6FD
|
||||
ProfileCopyright = 0xC6FE
|
||||
ForwardMatrix1 = 0xC714
|
||||
ForwardMatrix2 = 0xC715
|
||||
PreviewApplicationName = 0xC716
|
||||
PreviewApplicationVersion = 0xC717
|
||||
PreviewSettingsName = 0xC718
|
||||
PreviewSettingsDigest = 0xC719
|
||||
PreviewColorSpace = 0xC71A
|
||||
PreviewDateTime = 0xC71B
|
||||
RawImageDigest = 0xC71C
|
||||
OriginalRawFileDigest = 0xC71D
|
||||
SubTileBlockSize = 0xC71E
|
||||
RowInterleaveFactor = 0xC71F
|
||||
ProfileLookTableDims = 0xC725
|
||||
ProfileLookTableData = 0xC726
|
||||
OpcodeList1 = 0xC740
|
||||
OpcodeList2 = 0xC741
|
||||
OpcodeList3 = 0xC74E
|
||||
NoiseProfile = 0xC761
|
||||
|
||||
TAGS: Mapping[int, str]
|
||||
|
||||
class GPS(IntEnum):
|
||||
GPSVersionID: int
|
||||
GPSLatitudeRef: int
|
||||
GPSLatitude: int
|
||||
GPSLongitudeRef: int
|
||||
GPSLongitude: int
|
||||
GPSAltitudeRef: int
|
||||
GPSAltitude: int
|
||||
GPSTimeStamp: int
|
||||
GPSSatellites: int
|
||||
GPSStatus: int
|
||||
GPSMeasureMode: int
|
||||
GPSDOP: int
|
||||
GPSSpeedRef: int
|
||||
GPSSpeed: int
|
||||
GPSTrackRef: int
|
||||
GPSTrack: int
|
||||
GPSImgDirectionRef: int
|
||||
GPSImgDirection: int
|
||||
GPSMapDatum: int
|
||||
GPSDestLatitudeRef: int
|
||||
GPSDestLatitude: int
|
||||
GPSDestLongitudeRef: int
|
||||
GPSDestLongitude: int
|
||||
GPSDestBearingRef: int
|
||||
GPSDestBearing: int
|
||||
GPSDestDistanceRef: int
|
||||
GPSDestDistance: int
|
||||
GPSProcessingMethod: int
|
||||
GPSAreaInformation: int
|
||||
GPSDateStamp: int
|
||||
GPSDifferential: int
|
||||
GPSHPositioningError: int
|
||||
GPSVersionID = 0
|
||||
GPSLatitudeRef = 1
|
||||
GPSLatitude = 2
|
||||
GPSLongitudeRef = 3
|
||||
GPSLongitude = 4
|
||||
GPSAltitudeRef = 5
|
||||
GPSAltitude = 6
|
||||
GPSTimeStamp = 7
|
||||
GPSSatellites = 8
|
||||
GPSStatus = 9
|
||||
GPSMeasureMode = 10
|
||||
GPSDOP = 11
|
||||
GPSSpeedRef = 12
|
||||
GPSSpeed = 13
|
||||
GPSTrackRef = 14
|
||||
GPSTrack = 15
|
||||
GPSImgDirectionRef = 16
|
||||
GPSImgDirection = 17
|
||||
GPSMapDatum = 18
|
||||
GPSDestLatitudeRef = 19
|
||||
GPSDestLatitude = 20
|
||||
GPSDestLongitudeRef = 21
|
||||
GPSDestLongitude = 22
|
||||
GPSDestBearingRef = 23
|
||||
GPSDestBearing = 24
|
||||
GPSDestDistanceRef = 25
|
||||
GPSDestDistance = 26
|
||||
GPSProcessingMethod = 27
|
||||
GPSAreaInformation = 28
|
||||
GPSDateStamp = 29
|
||||
GPSDifferential = 30
|
||||
GPSHPositioningError = 31
|
||||
|
||||
GPSTAGS: Mapping[int, str]
|
||||
|
||||
class Interop(IntEnum):
|
||||
InteropIndex: int
|
||||
InteropVersion: int
|
||||
RelatedImageFileFormat: int
|
||||
RelatedImageWidth: int
|
||||
RleatedImageHeight: int
|
||||
InteropIndex = 1
|
||||
InteropVersion = 2
|
||||
RelatedImageFileFormat = 4096
|
||||
RelatedImageWidth = 4097
|
||||
RleatedImageHeight = 4098
|
||||
|
||||
class IFD(IntEnum):
|
||||
Exif: int
|
||||
GPSInfo: int
|
||||
Makernote: int
|
||||
Interop: int
|
||||
IFD1: int
|
||||
Exif = 34665
|
||||
GPSInfo = 34853
|
||||
Makernote = 37500
|
||||
Interop = 40965
|
||||
IFD1 = -1
|
||||
|
||||
class LightSource(IntEnum):
|
||||
Unknown: int
|
||||
Daylight: int
|
||||
Fluorescent: int
|
||||
Tungsten: int
|
||||
Flash: int
|
||||
Fine: int
|
||||
Cloudy: int
|
||||
Shade: int
|
||||
DaylightFluorescent: int
|
||||
DayWhiteFluorescent: int
|
||||
CoolWhiteFluorescent: int
|
||||
WhiteFluorescent: int
|
||||
StandardLightA: int
|
||||
StandardLightB: int
|
||||
StandardLightC: int
|
||||
D55: int
|
||||
D65: int
|
||||
D75: int
|
||||
D50: int
|
||||
ISO: int
|
||||
Other: int
|
||||
Unknown = 0
|
||||
Daylight = 1
|
||||
Fluorescent = 2
|
||||
Tungsten = 3
|
||||
Flash = 4
|
||||
Fine = 9
|
||||
Cloudy = 10
|
||||
Shade = 11
|
||||
DaylightFluorescent = 12
|
||||
DayWhiteFluorescent = 13
|
||||
CoolWhiteFluorescent = 14
|
||||
WhiteFluorescent = 15
|
||||
StandardLightA = 17
|
||||
StandardLightB = 18
|
||||
StandardLightC = 19
|
||||
D55 = 20
|
||||
D65 = 21
|
||||
D75 = 22
|
||||
D50 = 23
|
||||
ISO = 24
|
||||
Other = 255
|
||||
|
||||
@@ -6,8 +6,8 @@ from .ImageFile import ImageFile
|
||||
MAGIC: bytes
|
||||
|
||||
class Format(IntEnum):
|
||||
DXT1: int
|
||||
UNCOMPRESSED: int
|
||||
DXT1 = 0
|
||||
UNCOMPRESSED = 1
|
||||
|
||||
class FtexImageFile(ImageFile):
|
||||
format: ClassVar[Literal["FTEX"]]
|
||||
|
||||
@@ -56,13 +56,13 @@ USE_CFFI_ACCESS: bool
|
||||
def isImageType(t: object) -> TypeGuard[Image]: ...
|
||||
|
||||
class Transpose(IntEnum):
|
||||
FLIP_LEFT_RIGHT: Literal[0]
|
||||
FLIP_TOP_BOTTOM: Literal[1]
|
||||
ROTATE_90: Literal[2]
|
||||
ROTATE_180: Literal[3]
|
||||
ROTATE_270: Literal[4]
|
||||
TRANSPOSE: Literal[5]
|
||||
TRANSVERSE: Literal[6]
|
||||
FLIP_LEFT_RIGHT = 0
|
||||
FLIP_TOP_BOTTOM = 1
|
||||
ROTATE_90 = 2
|
||||
ROTATE_180 = 3
|
||||
ROTATE_270 = 4
|
||||
TRANSPOSE = 5
|
||||
TRANSVERSE = 6
|
||||
|
||||
# All Transpose items
|
||||
FLIP_LEFT_RIGHT: Literal[0]
|
||||
@@ -74,11 +74,11 @@ TRANSPOSE: Literal[5]
|
||||
TRANSVERSE: Literal[6]
|
||||
|
||||
class Transform(IntEnum):
|
||||
AFFINE: Literal[0]
|
||||
EXTENT: Literal[1]
|
||||
PERSPECTIVE: Literal[2]
|
||||
QUAD: Literal[3]
|
||||
MESH: Literal[4]
|
||||
AFFINE = 0
|
||||
EXTENT = 1
|
||||
PERSPECTIVE = 2
|
||||
QUAD = 3
|
||||
MESH = 4
|
||||
|
||||
# All Transform items
|
||||
AFFINE: Literal[0]
|
||||
@@ -88,12 +88,12 @@ QUAD: Literal[3]
|
||||
MESH: Literal[4]
|
||||
|
||||
class Resampling(IntEnum):
|
||||
NEAREST: Literal[0]
|
||||
LANCZOS: Literal[1]
|
||||
BILINEAR: Literal[2]
|
||||
BICUBIC: Literal[3]
|
||||
BOX: Literal[4]
|
||||
HAMMING: Literal[5]
|
||||
NEAREST = 0
|
||||
LANCZOS = 1
|
||||
BILINEAR = 2
|
||||
BICUBIC = 3
|
||||
BOX = 4
|
||||
HAMMING = 5
|
||||
|
||||
# All Resampling items
|
||||
NEAREST: Literal[0]
|
||||
@@ -104,10 +104,10 @@ BOX: Literal[4]
|
||||
HAMMING: Literal[5]
|
||||
|
||||
class Dither(IntEnum):
|
||||
NONE: Literal[0]
|
||||
ORDERED: Literal[1]
|
||||
RASTERIZE: Literal[2]
|
||||
FLOYDSTEINBERG: Literal[3]
|
||||
NONE = 0
|
||||
ORDERED = 1
|
||||
RASTERIZE = 2
|
||||
FLOYDSTEINBERG = 3
|
||||
|
||||
# All Dither items
|
||||
NONE: Literal[0]
|
||||
@@ -116,18 +116,18 @@ RASTERIZE: Literal[2]
|
||||
FLOYDSTEINBERG: Literal[3]
|
||||
|
||||
class Palette(IntEnum):
|
||||
WEB: Literal[0]
|
||||
ADAPTIVE: Literal[1]
|
||||
WEB = 0
|
||||
ADAPTIVE = 1
|
||||
|
||||
# All Palette items
|
||||
WEB: Literal[0]
|
||||
ADAPTIVE: Literal[1]
|
||||
|
||||
class Quantize(IntEnum):
|
||||
MEDIANCUT: Literal[0]
|
||||
MAXCOVERAGE: Literal[1]
|
||||
FASTOCTREE: Literal[2]
|
||||
LIBIMAGEQUANT: Literal[3]
|
||||
MEDIANCUT = 0
|
||||
MAXCOVERAGE = 1
|
||||
FASTOCTREE = 2
|
||||
LIBIMAGEQUANT = 3
|
||||
|
||||
# All Quantize items
|
||||
MEDIANCUT: Literal[0]
|
||||
|
||||
@@ -9,15 +9,15 @@ VERSION: str
|
||||
core: Incomplete
|
||||
|
||||
class Intent(IntEnum):
|
||||
PERCEPTUAL: int
|
||||
RELATIVE_COLORIMETRIC: int
|
||||
SATURATION: int
|
||||
ABSOLUTE_COLORIMETRIC: int
|
||||
PERCEPTUAL = 0
|
||||
RELATIVE_COLORIMETRIC = 1
|
||||
SATURATION = 2
|
||||
ABSOLUTE_COLORIMETRIC = 3
|
||||
|
||||
class Direction(IntEnum):
|
||||
INPUT: int
|
||||
OUTPUT: int
|
||||
PROOF: int
|
||||
INPUT = 0
|
||||
OUTPUT = 1
|
||||
PROOF = 2
|
||||
|
||||
FLAGS: Incomplete
|
||||
|
||||
|
||||
@@ -6,8 +6,8 @@ from typing import Final, Literal, Protocol
|
||||
from PIL.Image import Transpose
|
||||
|
||||
class Layout(IntEnum):
|
||||
BASIC: Literal[0]
|
||||
RAQM: Literal[1]
|
||||
BASIC = 0
|
||||
RAQM = 1
|
||||
|
||||
MAX_STRING_LENGTH: Final[int] = 1_000_000
|
||||
|
||||
|
||||
@@ -10,13 +10,13 @@ MAX_TEXT_CHUNK: Incomplete
|
||||
MAX_TEXT_MEMORY: Incomplete
|
||||
|
||||
class Disposal(IntEnum):
|
||||
OP_NONE: int
|
||||
OP_BACKGROUND: int
|
||||
OP_PREVIOUS: int
|
||||
OP_NONE = 0
|
||||
OP_BACKGROUND = 1
|
||||
OP_PREVIOUS = 2
|
||||
|
||||
class Blend(IntEnum):
|
||||
OP_SOURCE: int
|
||||
OP_OVER: int
|
||||
OP_SOURCE = 0
|
||||
OP_OVER = 1
|
||||
|
||||
class ChunkStream:
|
||||
fp: Incomplete
|
||||
|
||||
Reference in New Issue
Block a user