Pentax LensType Values

The first number gives the series of the lens, and the second identifies the
lens model. Note that newer series numbers may not always be properly
identified by cameras running older firmware versions. Decimal values have
been added to differentiate lenses which would otherwise have the same
LensType, and are used by the Composite LensID tag when attempting to
identify the specific lens model.

Pentax FlashInfoUnknown Tags

Pentax CameraInfo Tags

(this value, and the values of the tags below, may change if the camera is
serviced)

2

ProductionCode

int32u[2]

4

InternalSerialNumber

int32u

Pentax BatteryInfo Tags

Index1

Tag Name

Writable

Values / Notes

0.1

PowerSource

int8u

[Mask 0x0f]

0x2 = Body Battery

0x3 = Grip Battery

0x4 = External Power Supply

1.1

BodyBatteryState

int8u

(*istD, K100D, K200D, K10D and K20D)

[Mask 0xf0]

0x10 = Empty or Missing

0x20 = Almost Empty

0x30 = Running Low

0x40 = Full

(other models except the K110D, K2000 and K-m)

[Mask 0xf0]

0x10 = Empty or Missing

0x20 = Almost Empty

0x30 = Running Low

0x40 = Close to Full

0x50 = Full

(decoding unknown for other models)

[Mask 0xf0]

1.2

GripBatteryState

GripBatteryState?

int8u
int8u

(K10D and K20D)

[Mask 0x0f]

0x1 = Empty or Missing

0x2 = Almost Empty

0x3 = Running Low

0x4 = Full

(decoding unknown for other models)

[Mask 0x0f]

2

BodyBatteryADNoLoad

BodyBatteryVoltage1

int8u
int16u

(roughly calibrated for K10D with a new Pentax battery)

3

BodyBatteryADLoad

int8u

(roughly calibrated for K10D with a new Pentax battery)

4

GripBatteryADNoLoad

BodyBatteryVoltage2

int8u
int16u

5

GripBatteryADLoad

int8u

6

BodyBatteryVoltage3

int16u

(K-5, K-r and 645D only)

8

BodyBatteryVoltage4

int16u

(K-5 and K-r only)

Pentax AFInfo Tags

Index1

Tag Name

Writable

Values / Notes

0

AFPointsUnknown1?

int16u

0x0 = (none)

0x777 = Central 9 points

0x7ff = All

Bit 0 = Upper-left

Bit 1 = Top

Bit 2 = Upper-right

Bit 3 = Left

Bit 4 = Mid-left

Bit 5 = Center

Bit 6 = Mid-right

Bit 7 = Right

Bit 8 = Lower-left

Bit 9 = Bottom

Bit 10 = Lower-right

2

AFPointsUnknown2?

int16u

0x0 = Auto

Bit 0 = Upper-left

Bit 1 = Top

Bit 2 = Upper-right

Bit 3 = Left

Bit 4 = Mid-left

Bit 5 = Center

Bit 6 = Mid-right

Bit 7 = Right

Bit 8 = Lower-left

Bit 9 = Bottom

Bit 10 = Lower-right

4

AFPredictor

int16s

6

AFDefocus

int8u

7

AFIntegrationTime

int8u

(times less than 2 ms give a value of 0)

11

AFPointsInFocus

int8u

(models other than the K-1 and K-3. May report two points in focus even
though a single AFPoint has been selected, in which case the selected
AFPoint is the first reported)

0 = None

1 = Lower-left, Bottom

2 = Bottom

3 = Lower-right, Bottom

4 = Mid-left, Center

5 = Center (horizontal)

6 = Mid-right, Center

7 = Upper-left, Top

8 = Top

9 = Upper-right, Top

10 = Right

11 = Lower-left, Mid-left

12 = Upper-left, Mid-left

13 = Bottom, Center

14 = Top, Center

15 = Lower-right, Mid-right

16 = Upper-right, Mid-right

17 = Left

18 = Mid-left

19 = Center (vertical)

20 = Mid-right

509

AFHold

int8u

(decoded only for the K-3 II)

0 = Off

1 = Short

2 = Medium

3 = Long

Pentax KelvinWB Tags

White balance Blue/Red gains as a function of color temperature.

Index2

Tag Name

Writable

Values / Notes

1

KelvinWB_Daylight

int16u[4]

5

KelvinWB_01

int16u[4]

9

KelvinWB_02

int16u[4]

13

KelvinWB_03

int16u[4]

17

KelvinWB_04

int16u[4]

21

KelvinWB_05

int16u[4]

25

KelvinWB_06

int16u[4]

29

KelvinWB_07

int16u[4]

33

KelvinWB_08

int16u[4]

37

KelvinWB_09

int16u[4]

41

KelvinWB_10

