📄 cdtype.h
字号:
Size/Type : 1 / cdUInt8
*/
#define cdIMG_PROP_SOUND_BITS_PER_SAMPLE 0x4000000f
/* The number of bits per sample.
Attribute : Read only
Size/Type : 1 / cdUInt8
*/
/* cdBaseImagePropertyID
*/
typedef cdImagePropertyID cdBaseImagePropertyID;
#define cdBASE_IMG_PROP_FORMAT 0x00000001
/* Data format.
Attribute : Read only
Size/Type : sizeof(cdImageFormat) / cdImageFormat
*/
#define cdBASE_IMG_PROP_COMPONENT_BIT_DEPTH 0x00000002
/* The number of bits per color component (such as 8).
Attribute : Read only
Size/Type : 1 / cdUInt8
*/
#define cdBASE_IMG_PROP_COLOR_BIT_DEPTH 0x00000003
/* The number of bits per color (such as 24).
Attribute : Read only
Size/Type : 1 / cdUInt8
*/
#define cdBASE_IMG_PROP_WIDHT 0x00000004
/* The width in pixels.
Attribute : Read only
Size/Type : 2 / cdUInt16
*/
#define cdBASE_IMG_PROP_HEIGHT 0x00000005
/* The height in pixels.
Attribute : Read only
Size/Type : 2 / cdUInt16
*/
#define cdBASE_IMG_PROP_DENSITY_X 0x00000006
/* The horizontal dots per inch.
Attribute : Read only
Size/Type : 2 / cdUInt16
*/
#define cdBASE_IMG_PROP_DENSITY_Y 0x00000007
/* The vertical dots per inch.
Attribute : Read only
Size/Type : 2 / cdUInt16
*/
#define cdBASE_IMG_PROP_NEED_DEVELOP 0x00000008
/* Indicates that the data needs development.
If this property is TRUE, client applications should develop
the data by CDGetDevelopedImageData().
Attribute : Read only
Size/Type : sizeof(cdBoolean) / cdBoolean
*/
#define cdBASE_IMG_PROP_FRAME_RATE 0x00000009
/* Flame rate (flames/sec)
Attribute : Read only
Size/Type : 2 / cdUInt16
*/
#define cdBASE_IMG_PROP_TOTAL_FRAME 0x0000000a
/* The number of total frames.
Attribute : Read only
Size/Type : 2 / cdUInt16
*/
#define cdBASE_IMG_PROP_CREATOR_VERSION 0x0000000b
/* Creator version that is the version number of the movie
file generated by the Canon Digital Camera.
Attribute : Read only
Size/Type : 2 / cdUInt16
*/
#define cdBASE_IMG_PROP_SOUND_DURATION 0x0000000c
/* The duration in seconds.
Attribute : Read only
Size/Type : 4 / cdFloat
*/
#define cdBASE_IMG_PROP_SAMPLING_FREQUENCY 0x0000000d
/* The number of samples per second.
Attribute : Read only
Size/Type : 4 / cdUInt32
*/
#define cdBASE_IMG_PROP_SOUND_CHANNELS 0x0000000e
/* The number of interleaved channels.
Attribute : Read only
Size/Type : 1 / cdUInt8
*/
#define cdBASE_IMG_PROP_BITS_PER_SAMPLE 0x0000000f
/* The number of bits per sample.
Attribute : Read only
Size/Type : 1 / cdUInt8
*/
#define cdBASE_IMG_PROP_COMPRESSION_RATIO 0x00000010
/* The compression ratio compared to 24-bit RGB.
Attribute : Read only
Size/Type : 4 / cdFloat
*/
#define cdBASE_IMG_PROP_COMPRESSION_TYPE 0x00000011
/* The type of compression used on the image data.
Attribute : Read only
Size/Type : 1 / cdCompressionType
*/
#define cdBASE_IMG_PROP_ROTATION_ANGLE 0x00001800
/* Rotation angle. (0, 90, 180, 270)
Attribute : Read only
Size/Type : 4 / cdUInt32
*/
/* cdDevicePropertyID
*/
typedef cdUInt32 cdDevicePropertyID;
#define cdDEVICE_PROP_INVALID 0xFFFFFFFF
/* Invalid ID
*/
#define cdDEVICE_PROP_MODEL_ID 0x00000001
/* Camera model ID.
Attribute : Read only
Size/Type : 4 / cdUInt32
*/
#define cdDEVICE_PROP_MODEL_NAME 0x00000002
/* Camera model name.
Attribute : Read only
Size/Type : 32 / cdChar[32]
*/
#define cdDEVICE_PROP_SLIDE_SHOW_CAP 0x00000003
/* Slide show capacity.
Attribute : Read only
Size/Type : sizeof(cdSlideShowCap) / cdSlideShowCap
*/
#define cdDEVICE_PROP_UPLOAD_FILE_CAP 0x00000004
/* AddPicture suport.
Attribute : Read only
Size/Type : sizeof(cdBoolean) / cdBoolean
Values:
TRUE : The device supports the CDAddPicture.
FALSE: The device does not support the CDAddPicture.
*/
#define cdDEVICE_PROP_ROTATION_CAP 0x00000005
/* Image rotation suport.
Attribute : Read only
Size/Type : sizeof(cdBoolean) / cdBoolean
Values:
TRUE : The device supports the image rotation function.
FALSE: The device does not support the image rotation function.
*/
#define cdDEVICE_PROP_DPOF_CAP 0x00000006
/* DPOF version number supported by the device.
Attribute : Read only
Size/Type : 4 / cdUInt32
*/
#define cdDEVICE_PROP_THUMB_VALID_AREA 0x00000007
/* Valid area in the DCF thumbnail data.
Attribute : Read only
Size/Type : /
*/
#define cdDEVICE_PROP_RELEASE_CONTROL_CAP 0x00000008
/* Remote release control capacity.
Attribute : Read only
Size/Type : 4 / cdUInt32
Meaning:
If 0x40000000 bit is set, the camera supports the remote release control functions.
*/
#define cdDEVICE_PROP_RAW_DEVELOP_FACULTIES 0x00000009
/* RAW file specification generated by the device.
Attribute : Read only
Size/Type : sizeof(cdRawDevelopFaculty) / cdRawDevelopFaculty
*/
#define cdDEVICE_PROP_PARSE_FACULTIES 0x0000000a
/* File parser faculty.
Attribute : Read only
Size/Type : sizeof(cdParseFaculty) / cdParseFaculty
*/
#define cdDEVICE_PROP_OWNER_NAME 0x0800000c
/* Owner's name.
Attribute : Read / Write
Size/Type : 32 / cdChar[32]
*/
#define cdDEVICE_PROP_TIME 0x0800000d
/* Time set in the device.
Attribute : Read / Write
Size/Type : 4 / cdTime
*/
#define cdDEVICE_PROP_FIRMWARE_VERSION 0x0000000e
/* Firmware version in the device.
Attribute : Read only
Size/Type : 32 / cdChar[32]
*/
#define cdDEVICE_PROP_BATTERY_STATUS 0x0000000f
/* Battery status of the device.
Attribute : Read only
Size/Type : 4 / cdUInt32
Values:
Refer to the description of the cdEVENT_BATTERY_LEVEL_CHANGED event
in the cdEvent.h.
*/
#define cdDEVICE_PROP_DIRECT_TRANSFER_STATUS 0x00000010
/* Direct transfer status of the device.
Attribute : Read only
Size/Type : 1 / cdUInt8
*/
/*-----------------------------------------------------------------------
Constants for remote release control
------------------------------------------------------------------------*/
/* cdRelCamSettingID
*/
typedef cdUInt32 cdRelCamSettingID;
#define cdREL_SET_SELF_TIMER 0x00000001
/* Self timer setting. This value is valid when drive mode value get by
CDGetDriveMode is cdDRIVE_MODE_SELFTIMER.
Attribute : Read only
Size/Type : 2 / cdUInt16
Values:
0 : No self timer shooting
100 : Self timer shooting (10sec).
0xffff: Invalid
*/
#define cdREL_SET_BEEP 0x08000002
/* Beep setting.
Attribute : Depends on the camera model.
Size/Type : 1 / cdUInt8
Values:
0: off 1: on 0xff:Invalid
*/
#define cdREL_SET_EZOOM 0x00000003
/* Digital Teleconverter.
Attribute : Read only
Size/Type : 1 / cdUInt8
Values:
0 : No teleconverter.
1 : Continuous (Smooth)
0xff: Invalid
*/
#define cdREL_SET_MLWEI_MODE 0x08000004
/* Measure light weight mode.
Attribute : Depends on the camera model.
Size/Type : 1 / cdUInt8
Values: */
#define cdREL_VAL_MLWEI_MODE_CENTER_WEI_AVERAGE (0) /* Center-weighted averaging */
#define cdREL_VAL_MLWEI_MODE_SPOT (1) /* Spot */
#define cdREL_VAL_MLWEI_MODE_AVERAGE (2) /* Averaging */
#define cdREL_VAL_MLWEI_MODE_EVALUATIVE (3) /* Evaluative */
#define cdREL_VAL_MLWEI_MODE_PART (4) /* Partial */
#define cdREL_VAL_MLWEI_MODE_CENTER_WEI_AVERAGE_2 (5) /* Center-weighted averaging */
#define cdREL_VAL_MLWEI_MODE_UNKNOWN (0xff) /* Invalid */
#define cdREL_SET_FOCUS_POINT 0x08000005
/* Measure light weight mode.
Attribute : Depends on the camera model.
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 is selected.
Manual focus point selection.
1: Automatic focus point selection.
2. Right focus point selection.
3. Center focus point selection.
4. Left focus point selection
Useful definitions: */
/* Upper 4bits */
#define cdREL_VAL_FOCUS_POINT_NA (0x0000)
#define cdREL_VAL_FOCUS_POINT_CENTER_ONLY (0x1000)
#define cdREL_VAL_FOCUS_POINT_3_POINTS (0x3000)
/* Lower 12bits when cdFOCUS_POINT_3_POINTS */
#define cdREL_VAL_FOCUS_POINT_MF (0x0000)
#define cdREL_VAL_FOCUS_POINT_AUTO (0x0001)
#define cdREL_VAL_FOCUS_POINT_RIGHT (0x0002)
#define cdREL_VAL_FOCUS_POINT_CENTER (0x0003)
#define cdREL_VAL_FOCUS_POINT_LEFT (0x0004)
#define cdREL_VAL_FOCUS_POINT_AF_AUTO (cdREL_VAL_FOCUS_POINT_3_POINTS | cdREL_VAL_FOCUS_POINT_AUTO)
#define cdREL_VAL_FOCUS_POINT_AF_RIGHT (cdREL_VAL_FOCUS_POINT_3_POINTS | cdREL_VAL_FOCUS_POINT_RIGHT)
#define cdREL_VAL_FOCUS_POINT_AF_CENTER (cdREL_VAL_FOCUS_POINT_3_POINTS | cdREL_VAL_FOCUS_POINT_CENTER)
#define cdREL_VAL_FOCUS_POINT_AF_LEFT (cdREL_VAL_FOCUS_POINT_3_POINTS | cdREL_VAL_FOCUS_POINT_LEFT)
#define cdREL_SET_SLOW_SHUTTER 0x00000006
/* Slow shutter setting
Attribute : Read only
Size/Type : 1 / cdUInt8
Values:
0: off
1: night scene
2: on
3: not existing
0xff: invalid
*/
#define cdREL_SET_AF_MODE 0x00000007
/* Fucus mode setting
Attribute : Read only
Size/Type : 1 / cdUInt8
Values:
0: One-Shot AF / Single AF
1: AI Servo AF / Continuous AF
2: AI Focus AF
3: Manual Focus
0xff: Invalid
*/
#define cdREL_SET_CONTRAST 0x08000008
/* Contrast setting
Attribute : Depends on the camera model.
Size/Type : 1 / cdInt8
Values: */
#define cdREL_VAL_CONTRAST_LOW (-1) /* Low */
#define cdREL_VAL_CONTRAST_NORMAL (0) /* Normal */
#define cdREL_VAL_CONTRAST_HIGH (1) /* High */
#define cdREL_VAL_CONTRAST_INVALID (0x7f) /* Invalid */
#define cdREL_SET_COLOR_GAIN 0x08000009
/* Color saturation setting
Attribute : Depends on the camera model.
Size/Type : 1 / cdInt8
Values: */
#define cdREL_VAL_COLOR_GAIN_LOW (-1) /* Low */
#define cdREL_VAL_COLOR_GAIN_NORMAL (0) /* Normal */
#define cdREL_VAL_COLOR_GAIN_HIGH (1) /* High */
#define cdREL_VAL_COLOR_GAIN_INVALID (0x7f) /* Invalid */
#define cdREL_SET_SHARPNESS 0x0800000a
/* Sharpness setting
Attribute : Depends on the camera model.
Size/Type : 1 / cdInt8
Values: */
#define cdREL_VAL_SHARPNESS_LOW (-1) /* Low */
#define cdREL_VAL_SHARPNESS_NORMAL (0) /* Normal */
#define cdREL_VAL_SHARPNESS_HIGH (1) /* High */
#define cdREL_VAL_SHARPNESS_INVALID (0x7f) /* Invalid */
#define cdREL_SET_PARAMETER_SET 0x0000000b
/* Parameters Set information.
Attribute : Read only
Size/Type : 2 / cdUInt16
Meaning:
Lower 4bit: Means the current selection number of the parameter set
in the camera.
0: Standard set.
1: Set 1
2: Set 2
3: Set 3
bit4: Means if the standard parameter set is selectable.
bit5: Means if the parameter set 1 is selectable
bit6: Means if the parameter set 2 is selectable
bit7: Means if the parameter set 3 is selectable
0xffff: Invalid
*/
#define cdREL_SET_ISO_SPEED_RATINGS 0x0800000c
/* ISO speed setting.
Attribute : Depends on the camera model.
Size/Type : 2 / cdUInt16
Values: */
#define cdREL_VAL_ISO_AUTO (0x0000) /* Auto */
#define cdREL_VAL_ISO_6 (0x0028) /* ISO 6 */
#define cdREL_VAL_ISO_8 (0x002b) /* ISO 8 */
#define cdREL_VAL_ISO_10 (0x002d) /* ISO 10 */
#define cdREL_VAL_ISO_12 (0x0030) /* ISO 12 */
#define cdREL_VAL_ISO_16 (0x0033) /* ISO 16 */
#define cdREL_VAL_ISO_20 (0x0035) /* ISO 20 */
#define cdREL_VAL_ISO_25 (0x0038) /* ISO 25 */
#define cdREL_VAL_ISO_32 (0x003b) /* ISO 32 */
#define cdREL_VAL_ISO_40 (0x003d) /* ISO 40 */
#define cdREL_VAL_ISO_50 (0x0040) /* ISO 50 */
#define cdREL_VAL_ISO_64 (0x0043) /* ISO 64 */
#define cdREL_VAL_ISO_80 (0x0045) /* ISO 80 */
#define cdREL_VAL_ISO_100 (0x0048) /* ISO 100 */
#define cdREL_VAL_ISO_125 (0x004b) /* ISO 125 */
#define cdREL_VAL_ISO_160 (0x004d) /* ISO 160 */
#define cdREL_VAL_ISO_200 (0x0050) /* ISO 200 */
#define cdREL_VAL_ISO_250 (0x0053) /* ISO 250 */
#define cdREL_VAL_ISO_320 (0x0055) /* ISO 320 */
#define cdREL_VAL_ISO_400 (0x0058) /* ISO 400 */
#define cdREL_VAL_ISO_500 (0x005b) /* ISO 500 */
#define cdREL_VAL_ISO_640 (0x005d) /* ISO 640 */
#define cdREL_VAL_ISO_800 (0x0060) /* ISO 800 */
#define cdREL_VAL_ISO_1000 (0x0063) /* ISO 1000 */
#define cdREL_VAL_ISO_1250 (0x0065) /* ISO 1250 */
#define cdREL_VAL_ISO_1
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -