Skip to content

Commit

Permalink
PTP_PC -> PTP_DPC
Browse files Browse the repository at this point in the history
It's better to use the same naming scheme as everybody else.
  • Loading branch information
petabyt committed Oct 19, 2024
1 parent 01c11ce commit c68aa0c
Show file tree
Hide file tree
Showing 13 changed files with 253 additions and 255 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ stringify:

clean:
rm -rf *.o src/*.o src/dec/*.o *.out test-ci test/*.o examples/*.o examples/*.d *.exe camlib *.dll *.so DUMP \
src/lua/*.o src/lua/lua-cjson/*.o src/*.d examples/*.d src/lua/*.d src/lua/lua-cjson/*.d
src/lua/*.o src/lua/lua-cjson/*.o src/*.d examples/*.d src/lua/*.d src/lua/lua-cjson/*.d *.a
cd examples && make clean

install: libcamlib.so
Expand Down
2 changes: 1 addition & 1 deletion examples/eos.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ int main() {

struct PtpDevPropDesc desc;

ptp_get_prop_desc(&r, PTP_PC_EOS_ImageFormat, &desc);
ptp_get_prop_desc(&r, PTP_DPC_EOS_ImageFormat, &desc);

ptp_close_session(&r);
ptp_device_close(&r);
Expand Down
5 changes: 2 additions & 3 deletions examples/usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,9 @@ static int connect(struct PtpRuntime *r) {
int main() {
struct PtpRuntime r;
ptp_generic_init(&r);
ptp_comm_init(&r);

connect(&r);
connect(&r);
if (connect(&r)) return 1;
if (connect(&r)) return 1;

return 0;
}
Expand Down
2 changes: 1 addition & 1 deletion examples/wintest.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ int main() {
ptp_eos_set_event_mode(&r, 1);
ptp_eos_set_remote_mode(&r, 1);

int ret = ptp_eos_set_prop_value(&r, PTP_PC_EOS_ISOSpeed, ptp_eos_get_iso(100, 1));
int ret = ptp_eos_set_prop_value(&r, PTP_DPC_EOS_ISOSpeed, ptp_eos_get_iso(100, 1));
if (ret) {
printf("error setting prop %d\n", ret);
}
Expand Down
4 changes: 2 additions & 2 deletions src/bind.c
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ int bind_cancel_af(struct BindReq *bind, struct PtpRuntime *r) {
int bind_mirror_up(struct BindReq *bind, struct PtpRuntime *r) {
int x = 0;
if (ptp_device_type(r) == PTP_DEV_EOS) {
x = ptp_eos_set_prop_value(r, PTP_PC_EOS_VF_Output, 3);
x = ptp_eos_set_prop_value(r, PTP_DPC_EOS_VF_Output, 3);
} else {
x = PTP_UNSUPPORTED;
}
Expand All @@ -455,7 +455,7 @@ int bind_mirror_up(struct BindReq *bind, struct PtpRuntime *r) {
int bind_mirror_down(struct BindReq *bind, struct PtpRuntime *r) {
int x = 0;
if (ptp_device_type(r) == PTP_DEV_EOS) {
x = ptp_eos_set_prop_value(r, PTP_PC_EOS_VF_Output, 0);
x = ptp_eos_set_prop_value(r, PTP_DPC_EOS_VF_Output, 0);
} else {
x = PTP_UNSUPPORTED;
}
Expand Down
7 changes: 3 additions & 4 deletions src/cl_backend.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,19 @@ struct PtpDeviceEntry {
struct PtpDeviceEntry *next;
};

/// @brief Initialize communications context for the current thread
int ptp_comm_init(struct PtpRuntime *r);

/// @brief Get a linked list of USB or PTP Devices
/// @memberof PTP/USB
struct PtpDeviceEntry *ptpusb_device_list(struct PtpRuntime *r);

/// @memberof PTP/USB
void ptpusb_free_device_list(struct PtpDeviceEntry *e);

/// @brief Open and connect to a device from the PtpDeviceEntry structure
/// @note Sets kill switch to 0
/// @memberof PTP/USB
int ptp_device_open(struct PtpRuntime *r, struct PtpDeviceEntry *entry);

/// @brief Runs ptp_comm_init and connect to the first device available
/// @brief Connects to the first PTP device it finds
int ptp_device_init(struct PtpRuntime *r);

/// @brief Send data over the raw command endpoint
Expand Down
2 changes: 1 addition & 1 deletion src/cl_enum.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ enum PtpType {
PTP_ENUM = 0, // regular enums
PTP_OC = 1, // operation codes
PTP_OF = 2, // object formats
PTP_PC = 3, // property codes
PTP_DPC = 3, // property codes
PTP_EC = 4, // event codes
PTP_RC = 5, // return code
PTP_ST = 6, // storage type
Expand Down
22 changes: 11 additions & 11 deletions src/data.c
Original file line number Diff line number Diff line change
Expand Up @@ -475,25 +475,25 @@ int ptp_eos_prop_next(uint8_t *d, struct PtpGenericEvent *p) {
const char *name = ptp_get_enum_all(code);
const char *str_value = NULL;
switch (code) {
case PTP_PC_EOS_Aperture:
case PTP_DPC_EOS_Aperture:
value = ptp_eos_get_aperture(value, 0);
name = "aperture";
break;
case PTP_PC_EOS_ShutterSpeed:
case PTP_DPC_EOS_ShutterSpeed:
value = ptp_eos_get_shutter(value, 0);
name = "shutter speed";
break;
case PTP_PC_EOS_ISOSpeed:
case PTP_DPC_EOS_ISOSpeed:
value = ptp_eos_get_iso(value, 0);
name = "iso";
break;
case PTP_PC_EOS_BatteryPower:
case PTP_DPC_EOS_BatteryPower:
// EOS has 3 battery bars
value++;
if (value == 3) value = 4;
name = "battery";
break;
case PTP_PC_EOS_ImageFormat: {
case PTP_DPC_EOS_ImageFormat: {
uint32_t data[5] = {value};
of += ptp_read_u32(d + of, &data[1]);
of += ptp_read_u32(d + of, &data[2]);
Expand All @@ -506,30 +506,30 @@ int ptp_eos_prop_next(uint8_t *d, struct PtpGenericEvent *p) {
}
name = "image format";
} break;
case PTP_PC_EOS_VF_Output:
case PTP_DPC_EOS_VF_Output:
name = "mirror";
if (value == 0) {
str_value = "finder";
} else {
str_value = "open";
}
break;
case PTP_PC_EOS_AEModeDial:
case PTP_DPC_EOS_AEModeDial:
name = "mode dial";
break;
case PTP_PC_EOS_FocusMode:
case PTP_DPC_EOS_FocusMode:
name = "focus mode";
if (value == 3) {
str_value = "MF";
} else {
str_value = "AF";
}
break;
case PTP_PC_EOS_WhiteBalance:
case PTP_DPC_EOS_WhiteBalance:
name = "white balance";
value = ptp_eos_get_white_balance(value, 0);
break;
case PTP_PC_EOS_FocusInfoEx:
case PTP_DPC_EOS_FocusInfoEx:
name = "focused";
break;
}
Expand Down Expand Up @@ -610,7 +610,7 @@ int ptp_eos_events(struct PtpRuntime *r, struct PtpGenericEvent **p) {
d += ptp_eos_prop_next(d, cur);
break;
case PTP_EC_EOS_InfoCheckComplete:
case PTP_PC_EOS_FocusInfoEx:
case PTP_DPC_EOS_FocusInfoEx:
cur->name = ptp_get_enum_all(type);
break;
case PTP_EC_EOS_RequestObjectTransfer: {
Expand Down
216 changes: 108 additions & 108 deletions src/enum_dump.c
Original file line number Diff line number Diff line change
Expand Up @@ -391,114 +391,114 @@ struct PtpEnum ptp_enums[] = {
{PTP_OF, 2, "PTP_OF_CANON_MOV", 0xb104},
{PTP_ENUM, 0, "PTP_AT_Folder", 0x1},
{PTP_ENUM, 0, "PTP_AT_Album", 0x1},
{PTP_PC, 0, "PTP_PC_BatteryLevel", 0x5001},
{PTP_PC, 0, "PTP_PC_FunctionalMode", 0x5002},
{PTP_PC, 0, "PTP_PC_ImageSize", 0x5003},
{PTP_PC, 0, "PTP_PC_CompressionSetting", 0x5004},
{PTP_PC, 0, "PTP_PC_WhiteBalance", 0x5005},
{PTP_PC, 0, "PTP_PC_RGBGain", 0x5006},
{PTP_PC, 0, "PTP_PC_FNumber", 0x5007},
{PTP_PC, 0, "PTP_PC_FocalLength", 0x5008},
{PTP_PC, 0, "PTP_PC_FocalDistance", 0x5009},
{PTP_PC, 0, "PTP_PC_FocusMode", 0x500A},
{PTP_PC, 0, "PTP_PC_ExposureMeteringMode", 0x500B},
{PTP_PC, 0, "PTP_PC_FlashMode", 0x500C},
{PTP_PC, 0, "PTP_PC_ExposureTime", 0x500D},
{PTP_PC, 0, "PTP_PC_ExposureProgramMode", 0x500E},
{PTP_PC, 0, "PTP_PC_ExposureIndex", 0x500F},
{PTP_PC, 0, "PTP_PC_ExposureBiasCompensation", 0x5010},
{PTP_PC, 0, "PTP_PC_DateTime", 0x5011},
{PTP_PC, 0, "PTP_PC_CaptureDelay", 0x5012},
{PTP_PC, 0, "PTP_PC_StillCaptureMode", 0x5013},
{PTP_PC, 0, "PTP_PC_Contrast", 0x5014},
{PTP_PC, 0, "PTP_PC_Sharpness", 0x5015},
{PTP_PC, 0, "PTP_PC_DigitalZoom", 0x5016},
{PTP_PC, 0, "PTP_PC_EffectMode", 0x5017},
{PTP_PC, 0, "PTP_PC_BurstNumber", 0x5018},
{PTP_PC, 0, "PTP_PC_BurstInterval", 0x5019},
{PTP_PC, 0, "PTP_PC_TimelapseNumber", 0x501A},
{PTP_PC, 0, "PTP_PC_TimelapseInterval", 0x501B},
{PTP_PC, 0, "PTP_PC_FocusMeteringMode", 0x501C},
{PTP_PC, 0, "PTP_PC_UploadURL", 0x501D},
{PTP_PC, 0, "PTP_PC_Artist", 0x501E},
{PTP_PC, 0, "PTP_PC_CopyrightInfo", 0x501F},
{PTP_PC, 0, "PTP_PC_SupportedStreams", 0x5020},
{PTP_PC, 0, "PTP_PC_EnabledStreams", 0x5021},
{PTP_PC, 0, "PTP_PC_VideoFormat", 0x5022},
{PTP_PC, 0, "PTP_PC_VideoResolution", 0x5023},
{PTP_PC, 0, "PTP_PC_VideoQuality", 0x5024},
{PTP_PC, 0, "PTP_PC_VideoFrameRate", 0x5025},
{PTP_PC, 0, "PTP_PC_VideoContrast", 0x5026},
{PTP_PC, 0, "PTP_PC_VideoBrightness", 0x5027},
{PTP_PC, 0, "PTP_PC_AudioFormat", 0x5028},
{PTP_PC, 0, "PTP_PC_AudioBitrate", 0x5029},
{PTP_PC, 0, "PTP_PC_AudioSamplingRate", 0x502A},
{PTP_PC, 0, "PTP_PC_AudioBitPerSample", 0x502B},
{PTP_PC, 0, "PTP_PC_AudioVolume", 0x502C},
{PTP_PC, 2, "PTP_PC_CANON_BeepCode", 0xD001},
{PTP_PC, 2, "PTP_PC_CANON_ViewFinderMode", 0xD003},
{PTP_PC, 2, "PTP_PC_CANON_ImageQuality", 0xD006},
{PTP_PC, 2, "PTP_PC_CANON_ImageSize", 0xD008},
{PTP_PC, 2, "PTP_PC_CANON_FlashMode", 0xD00a},
{PTP_PC, 2, "PTP_PC_CANON_TvAvSetting", 0xD00c},
{PTP_PC, 2, "PTP_PC_CANON_MeteringMode", 0xd010},
{PTP_PC, 2, "PTP_PC_CANON_MacroMode", 0xd011},
{PTP_PC, 2, "PTP_PC_CANON_FocusingPoint", 0xd012},
{PTP_PC, 2, "PTP_PC_CANON_WhiteBalance", 0xd013},
{PTP_PC, 2, "PTP_PC_CANON_AFMode", 0xD015},
{PTP_PC, 2, "PTP_PC_CANON_Contrast", 0xD017},
{PTP_PC, 2, "PTP_PC_CANON_ISOSpeed", 0xd01c},
{PTP_PC, 2, "PTP_PC_CANON_Aperture", 0xd01c},
{PTP_PC, 2, "PTP_PC_CANON_ShutterSpeed", 0xd01e},
{PTP_PC, 2, "PTP_PC_CANON_ExpComp", 0xd01f},
{PTP_PC, 2, "PTP_PC_CANON_Zoom", 0xd02a},
{PTP_PC, 2, "PTP_PC_CANON_SizeQuality", 0xd02c},
{PTP_PC, 2, "PTP_PC_CANON_FlashMemory", 0xd031},
{PTP_PC, 2, "PTP_PC_CANON_CameraModel", 0xd032},
{PTP_PC, 2, "PTP_PC_CANON_CameraOwner", 0xd033},
{PTP_PC, 2, "PTP_PC_CANON_UnixTime", 0xd032},
{PTP_PC, 2, "PTP_PC_CANON_ViewFinderOut", 0xD036},
{PTP_PC, 2, "PTP_PC_CANON_RealImageWidth", 0xD039},
{PTP_PC, 2, "PTP_PC_CANON_PhotoEffect", 0xD040},
{PTP_PC, 2, "PTP_PC_CANON_AssistLight", 0xD041},
{PTP_PC, 1, "PTP_PC_EOS_Aperture", 0xD101},
{PTP_PC, 1, "PTP_PC_EOS_ShutterSpeed", 0xD102},
{PTP_PC, 1, "PTP_PC_EOS_ISOSpeed", 0xD103},
{PTP_PC, 1, "PTP_PC_EOS_ExpCompensation", 0xD104},
{PTP_PC, 1, "PTP_PC_EOS_AutoExposureMode", 0xD105},
{PTP_PC, 1, "PTP_PC_EOS_DriveMode", 0xD106},
{PTP_PC, 1, "PTP_PC_EOS_MeteringMode", 0xD107},
{PTP_PC, 1, "PTP_PC_EOS_FocusMode", 0xD108},
{PTP_PC, 1, "PTP_PC_EOS_WhiteBalance", 0xD109},
{PTP_PC, 1, "PTP_PC_EOS_ColorTemperature", 0xD10A},
{PTP_PC, 1, "PTP_PC_EOS_WhiteBalanceAdjustA", 0xD10B},
{PTP_PC, 1, "PTP_PC_EOS_WhiteBalanceAdjustB", 0xD10C},
{PTP_PC, 1, "PTP_PC_EOS_WhiteBalanceXA", 0xD10D},
{PTP_PC, 1, "PTP_PC_EOS_WhiteBalanceXB", 0xD10E},
{PTP_PC, 1, "PTP_PC_EOS_ColorSpace", 0xD10F},
{PTP_PC, 1, "PTP_PC_EOS_PictureStyle", 0xD110},
{PTP_PC, 1, "PTP_PC_EOS_BatteryPower", 0xD111},
{PTP_PC, 1, "PTP_PC_EOS_BatterySelect", 0xD112},
{PTP_PC, 1, "PTP_PC_EOS_CameraTime", 0xD113},
{PTP_PC, 1, "PTP_PC_EOS_Owner", 0xD115},
{PTP_PC, 1, "PTP_PC_EOS_ModelID", 0xD116},
{PTP_PC, 1, "PTP_PC_EOS_PTPExtensionVersion", 0xD119},
{PTP_PC, 1, "PTP_PC_EOS_DPOFVersion", 0xD11A},
{PTP_PC, 1, "PTP_PC_EOS_AvailableShots", 0xD11B},
{PTP_PC, 1, "PTP_PC_EOS_CaptureDestination", 0xD11C},
{PTP_PC, 1, "PTP_PC_EOS_CurrentFolder", 0xD11F},
{PTP_PC, 1, "PTP_PC_EOS_ImageFormat", 0xD120},
{PTP_PC, 1, "PTP_PC_EOS_ImageFormatCF", 0xD121},
{PTP_PC, 1, "PTP_PC_EOS_ImageFormatSD", 0xD122},
{PTP_PC, 1, "PTP_PC_EOS_ImageFormatExtHD", 0xD123},
{PTP_PC, 1, "PTP_PC_EOS_AEModeDial", 0xD138},
{PTP_PC, 1, "PTP_PC_EOS_ShutterCounter", 0xD1AC},
{PTP_PC, 1, "PTP_PC_EOS_VF_Output", 0xD1B0},
{PTP_PC, 1, "PTP_PC_EOS_EVFMode", 0xD1B1},
{PTP_PC, 1, "PTP_PC_EOS_DOFPreview", 0xD1B2},
{PTP_PC, 1, "PTP_PC_EOS_VFSharp", 0xD1B3},
{PTP_PC, 1, "PTP_PC_EOS_EVFWBMode", 0xD1B4},
{PTP_PC, 1, "PTP_PC_EOS_FocusInfoEx", 0xD1D3},
{PTP_ENUM, 0, "PTP_DPC_BatteryLevel", 0x5001},
{PTP_ENUM, 0, "PTP_DPC_FunctionalMode", 0x5002},
{PTP_ENUM, 0, "PTP_DPC_ImageSize", 0x5003},
{PTP_ENUM, 0, "PTP_DPC_CompressionSetting", 0x5004},
{PTP_ENUM, 0, "PTP_DPC_WhiteBalance", 0x5005},
{PTP_ENUM, 0, "PTP_DPC_RGBGain", 0x5006},
{PTP_ENUM, 0, "PTP_DPC_FNumber", 0x5007},
{PTP_ENUM, 0, "PTP_DPC_FocalLength", 0x5008},
{PTP_ENUM, 0, "PTP_DPC_FocalDistance", 0x5009},
{PTP_ENUM, 0, "PTP_DPC_FocusMode", 0x500A},
{PTP_ENUM, 0, "PTP_DPC_ExposureMeteringMode", 0x500B},
{PTP_ENUM, 0, "PTP_DPC_FlashMode", 0x500C},
{PTP_ENUM, 0, "PTP_DPC_ExposureTime", 0x500D},
{PTP_ENUM, 0, "PTP_DPC_ExposureProgramMode", 0x500E},
{PTP_ENUM, 0, "PTP_DPC_ExposureIndex", 0x500F},
{PTP_ENUM, 0, "PTP_DPC_ExposureBiasCompensation", 0x5010},
{PTP_ENUM, 0, "PTP_DPC_DateTime", 0x5011},
{PTP_ENUM, 0, "PTP_DPC_CaptureDelay", 0x5012},
{PTP_ENUM, 0, "PTP_DPC_StillCaptureMode", 0x5013},
{PTP_ENUM, 0, "PTP_DPC_Contrast", 0x5014},
{PTP_ENUM, 0, "PTP_DPC_Sharpness", 0x5015},
{PTP_ENUM, 0, "PTP_DPC_DigitalZoom", 0x5016},
{PTP_ENUM, 0, "PTP_DPC_EffectMode", 0x5017},
{PTP_ENUM, 0, "PTP_DPC_BurstNumber", 0x5018},
{PTP_ENUM, 0, "PTP_DPC_BurstInterval", 0x5019},
{PTP_ENUM, 0, "PTP_DPC_TimelapseNumber", 0x501A},
{PTP_ENUM, 0, "PTP_DPC_TimelapseInterval", 0x501B},
{PTP_ENUM, 0, "PTP_DPC_FocusMeteringMode", 0x501C},
{PTP_ENUM, 0, "PTP_DPC_UploadURL", 0x501D},
{PTP_ENUM, 0, "PTP_DPC_Artist", 0x501E},
{PTP_ENUM, 0, "PTP_DPC_CopyrightInfo", 0x501F},
{PTP_ENUM, 0, "PTP_DPC_SupportedStreams", 0x5020},
{PTP_ENUM, 0, "PTP_DPC_EnabledStreams", 0x5021},
{PTP_ENUM, 0, "PTP_DPC_VideoFormat", 0x5022},
{PTP_ENUM, 0, "PTP_DPC_VideoResolution", 0x5023},
{PTP_ENUM, 0, "PTP_DPC_VideoQuality", 0x5024},
{PTP_ENUM, 0, "PTP_DPC_VideoFrameRate", 0x5025},
{PTP_ENUM, 0, "PTP_DPC_VideoContrast", 0x5026},
{PTP_ENUM, 0, "PTP_DPC_VideoBrightness", 0x5027},
{PTP_ENUM, 0, "PTP_DPC_AudioFormat", 0x5028},
{PTP_ENUM, 0, "PTP_DPC_AudioBitrate", 0x5029},
{PTP_ENUM, 0, "PTP_DPC_AudioSamplingRate", 0x502A},
{PTP_ENUM, 0, "PTP_DPC_AudioBitPerSample", 0x502B},
{PTP_ENUM, 0, "PTP_DPC_AudioVolume", 0x502C},
{PTP_ENUM, 0, "PTP_DPC_CANON_BeepCode", 0xD001},
{PTP_ENUM, 0, "PTP_DPC_CANON_ViewFinderMode", 0xD003},
{PTP_ENUM, 0, "PTP_DPC_CANON_ImageQuality", 0xD006},
{PTP_ENUM, 0, "PTP_DPC_CANON_ImageSize", 0xD008},
{PTP_ENUM, 0, "PTP_DPC_CANON_FlashMode", 0xD00a},
{PTP_ENUM, 0, "PTP_DPC_CANON_TvAvSetting", 0xD00c},
{PTP_ENUM, 0, "PTP_DPC_CANON_MeteringMode", 0xd010},
{PTP_ENUM, 0, "PTP_DPC_CANON_MacroMode", 0xd011},
{PTP_ENUM, 0, "PTP_DPC_CANON_FocusingPoint", 0xd012},
{PTP_ENUM, 0, "PTP_DPC_CANON_WhiteBalance", 0xd013},
{PTP_ENUM, 0, "PTP_DPC_CANON_AFMode", 0xD015},
{PTP_ENUM, 0, "PTP_DPC_CANON_Contrast", 0xD017},
{PTP_ENUM, 0, "PTP_DPC_CANON_ISOSpeed", 0xd01c},
{PTP_ENUM, 0, "PTP_DPC_CANON_Aperture", 0xd01c},
{PTP_ENUM, 0, "PTP_DPC_CANON_ShutterSpeed", 0xd01e},
{PTP_ENUM, 0, "PTP_DPC_CANON_ExpComp", 0xd01f},
{PTP_ENUM, 0, "PTP_DPC_CANON_Zoom", 0xd02a},
{PTP_ENUM, 0, "PTP_DPC_CANON_SizeQuality", 0xd02c},
{PTP_ENUM, 0, "PTP_DPC_CANON_FlashMemory", 0xd031},
{PTP_ENUM, 0, "PTP_DPC_CANON_CameraModel", 0xd032},
{PTP_ENUM, 0, "PTP_DPC_CANON_CameraOwner", 0xd033},
{PTP_ENUM, 0, "PTP_DPC_CANON_UnixTime", 0xd032},
{PTP_ENUM, 0, "PTP_DPC_CANON_ViewFinderOut", 0xD036},
{PTP_ENUM, 0, "PTP_DPC_CANON_RealImageWidth", 0xD039},
{PTP_ENUM, 0, "PTP_DPC_CANON_PhotoEffect", 0xD040},
{PTP_ENUM, 0, "PTP_DPC_CANON_AssistLight", 0xD041},
{PTP_ENUM, 0, "PTP_DPC_EOS_Aperture", 0xD101},
{PTP_ENUM, 0, "PTP_DPC_EOS_ShutterSpeed", 0xD102},
{PTP_ENUM, 0, "PTP_DPC_EOS_ISOSpeed", 0xD103},
{PTP_ENUM, 0, "PTP_DPC_EOS_ExpCompensation", 0xD104},
{PTP_ENUM, 0, "PTP_DPC_EOS_AutoExposureMode", 0xD105},
{PTP_ENUM, 0, "PTP_DPC_EOS_DriveMode", 0xD106},
{PTP_ENUM, 0, "PTP_DPC_EOS_MeteringMode", 0xD107},
{PTP_ENUM, 0, "PTP_DPC_EOS_FocusMode", 0xD108},
{PTP_ENUM, 0, "PTP_DPC_EOS_WhiteBalance", 0xD109},
{PTP_ENUM, 0, "PTP_DPC_EOS_ColorTemperature", 0xD10A},
{PTP_ENUM, 0, "PTP_DPC_EOS_WhiteBalanceAdjustA", 0xD10B},
{PTP_ENUM, 0, "PTP_DPC_EOS_WhiteBalanceAdjustB", 0xD10C},
{PTP_ENUM, 0, "PTP_DPC_EOS_WhiteBalanceXA", 0xD10D},
{PTP_ENUM, 0, "PTP_DPC_EOS_WhiteBalanceXB", 0xD10E},
{PTP_ENUM, 0, "PTP_DPC_EOS_ColorSpace", 0xD10F},
{PTP_ENUM, 0, "PTP_DPC_EOS_PictureStyle", 0xD110},
{PTP_ENUM, 0, "PTP_DPC_EOS_BatteryPower", 0xD111},
{PTP_ENUM, 0, "PTP_DPC_EOS_BatterySelect", 0xD112},
{PTP_ENUM, 0, "PTP_DPC_EOS_CameraTime", 0xD113},
{PTP_ENUM, 0, "PTP_DPC_EOS_Owner", 0xD115},
{PTP_ENUM, 0, "PTP_DPC_EOS_ModelID", 0xD116},
{PTP_ENUM, 0, "PTP_DPC_EOS_PTPExtensionVersion", 0xD119},
{PTP_ENUM, 0, "PTP_DPC_EOS_DPOFVersion", 0xD11A},
{PTP_ENUM, 0, "PTP_DPC_EOS_AvailableShots", 0xD11B},
{PTP_ENUM, 0, "PTP_DPC_EOS_CaptureDestination", 0xD11C},
{PTP_ENUM, 0, "PTP_DPC_EOS_CurrentFolder", 0xD11F},
{PTP_ENUM, 0, "PTP_DPC_EOS_ImageFormat", 0xD120},
{PTP_ENUM, 0, "PTP_DPC_EOS_ImageFormatCF", 0xD121},
{PTP_ENUM, 0, "PTP_DPC_EOS_ImageFormatSD", 0xD122},
{PTP_ENUM, 0, "PTP_DPC_EOS_ImageFormatExtHD", 0xD123},
{PTP_ENUM, 0, "PTP_DPC_EOS_AEModeDial", 0xD138},
{PTP_ENUM, 0, "PTP_DPC_EOS_ShutterCounter", 0xD1AC},
{PTP_ENUM, 0, "PTP_DPC_EOS_VF_Output", 0xD1B0},
{PTP_ENUM, 0, "PTP_DPC_EOS_EVFMode", 0xD1B1},
{PTP_ENUM, 0, "PTP_DPC_EOS_DOFPreview", 0xD1B2},
{PTP_ENUM, 0, "PTP_DPC_EOS_VFSharp", 0xD1B3},
{PTP_ENUM, 0, "PTP_DPC_EOS_EVFWBMode", 0xD1B4},
{PTP_ENUM, 0, "PTP_DPC_EOS_FocusInfoEx", 0xD1D3},
{PTP_OC, 0, "PTP_OC_ML_LiveBmpRam", 0x9996},
{PTP_OC, 0, "PTP_OC_ML_Live360x240", 0x9997},
{PTP_OC, 0, "PTP_OC_MagicLantern", 0x9998},
Expand Down
Loading

0 comments on commit c68aa0c

Please sign in to comment.