int16u[4]

45

KelvinWB_11

int16u[4]

49

KelvinWB_12

int16u[4]

53

KelvinWB_13

int16u[4]

57

KelvinWB_14

int16u[4]

61

KelvinWB_15

int16u[4]

65

KelvinWB_16

int16u[4]

Pentax ColorInfo Tags

Index1

Tag Name

Writable

Values / Notes

16

WBShiftAB

int8s

(positive is a shift toward blue)

17

WBShiftGM

int8s

(positive is a shift toward green)

Pentax EVStepInfo Tags

Index1

Tag Name

Writable

Values / Notes

0

EVSteps

int8u

0 = 1/2 EV Steps

1 = 1/3 EV Steps

1

SensitivitySteps

int8u

0 = 1 EV Steps

1 = As EV Steps

Pentax ShotInfo Tags

Index1

Tag Name

Writable

Values / Notes

1

CameraOrientation

int8u

(K-5, K-7, K-r and K-x)

0x10 = Horizontal (normal)

0x20 = Rotate 180

0x30 = Rotate 90 CW

0x40 = Rotate 270 CW

0x50 = Upwards

0x60 = Downwards

Pentax FacePos Tags

Index2

Tag Name

Writable

Values / Notes

0

Face1Position

int16u[2]

(X/Y coordinates of face center in full-sized image)

2

Face2Position

int16u[2]

4

Face3Position

int16u[2]

6

Face4Position

int16u[2]

8

Face5Position

int16u[2]

10

Face6Position

int16u[2]

12

Face7Position

int16u[2]

14

Face8Position

int16u[2]

16

Face9Position

int16u[2]

18

Face10Position

int16u[2]

20

Face11Position

int16u[2]

22

Face12Position

int16u[2]

24

Face13Position

int16u[2]

26

Face14Position

int16u[2]

28

Face15Position

int16u[2]

30

Face16Position

int16u[2]

32

Face17Position

int16u[2]

34

Face18Position

int16u[2]

36

Face19Position

int16u[2]

38

Face20Position

int16u[2]

40

Face21Position

int16u[2]

42

Face22Position

int16u[2]

44

Face23Position

int16u[2]

46

Face24Position

int16u[2]

48

Face25Position

int16u[2]

50

Face26Position

int16u[2]

52

Face27Position

int16u[2]

54

Face28Position

int16u[2]

56

Face29Position

int16u[2]

58

Face30Position

int16u[2]

60

Face31Position

int16u[2]

62

Face32Position

int16u[2]

Pentax FaceSize Tags

Index2

Tag Name

Writable

Values / Notes

0

Face1Size

int16u[2]

2

Face2Size

int16u[2]

4

Face3Size

int16u[2]

6

Face4Size

int16u[2]

8

Face5Size

int16u[2]

10

Face6Size

int16u[2]

12

Face7Size

int16u[2]

14

Face8Size

int16u[2]

16

Face9Size

int16u[2]

18

Face10Size

int16u[2]

20

Face11Size

int16u[2]

22

Face12Size

int16u[2]

24

Face13Size

int16u[2]

26

Face14Size

int16u[2]

28

Face15Size

int16u[2]

30

Face16Size

int16u[2]

32

Face17Size

int16u[2]

34

Face18Size

int16u[2]

36

Face19Size

int16u[2]

38

Face20Size

int16u[2]

40

Face21Size

int16u[2]

42

Face22Size

int16u[2]

44

Face23Size

int16u[2]

46

Face24Size

int16u[2]

48

Face25Size

int16u[2]

50

Face26Size

int16u[2]

52

Face27Size

int16u[2]

54

Face28Size

int16u[2]

56

Face29Size

int16u[2]

58

Face30Size

int16u[2]

60

Face31Size

int16u[2]

62

Face32Size

int16u[2]

Pentax FilterInfo Tags

The parameters associated with each type of digital filter are unique, and
these settings are also extracted with the DigitalFilter tag. Information
is not extracted for filters that are “Off” unless the Unknown option is
used.

Pentax LevelInfo Tags

Tags decoded from the electronic level information for the K-5. May not be
valid for other models.

Index1

Tag Name

Writable

Values / Notes

0

LevelOrientation

int8s

[Mask 0x0f]

1 = Horizontal (normal)

2 = Rotate 180

3 = Rotate 90 CW

4 = Rotate 270 CW

9 = Horizontal; Off Level

10 = Rotate 180; Off Level

11 = Rotate 90 CW; Off Level

12 = Rotate 270 CW; Off Level

13 = Upwards

14 = Downwards

0.1

CompositionAdjust

int8s

[Mask 0xf0]

0x0 = Off

0x20 = Composition Adjust

