📄 cdtype.h
字号:
#define cdSHOOTING_MODE_DIGITAL_MACRO 0x007e
/* cdAFDistance
Auto focus mode by which distance is measured */
typedef cdUInt16 cdAFDistance;
#define cdAF_DISTANCE_MANUAL 0x0000
#define cdAF_DISTANCE_AUTO 0x0001
#define cdAF_DISTANCE_UNKNOWN 0x0002
#define cdAF_DISTANCE_CLOSE_UP 0x0003
#define cdAF_DISTANCE_VERY_CLOSE 0x0004
#define cdAF_DISTANCE_CLOSE 0x0005
#define cdAF_DISTANCE_MIDDLE 0x0006
#define cdAF_DISTANCE_FAR 0x0007
#define cdAF_DISTANCE_PAN_FOCUS 0x0008
#define cdAF_DISTANCE_SUPER_MACRO 0x0009
#define cdAF_DISTANCE_INFINITY 0x000a
#define cdAF_DISTANCE_NA 0x00ff
/* cdPhotoEffect
Photo effect setting */
typedef cdUInt16 cdPhotoEffect;
#define cdPHOTO_EFFECT_OFF 0x0000 /* Off */
#define cdPHOTO_EFFECT_VIVID 0x0001 /* Vivid */
#define cdPHOTO_EFFECT_NEUTRAL 0x0002 /* Neutral */
#define cdPHOTO_EFFECT_LOW_SHARPENING 0x0003 /* Low sharpening */
#define cdPHOTO_EFFECT_SEPIA 0x0004 /* Sepia */
#define cdPHOTO_EFFECT_BW 0x0005 /* Black & white */
#define cdPHOTO_EFFECT_CUSTOM 0x0006 /* Custom */
#define cdPHOTO_EFFECT_MY_COLOR 0x0064 /* My color data */
#define cdPHOTO_EFFECT_UNKNOWN 0xffff /* Unknown */
/* cdColorMatrix
Color matrix number */
typedef cdUInt16 cdColorMatrix;
#define cdCOLOR_MATRIX_ATCAPTURE 0x0000 /* As shot value. Use for cdSetDevParam_ColorMatrix() only */
#define cdCOLOR_MATRIX_1 0x0001 /* Color matrix 1 */
#define cdCOLOR_MATRIX_2 0x0002 /* Color matrix 2 */
#define cdCOLOR_MATRIX_3 0x0003 /* Color matrix 3 */
#define cdCOLOR_MATRIX_4 0x0004 /* Color matrix 4 */
#define cdCOLOR_MATRIX_5 0x0005 /* Color matrix 5 */
#define cdCOLOR_MATRIX_UNKNOWN 0xffff /* Unknown */
/*-----------------------------------------------------------------------
Constants for Image property
------------------------------------------------------------------------*/
/* cdImagePropertyID
*/
typedef cdUInt32 cdImagePropertyID;
#define cdIMG_PROP_INVALID 0xFFFFFFFF
/* Invalid ID
*/
/*----------------------------------------------------------
Common Property
*/
#define cdIMG_PROP_SERIAL_NUMBER 0x00000100
/* The number used to generate the folder and file names.
Attribute : Read only
Size/Type : 4 / cdUInt32
*/
#define cdIMG_PROP_MODEL_NAME 0x00000200
/* Camera model name.
Attribute : Read only
Size/Type : 32 / cdStr31
*/
#define cdIMG_PROP_OWNER_NAME 0x08000300
/* Camera owner's name
Attribute : Read/Write
Size/Type : 32 / cdStr31
*/
#define cdIMG_PROP_CAPTURE_TIME 0x00000400
/* When the picture was taken
Attribute : Read only
Size/Type : 4 / cdTime
*/
#define cdIMG_PROP_CONFIG_NAME 0x00000500
/* How the camera was configured (example: "IMG:PowerShot JPEG")
Attribute : Read only
Size/Type : 32 / cdStr31
*/
#define cdIMG_PROP_AV 0x00000600
/* Aperture value. The unit is APEX (Additive system of Photographic Exposure).
Attribute : Read only
Size/Type : 4 / cdFloat
*/
#define cdIMG_PROP_TV 0x00000700
/* Shutter speed. "Tv" stands for "time value".
Attribute : Read only
Size/Type : 4 / cdFloat
*/
#define cdIMG_PROP_EXPOSURE_COMP 0x00000800
/* Exposure compensation value. This value will range from -3 to +3.
Attribute : Read only
Size/Type : 4 / cdFloat
*/
#define cdIMG_PROP_EF_GUIDE_NUMBER 0x00000900
/* Flash guide number. 0 means flash not used.
Attribute : Read only
Size/Type : 4 / cdFloat
*/
#define cdIMG_PROP_SELF_TIMER_TIME 0x00000a00
/* Self-timer elapsed time in milliseconds.
Attribute : Read only
Size/Type : 2 / cdUInt16
*/
#define cdIMG_PROP_FOCUSING_SETTING 0x00000b00
/* Focusing setting: 0 means normal range scan, 1 means macro range scan.
Attribute : Read only
Size/Type : 1 / cdUInt8
*/
#define cdIMG_PROP_COMMENT 0x08000c00
/* User comment string termination by NULL.
Attribute : Read/Write
Size/Type : any / cdChar
*/
#define cdIMG_PROP_COMMENT_CODE 0x08000d00
/* User comment character code. Same as Exif specification.
Attribute : Read/Write
Size/Type : 8 / cdChar[8]
*/
#define cdIMG_PROP_COMMENT_BUF_SIZE 0x00000e00
/* Buffer size of the user comment in image file.
Attribute : Read only
Size/Type : 4 / cdUInt32
*/
#define cdIMG_PROP_RELEASE_METHOD 0x00000f00
/* Release method. (Drive mode)
Attribute : Read only
Size/Type : 2 / cdUInt16
Value:
0: normal
1: continuous shooting
2: movie
3: continuous shooting(Speed priority)
4: continuous low
5: continuous high
*/
#define cdIMG_PROP_CONT_NUMBER 0x00001000
/* 0-based frame number on continous shooting.
Some camera does not set this value.
Attribute : Read only
Size/Type : 2 / cdUInt16
*/
#define cdIMG_PROP_STITCH_DESC 0x00001100
/* Stitch assist description.
Attribute : Read only
Size/Type : 12 / cdStitchDesc
*/
#define cdIMG_PROP_LENS_TYPE 0x00001200
/* Lens type.
Attribute : Read only
Size/Type : 2 / cdUInt16
Values:
1: Non zoom lens
2: Zoom lens
*/
#define cdIMG_PROP_FOCUL_LENGTH 0x00001300
/* The focal length of the lens (mm)*32
Attribute : Read only
Size/Type : 2 / cdUInt16
*/
#define cdIMG_PROP_SENSOR_SIZE_X 0x00001400
/* Sensor size (horizontal: inches size * 1024)
Attribute : Read only
Size/Type : 2 / cdUInt16
*/
#define cdIMG_PROP_SENSOR_SIZE_Y 0x00001500
/* Sensor size (vertical: inches size * 1024)
Attribute : Read only
Size/Type : 2 / cdUInt16
*/
#define cdIMG_PROP_WHITE_BALANCE 0x00001600
/* White balance setting.
Attribute : Read only
Size/Type : 2 / cdWBLightSrc
*/
#define cdIMG_PROP_SLOW_SHUTTER 0x00001700
/* Slow shutter setting
Attribute : Read only
Size/Type : 2 / cdUInt16
Values:
0: off
1: night scene
2: on
3: not existing
*/
#define cdIMG_PROP_ROTATION_ANGLE 0x08001800
/* Rotation angle. (0, 90, 180, 270)
Attribute : Read/Write
Size/Type : 4 / cdUInt32
*/
#define cdIMG_PROP_FOCAL_LENGTH_DCF 0x00001a00
/* The actual focal length of the lens, in mm.
Attribute : Read only
Size/Type : 8 / cdURational
*/
#define cdIMG_PROP_FOCAL_PLANE_RES_X 0x00001b00
/* The number of pixels in the image width(X) direction
per unit derived by cdIMG_PROP_FOCAL_PLANE_RES_UNIT
on the camera focal plane.
Attribute : Read only
Size/Type : 8 / cdURational
*/
#define cdIMG_PROP_FOCAL_PLANE_RES_Y 0x00001c00
/* The number of pixels in the image height(Y) direction
per unit derived by cdIMG_PROP_FOCAL_PLANE_RES_UNIT
on the camera focal plane.
Attribute : Read only
Size/Type : 8 / cdURational
*/
#define cdIMG_PROP_FOCAL_PLANE_RES_UNIT 0x00001d00
/* The unit for measuring the value derived by
cdIMG_PROP_FOCAL_PLANE_RES_X and cdIMG_PROP_FOCAL_PLANE_RES_Y.
Attribute : Read only
Size/Type : 2 / cdUInt16
Value:
2 : inches
3 : centimeters
Other: reserved
*/
#define cdIMG_PROP_COMP_QUALITY 0x00001e00
/* Image quality setting.
Attribute : Read only
Size/Type : 2 / cdCompQuality
*/
#define cdIMG_PROP_IMAGE_SIZE 0x00001f00
/* Image size setting.
Attribute : Read only
Size/Type : 2 / cdImageSize
*/
#define cdIMG_PROP_SHOOTING_MODE 0x00002000
/* Shooting mode.
Attribute : Read only
Size/Type : 2 / cdShootingMode
*/
#define cdIMG_PROP_EZOOM 0x00002100
/* Digital zoom mode.
Attribute : Read only
Size/Type : 2 / cdUInt16
Valies:
0: Not digital zoomed.
1: x2
2: x4
3: Smooth (continuous) digital zoom.
0xffff: Unknown
*/
#define cdIMG_PROP_CONTRAST 0x00002200
/* Contrast.
Attribute : Read only
Size/Type : 2 / cdInt16
Values:
-2:low2 -1:low1 0:default 1:high1 2:high2 0x7fff:unknown
*/
#define cdIMG_PROP_COLOR_GAIN 0x00002300
/* Color gain.
Attribute : Read only
Size/Type : 2 / cdInt16
Valuds:
-2:low2 -1:low1 0:default 1:high1 2:high2 0x7fff:unknown
*/
#define cdIMG_PROP_SHARPNESS 0x00002400
/* Sharpness.
Attribute : Read only
Size/Type : 2 / cdInt16
Valuds:
-2:low2 -1:low1 0:default 1:high1 2:high2 0x7fff:unknown
*/
#define cdIMG_PROP_SENSITIVITY 0x00002500
/* Sensitivity.
Attribute : Read only
Size/Type : 2 / cdInt16
Values:
0:default 1:up_1 2:up_2 0xf:Auto 0x10:ISO50 0x11:ISO100 0x12:ISO200
0x13:ISO400 0x14:ISO800 0x7fff:unknown
If 0x4000 bit is set, lower 10 bits shows ISO value.
e.g. 0x4040 means ISO64.
*/
#define cdIMG_PROP_MLWEI_MODE 0x00002600
/* Measure light weight mode.
Attribute : Read only
Size/Type : 2 / cdUInt16
Values:
cdMLWEI_MODE_CENTER (0) : Center-weighted averaging
cdMLWEI_MODE_SPOT (1) : Spot
cdMLWEI_MODE_AVERAGE(2) : Averaging
cdMLWEI_MODE_ESTIMAT(3) : Evaluative
cdMLWEI_MODE_PART (4) : Partial
cdMLWEI_MODE_CENTER_WEI_AVERAGE(5) : Center-weighted averaging
cdMLWEI_MODE_UNKNOWN(0xffff) : Unknown
*/
#define cdIMG_PROP_ISO_SPEED_RATINGS 0x00002700
/* ISO Speed.
Attribute : Read only
Size/Type : 2 / cdUInt16
*/
#define cdIMG_PROP_CUSTOM_FUNC1 0x00002900
/* Custom function settings.
Attribute : Read only
Size/Type : any (depend on camera model) / cdCustomFunction
*/
#define cdIMG_PROP_CUSTOM_FUNC2 0x00002b00
/* Custom function settings.
Attribute : Read only
Size/Type : sizeof(cdCustomFunction2) / cdCustomFinction2
*/
#define cdIMG_PROP_PERSONAL_FUNC 0x00002d00
/* Personal fnction settngs.
Attribute : Read only
Size/Type : sizeof(cdPersonalFunction) / cdPersonalFunction
*/
#define cdIMG_PROP_PERSONAL_FUNC_VAL 0x00002f00
/* Personal fnction settng values.
Attribute : Read only
Size/Type : sizeof(cdPersonalFunctionValue) / cdPersonalFunctionValue
*/
#define cdIMG_PROP_BODY_ID 0x00003000
/* Camera body ID number.
Attribute : Read only
Size/Type : 4 / cdUInt32
*/
#define cdIMG_PROP_EF 0x00003100
/* EF.
Attribute : Read only
Size/Type : 2 / cdUInt16
Values:
0 : off
1 : auto
2 : on
3 : red eye reduction
4 : slow synchro
5 : auto + red eye reduction
6 : on + red eye reduction
0x10 : External Strobe
0xffff: Unknown
*/
#define cdIMG_PROP_FOCUS_POSITION 0x00003200
/* Focusing point.
Attribute : Read only
Size/Type : 2 / cdUInt16
Meaning:
Upper 4bits is 0: Means this value is invalid.
Upper 4bits is 1: Means center focus point selection.
Upper 4bits is 3: Means 3 points focus selection. Checks lower 12bits
further;
0: No focus point.
1. Right AF point is selected.
2. Center AF point is selected.
4. Left AF point is selected.
*/
#define cdIMG_PROP_FOCUS_POSITION2 0x00003300
/* Focusing point.
Attribute : Read only
Size/Type : 8 / cdUInt32
Meaning:
First 1 byte shows AF point.
Upper 3 bits represent Y coordinates in the Table 1 shown below.
Lower 5 bits represent X coordinates in the Table 1 shown below.
Next 7 bytes show focus points.
The Table 2 shows the meaning of each bit included in these 7 bytes.
The number which has been described to table 2 corresponds to the
number of the focus point of table 1.
If the bit is set, it means that the point correspond to the bit
was focused.
Table 1: AF Point and Focus Point Map
X
| 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
--|------------------------------------------------------------------|
0 | [02] [03] [04] [05] [06] [07] [10] |
Y | |
1 | [13] [14] [15] [16] [17] [20] [21] [22] [23] [24] |
| |
2 | [25] [26] [27] [30] [31] [32] [33] [34] [35] [36] [37] |
| |
3 | [40] [41] [42] [43] [44] [45] [46] [47] [50] [51] |
| |
4 | [54] [55] [56] [57] [60] [61] [62] |
--|------------------------------------------------------------------|
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -