1
+ /**
2
+ * @param {ByteStream } stream
3
+ * @param {ByteStream } lookAheadStream
4
+ * @param {boolean } debug
5
+ * @returns {ExifValue }
6
+ */
7
+ export function getExifValue ( stream : ByteStream , lookAheadStream : ByteStream , DEBUG ?: boolean ) : ExifValue ;
8
+ export type ExifTagNumber = number ;
9
+ export namespace ExifTagNumber {
10
+ const IMAGE_DESCRIPTION : number ;
11
+ const MAKE : number ;
12
+ const MODEL : number ;
13
+ const ORIENTATION : number ;
14
+ const X_RESOLUTION : number ;
15
+ const Y_RESOLUTION : number ;
16
+ const RESOLUTION_UNIT : number ;
17
+ const SOFTWARE : number ;
18
+ const DATE_TIME : number ;
19
+ const WHITE_POINT : number ;
20
+ const PRIMARY_CHROMATICITIES : number ;
21
+ const Y_CB_CR_COEFFICIENTS : number ;
22
+ const Y_CB_CR_POSITIONING : number ;
23
+ const REFERENCE_BLACK_WHITE : number ;
24
+ const COPYRIGHT : number ;
25
+ const EXIF_OFFSET : number ;
26
+ const EXPOSURE_TIME : number ;
27
+ const F_NUMBER : number ;
28
+ const EXPOSURE_PROGRAM : number ;
29
+ const ISO_SPEED_RATINGS : number ;
30
+ const EXIF_VERSION : number ;
31
+ const DATE_TIME_ORIGINAL : number ;
32
+ const DATE_TIME_DIGITIZED : number ;
33
+ const COMPONENT_CONFIGURATION : number ;
34
+ const COMPRESSED_BITS_PER_PIXEL : number ;
35
+ const SHUTTER_SPEED_VALUE : number ;
36
+ const APERTURE_VALUE : number ;
37
+ const BRIGHTNESS_VALUE : number ;
38
+ const EXPOSURE_BIAS_VALUE : number ;
39
+ const MAX_APERTURE_VALUE : number ;
40
+ const SUBJECT_DISTANCE : number ;
41
+ const METERING_MODE : number ;
42
+ const LIGHT_SOURCE : number ;
43
+ const FLASH : number ;
44
+ const FOCAL_LENGTH : number ;
45
+ const MAKER_NOTE : number ;
46
+ const USER_COMMENT : number ;
47
+ const FLASH_PIX_VERSION : number ;
48
+ const COLOR_SPACE : number ;
49
+ const EXIF_IMAGE_WIDTH : number ;
50
+ const EXIF_IMAGE_HEIGHT : number ;
51
+ const RELATED_SOUND_FILE : number ;
52
+ const EXIF_INTEROPERABILITY_OFFSET : number ;
53
+ const FOCAL_PLANE_X_RESOLUTION : number ;
54
+ const FOCAL_PLANE_Y_RESOLUTION : number ;
55
+ const FOCAL_PLANE_RESOLUTION_UNIT : number ;
56
+ const SENSING_METHOD : number ;
57
+ const FILE_SOURCE : number ;
58
+ const SCENE_TYPE : number ;
59
+ const IMAGE_WIDTH : number ;
60
+ const IMAGE_LENGTH : number ;
61
+ const BITS_PER_SAMPLE : number ;
62
+ const COMPRESSION : number ;
63
+ const PHOTOMETRIC_INTERPRETATION : number ;
64
+ const STRIP_OFFSETS : number ;
65
+ const SAMPLES_PER_PIXEL : number ;
66
+ const ROWS_PER_STRIP : number ;
67
+ const STRIP_BYTE_COUNTS : number ;
68
+ const PLANAR_CONFIGURATION : number ;
69
+ const JPEG_IF_OFFSET : number ;
70
+ const JPEG_IF_BYTE_COUNT : number ;
71
+ const Y_CB_CR_SUB_SAMPLING : number ;
72
+ }
73
+ export type ExifDataFormat = number ;
74
+ export namespace ExifDataFormat {
75
+ const UNSIGNED_BYTE : number ;
76
+ const ASCII_STRING : number ;
77
+ const UNSIGNED_SHORT : number ;
78
+ const UNSIGNED_LONG : number ;
79
+ const UNSIGNED_RATIONAL : number ;
80
+ const SIGNED_BYTE : number ;
81
+ const UNDEFINED : number ;
82
+ const SIGNED_SHORT : number ;
83
+ const SIGNED_LONG : number ;
84
+ const SIGNED_RATIONAL : number ;
85
+ const SINGLE_FLOAT : number ;
86
+ const DOUBLE_FLOAT : number ;
87
+ }
88
+ export type ExifValue = {
89
+ /**
90
+ * The numerical value of the tag.
91
+ */
92
+ tagNumber : ExifTagNumber ;
93
+ /**
94
+ * A string representing the tag number.
95
+ */
96
+ tagName ?: string | undefined ;
97
+ /**
98
+ * The data format.
99
+ */
100
+ dataFormat : ExifDataFormat ;
101
+ /**
102
+ * Populated for SIGNED/UNSIGNED BYTE/SHORT/LONG/FLOAT.
103
+ */
104
+ numericalValue ?: number | undefined ;
105
+ /**
106
+ * Populated only for ASCII_STRING.
107
+ */
108
+ stringValue ?: string | undefined ;
109
+ /**
110
+ * Populated only for SIGNED/UNSIGNED RATIONAL.
111
+ */
112
+ numeratorValue ?: number | undefined ;
113
+ /**
114
+ * Populated only for SIGNED/UNSIGNED RATIONAL.
115
+ */
116
+ denominatorValue ?: number | undefined ;
117
+ /**
118
+ * Populated only for UNDEFINED data format.
119
+ */
120
+ numComponents ?: number | undefined ;
121
+ /**
122
+ * Populated only for UNDEFINED data format.
123
+ */
124
+ offsetValue ?: number | undefined ;
125
+ } ;
126
+ import { ByteStream } from "../../io/bytestream.js" ;
127
+ //# sourceMappingURL=exif.d.ts.map
0 commit comments