0xa0 = Composition Adjust + Horizon Correction

0xc0 = Horizon Correction

1

RollAngle

int8s

(converted to degrees of clockwise camera rotation)

2

PitchAngle

int8s

(converted to degrees of upward camera tilt)

5

CompositionAdjustX

int8s

(steps to the right, 1/16 mm per step)

6

CompositionAdjustY

int8s

(steps up, 1/16 mm per step)

7

CompositionAdjustRotation

int8s

(steps clockwise, 1/8 degree per step)

Pentax WBLevels Tags

Index1

Tag Name

Writable

Values / Notes

2

WB_RGGBLevelsDaylight

int16u[4]

11

WB_RGGBLevelsShade

int16u[4]

20

WB_RGGBLevelsCloudy

int16u[4]

29

WB_RGGBLevelsTungsten

int16u[4]

38

WB_RGGBLevelsFluorescentD

int16u[4]

47

WB_RGGBLevelsFluorescentN

int16u[4]

56

WB_RGGBLevelsFluorescentW

int16u[4]

65

WB_RGGBLevelsFlash

int16u[4]

74

WB_RGGBLevelsFluorescentL

int16u[4]

83

WB_RGGBLevelsUnknown?

int16u[4]

92

WB_RGGBLevelsUserSelected

int16u[4]

Pentax LensInfoQ Tags

More lens information stored by the Pentax Q.

Index1

Tag Name

Writable

Values / Notes

12

LensModel

string[30]

42

LensInfo

string[20]

Pentax PixelShiftInfo Tags

Pixel shift information stored by the K-3 II.

Index1

Tag Name

Writable

Values / Notes

0

PixelShiftResolution

int8u

0 = Off

1 = On

Pentax AFPointInfo Tags

AF point information written by the K-1.

Index1

Tag Name

Writable

Values / Notes

2

NumAFPoints

int16u

4

AFPointsInFocus

int8u[9]~

4.1

AFPointsSelected

int8u[9]~

4.2

AFPointsSpecial

int8u[9]~

Pentax TempInfo Tags

A number of additional temperature readings are extracted from this 256-byte
binary-data block in images from models such as the K-01, K-3, K-5, K-50 and
K-500. It is currently not known where the corresponding temperature
sensors are located in the camera.

Index1

Tag Name

Writable

Values / Notes

12

SensorTemperature

int16s

14

SensorTemperature2

int16s

20

CameraTemperature4

int16s

22

CameraTemperature5

int16s

Pentax UnknownInfo Tags

Index1

Tag Name

Writable

Values / Notes

[no tags known]

Pentax Type2 Tags

These tags are used by the Pentax Optio 330 and 430, and are similar to the
tags used by Casio.

Pentax Type4 Tags

The following few tags are extracted from the wealth of information
available in maker notes of the Optio E20 and E25. These maker notes are
stored as ASCII text in a format very similar to some HP models.

Tag ID

Tag Name

Writable

Values / Notes

‘F/W Version’

FirmwareVersion

no

Pentax S1 Tags

Tags extracted from the maker notes of AVI videos from the Optio S1.

Tag ID

Tag Name

Writable

Values / Notes

0x0000

MakerNoteVersion

undef[4]

Pentax PENT Tags

Tags found in the PENT atom of MOV videos from the Optio WG-2 GPS.

Index1

Tag Name

Writable

Values / Notes

0

Make

no

26

Model

no

56

ExposureTime

no

60

FNumber

no

68

ExposureCompensation

no

84

FocalLength

no

113

DateTime1

no

139

DateTime2

no

167

ISO

no

199

GPSVersionID

no

207

GPSLatitudeRef

no

‘N’ = North

‘S’ = South

209

GPSLatitude

no

233

GPSLongitudeRef

no

‘E’ = East

‘W’ = West

235

GPSLongitude

no

259

GPSAltitudeRef

no

0 = Above Sea Level

1 = Below Sea Level

260

GPSAltitude

no

284

GPSTimeStamp

no

308

GPSSatellites

no

311

GPSStatus

no

‘A’ = Measurement Active

‘V’ = Measurement Void

313

GPSMeasureMode

no

2 = 2-Dimensional Measurement

3 = 3-Dimensional Measurement

315

GPSMapDatum

no

322

GPSDateStamp

no

371

AudioCodecID

no

2003

PreviewImage

no

(640×480 JPEG preview image)

Pentax PXTH Tags

Tags found in the PXTH atom of MOV videos from the K-01.

Index1

Tag Name

Writable

Values / Notes

0

PreviewImageLength

no

4

PreviewImage

no

(640-pixel-wide JPEG preview)

Pentax MOV Tags

This information is found in MOV videos from cameras such as the Optio WP.