mtp

package
v0.0.0-...-689b5b4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 3, 2014 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Overview

The MTP packages defines data types and procedures for communicating with an MTP device. Beyond the communication primitive, it implements many useful operations in the file ops.go. These may serve as an example how to implement further operations.

Index

Constants

View Source
const AC_ReadOnly = 0x0001
View Source
const AC_ReadOnly_with_Object_Deletion = 0x0002
View Source
const AC_ReadWrite = 0x0000
View Source
const AT_2DPanoramic = 0x0006
View Source
const AT_Album = 0x0002
View Source
const AT_AncillaryData = 0x0007
View Source
const AT_GenericFolder = 0x0001
View Source
const AT_HorizontalPanoramic = 0x0004
View Source
const AT_TimeSequence = 0x0003
View Source
const AT_Undefined = 0x0000
View Source
const AT_VerticalPanoramic = 0x0005
View Source
const DL_BE = 0xF0
View Source
const DL_LE = 0x0F
View Source
const DPC_Artist = 0x501E
View Source
const DPC_AudioBitPerSample = 0x502B
View Source
const DPC_AudioBitrate = 0x5029
View Source
const DPC_AudioFormat = 0x5028
View Source
const DPC_AudioSamplingRate = 0x502A
View Source
const DPC_AudioVolume = 0x502C
View Source
const DPC_BatteryLevel = 0x5001
View Source
const DPC_BurstInterval = 0x5019
View Source
const DPC_BurstNumber = 0x5018
View Source
const DPC_CANON_AEBExposureCompensation = 0xD021
View Source
const DPC_CANON_AFDistance = 0xD011
View Source
const DPC_CANON_AFMode = 0xD015
View Source
const DPC_CANON_Aperture = 0xD01D
View Source
const DPC_CANON_AssistLight = 0xD041
View Source
const DPC_CANON_AvMax = 0xD024
View Source
const DPC_CANON_AvMaxApex = 0xD03C
View Source
const DPC_CANON_AvOpen = 0xD023
View Source
const DPC_CANON_AvOpenApex = 0xD038
View Source
const DPC_CANON_AverageFilesizes = 0xD048
View Source
const DPC_CANON_BatteryKind = 0xD002
View Source
const DPC_CANON_BatteryStatus = 0xD003
View Source
const DPC_CANON_Beep = 0xD00B
View Source
const DPC_CANON_BeepMode = 0xD001
View Source
const DPC_CANON_CameraBodyID = 0xD035
View Source
const DPC_CANON_CameraMode = 0xD005
View Source
const DPC_CANON_CameraModel = 0xD032
View Source
const DPC_CANON_CameraOutput = 0xD036
View Source
const DPC_CANON_CameraOwner = 0xD033
View Source
const DPC_CANON_CaptureTransferMode = 0xD029
View Source
const DPC_CANON_ColorGain = 0xD018
View Source
const DPC_CANON_Contrast = 0xD017
View Source
const DPC_CANON_DPOFVersion = 0xD046
View Source
const DPC_CANON_DZoomMagnification = 0xD039
View Source
const DPC_CANON_DispAv = 0xD037
View Source
const DPC_CANON_DispAvMax = 0xD03B
View Source
const DPC_CANON_DriveMode = 0xD00E
View Source
const DPC_CANON_EOS_AEB = 0xD1d9
View Source
const DPC_CANON_EOS_AdapterInfo = 0xD1a7
View Source
const DPC_CANON_EOS_Aperture = 0xD101
View Source
const DPC_CANON_EOS_Artist = 0xD1d0
View Source
const DPC_CANON_EOS_AutoExposureMode = 0xD105
View Source
const DPC_CANON_EOS_AvailableShots = 0xD11B
View Source
const DPC_CANON_EOS_BatteryInfo = 0xD1a6
View Source
const DPC_CANON_EOS_BatteryPower = 0xD111
View Source
const DPC_CANON_EOS_BatterySelect = 0xD112
View Source
const DPC_CANON_EOS_BracketMode = 0xD11D
View Source
const DPC_CANON_EOS_BracketValue = 0xD1d2
View Source
const DPC_CANON_EOS_Brightness = 0xD1d5
View Source
const DPC_CANON_EOS_CameraTime = 0xD113
View Source
const DPC_CANON_EOS_CaptureDestination = 0xD11C
View Source
const DPC_CANON_EOS_CardExtension = 0xD1aa
View Source
const DPC_CANON_EOS_ColorSpace = 0xD10F
View Source
const DPC_CANON_EOS_ColorTemperature = 0xD10A
View Source
const DPC_CANON_EOS_CompressionL = 0xD133
View Source
const DPC_CANON_EOS_CompressionM1 = 0xD131
View Source
const DPC_CANON_EOS_CompressionM2 = 0xD132
View Source
const DPC_CANON_EOS_CompressionS = 0xD130
View Source
const DPC_CANON_EOS_Copyright = 0xD1d1
View Source
const DPC_CANON_EOS_CurrentFolder = 0xD11F
View Source
const DPC_CANON_EOS_CurrentStorage = 0xD11E
View Source
const DPC_CANON_EOS_CustomFunc1 = 0xD180
View Source
const DPC_CANON_EOS_CustomFunc10 = 0xD189
View Source
const DPC_CANON_EOS_CustomFunc11 = 0xD18a
View Source
const DPC_CANON_EOS_CustomFunc12 = 0xD18b
View Source
const DPC_CANON_EOS_CustomFunc13 = 0xD18c
View Source
const DPC_CANON_EOS_CustomFunc14 = 0xD18d
View Source
const DPC_CANON_EOS_CustomFunc15 = 0xD18e
View Source
const DPC_CANON_EOS_CustomFunc16 = 0xD18f
View Source
const DPC_CANON_EOS_CustomFunc17 = 0xD190
View Source
const DPC_CANON_EOS_CustomFunc18 = 0xD191
View Source
const DPC_CANON_EOS_CustomFunc19 = 0xD192
View Source
const DPC_CANON_EOS_CustomFunc2 = 0xD181
View Source
const DPC_CANON_EOS_CustomFunc3 = 0xD182
View Source
const DPC_CANON_EOS_CustomFunc4 = 0xD183
View Source
const DPC_CANON_EOS_CustomFunc5 = 0xD184
View Source
const DPC_CANON_EOS_CustomFunc6 = 0xD185
View Source
const DPC_CANON_EOS_CustomFunc7 = 0xD186
View Source
const DPC_CANON_EOS_CustomFunc8 = 0xD187
View Source
const DPC_CANON_EOS_CustomFunc9 = 0xD188
View Source
const DPC_CANON_EOS_CustomFuncEx = 0xD1a0
View Source
const DPC_CANON_EOS_DPOFVersion = 0xD11A
View Source
const DPC_CANON_EOS_DepthOfField = 0xD1d4
View Source
const DPC_CANON_EOS_DepthOfFieldPreview = 0xD1b2
View Source
const DPC_CANON_EOS_DriveMode = 0xD106
View Source
const DPC_CANON_EOS_EFComp = 0xD1d7
View Source
const DPC_CANON_EOS_EVFClickWBCoeffs = 0xD1b5
View Source
const DPC_CANON_EOS_EVFColorTemp = 0xD1b6
View Source
const DPC_CANON_EOS_EVFMode = 0xD1b1
View Source
const DPC_CANON_EOS_EVFOutputDevice = 0xD1b0
View Source
const DPC_CANON_EOS_EVFRecordStatus = 0xD1b8
View Source
const DPC_CANON_EOS_EVFSharpness = 0xD1b3
View Source
const DPC_CANON_EOS_EVFWBMode = 0xD1b4
View Source
const DPC_CANON_EOS_ExpCompensation = 0xD104
View Source
const DPC_CANON_EOS_ExposureSimMode = 0xD1b7
View Source
const DPC_CANON_EOS_FlavorLUTParams = 0xD17f
View Source
const DPC_CANON_EOS_FocusInfoEx = 0xD1d3
View Source
const DPC_CANON_EOS_FocusMode = 0xD108
View Source
const DPC_CANON_EOS_HDDirectoryStructure = 0xD1a5
View Source
const DPC_CANON_EOS_ISOSpeed = 0xD103
View Source
const DPC_CANON_EOS_LensAdjustParams = 0xD1d6
View Source
const DPC_CANON_EOS_LensID = 0xD1dd
View Source
const DPC_CANON_EOS_LensName = 0xD1d8
View Source
const DPC_CANON_EOS_LensStatus = 0xD1a8
View Source
const DPC_CANON_EOS_LvAfSystem = 0xD1ba
View Source
const DPC_CANON_EOS_LvViewTypeSelect = 0xD1bc
View Source
const DPC_CANON_EOS_MWhiteBalance = 0xD145
View Source
const DPC_CANON_EOS_ModelID = 0xD116
View Source
const DPC_CANON_EOS_MovSize = 0xD1bb
View Source
const DPC_CANON_EOS_MyMenu = 0xD1a1
View Source
const DPC_CANON_EOS_MyMenuList = 0xD1a2
View Source
const DPC_CANON_EOS_Owner = 0xD115
View Source
const DPC_CANON_EOS_PCWhiteBalance1 = 0xD140
View Source
const DPC_CANON_EOS_PCWhiteBalance2 = 0xD141
View Source
const DPC_CANON_EOS_PCWhiteBalance3 = 0xD142
View Source
const DPC_CANON_EOS_PCWhiteBalance4 = 0xD143
View Source
const DPC_CANON_EOS_PCWhiteBalance5 = 0xD144
View Source
const DPC_CANON_EOS_PTPExtensionVersion = 0xD119
View Source
const DPC_CANON_EOS_PhotoStudioMode = 0xD1ae
View Source
const DPC_CANON_EOS_PictureStyle = 0xD110
View Source
const DPC_CANON_EOS_PictureStyleBlackWhite = 0xD155
View Source
const DPC_CANON_EOS_PictureStyleFaithful = 0xD154
View Source
const DPC_CANON_EOS_PictureStyleLandscape = 0xD152
View Source
const DPC_CANON_EOS_PictureStyleNeutral = 0xD153
View Source
const DPC_CANON_EOS_PictureStyleParam1 = 0xD170
View Source
const DPC_CANON_EOS_PictureStyleParam2 = 0xD171
View Source
const DPC_CANON_EOS_PictureStyleParam3 = 0xD172
View Source
const DPC_CANON_EOS_PictureStylePortrait = 0xD151
View Source
const DPC_CANON_EOS_PictureStyleStandard = 0xD150
View Source
const DPC_CANON_EOS_PictureStyleUserSet1 = 0xD160
View Source
const DPC_CANON_EOS_PictureStyleUserSet2 = 0xD161
View Source
const DPC_CANON_EOS_PictureStyleUserSet3 = 0xD162
View Source
const DPC_CANON_EOS_QuickReviewTime = 0xD1a9
View Source
const DPC_CANON_EOS_SerialNumber = 0xD1af
View Source
const DPC_CANON_EOS_ShutterCounter = 0xD1ac
View Source
const DPC_CANON_EOS_ShutterSpeed = 0xD102
View Source
const DPC_CANON_EOS_SpecialOption = 0xD1ad
View Source
const DPC_CANON_EOS_StroboFiring = 0xD1dc
View Source
const DPC_CANON_EOS_StroboSetting = 0xD1da
View Source
const DPC_CANON_EOS_StroboWirelessSetting = 0xD1db
View Source
const DPC_CANON_EOS_TempStatus = 0xD1ab
View Source
const DPC_CANON_EOS_WftInputTransmission = 0xD1a4
View Source
const DPC_CANON_EOS_WftStatus = 0xD1a3
View Source
const DPC_CANON_EOS_WhiteBalance = 0xD109
View Source
const DPC_CANON_EOS_WhiteBalanceAdjustA = 0xD10B
View Source
const DPC_CANON_EOS_WhiteBalanceAdjustB = 0xD10C
View Source
const DPC_CANON_EOS_WhiteBalanceXA = 0xD10D
View Source
const DPC_CANON_EOS_WhiteBalanceXB = 0xD10E
View Source
const DPC_CANON_EZoom = 0xD00F
View Source
const DPC_CANON_EZoomSizeOfTele = 0xD03F
View Source
const DPC_CANON_EZoomStartPosition = 0xD03D
View Source
const DPC_CANON_EventEmulateMode = 0xD045
View Source
const DPC_CANON_ExpCompensation = 0xD01F
View Source
const DPC_CANON_FirmwareVersion = 0xD031
View Source
const DPC_CANON_FlashCompensation = 0xD020
View Source
const DPC_CANON_FlashMode = 0xD00A
View Source
const DPC_CANON_FlashQuantityCount = 0xD042
View Source
const DPC_CANON_FocalLength = 0xD025
View Source
const DPC_CANON_FocalLengthDenominator = 0xD028
View Source
const DPC_CANON_FocalLengthOfTele = 0xD03E
View Source
const DPC_CANON_FocalLengthTele = 0xD026
View Source
const DPC_CANON_FocalLengthWide = 0xD027
View Source
const DPC_CANON_FocusingPoint = 0xD012
View Source
const DPC_CANON_FullViewFileFormat = 0xD007
View Source
const DPC_CANON_ISOSpeed = 0xD01C
View Source
const DPC_CANON_ImageMode = 0xD00D
View Source
const DPC_CANON_ImageQuality = 0xD006
View Source
const DPC_CANON_ImageSize = 0xD008
View Source
const DPC_CANON_ImageStabilization = 0xD016
View Source
const DPC_CANON_MeteringMode = 0xD010
View Source
const DPC_CANON_MlSpotPos = 0xD03A
View Source
const DPC_CANON_ModelID = 0xD049
View Source
const DPC_CANON_NamePrefix = 0xD02B
View Source
const DPC_CANON_ParameterSet = 0xD01B
View Source
const DPC_CANON_PhotoEffect = 0xD040
View Source
const DPC_CANON_RemoteAPIVersion = 0xD030
View Source
const DPC_CANON_RotationAngle = 0xD043
View Source
const DPC_CANON_RotationScene = 0xD044
View Source
const DPC_CANON_SelfTime = 0xD009
View Source
const DPC_CANON_Sensitivity = 0xD01A
View Source
const DPC_CANON_Sharpness = 0xD019
View Source
const DPC_CANON_ShootingMode = 0xD00C
View Source
const DPC_CANON_ShutterSpeed = 0xD01E
View Source
const DPC_CANON_SizeOfInputDataToCamera = 0xD02F
View Source
const DPC_CANON_SizeOfOutputDataFromCamera = 0xD02E
View Source
const DPC_CANON_SizeQualityMode = 0xD02C
View Source
const DPC_CANON_SlowShutterSetting = 0xD014
View Source
const DPC_CANON_SupportedThumbSize = 0xD02D
View Source
const DPC_CANON_TypeOfSupportedSlideShow = 0xD047
View Source
const DPC_CANON_UILockType = 0xD004
View Source
const DPC_CANON_UnixTime = 0xD034
View Source
const DPC_CANON_WhiteBalance = 0xD013
View Source
const DPC_CANON_Zoom = 0xD02A
View Source
const DPC_CASIO_CS_HIGH_SPEED = 0xD00F
View Source
const DPC_CASIO_CS_SHOT = 0xD011
View Source
const DPC_CASIO_CS_UPPER_LIMIT = 0xD010
View Source
const DPC_CASIO_HD_SETTING = 0xD00C
View Source
const DPC_CASIO_HS_SETTING = 0xD00D
View Source
const DPC_CASIO_MOVIE_MODE = 0xD00B
View Source
const DPC_CASIO_RECORD_LIGHT = 0xD008
View Source
const DPC_CASIO_UNKNOWN_1 = 0xD004
View Source
const DPC_CASIO_UNKNOWN_10 = 0xD018
View Source
const DPC_CASIO_UNKNOWN_11 = 0xD019
View Source
const DPC_CASIO_UNKNOWN_12 = 0xD01A
View Source
const DPC_CASIO_UNKNOWN_13 = 0xD01B
View Source
const DPC_CASIO_UNKNOWN_14 = 0xD01C
View Source
const DPC_CASIO_UNKNOWN_15 = 0xD01D
View Source
const DPC_CASIO_UNKNOWN_16 = 0xD020
View Source
const DPC_CASIO_UNKNOWN_17 = 0xD030
View Source
const DPC_CASIO_UNKNOWN_18 = 0xD080
View Source
const DPC_CASIO_UNKNOWN_2 = 0xD005
View Source
const DPC_CASIO_UNKNOWN_3 = 0xD007
View Source
const DPC_CASIO_UNKNOWN_4 = 0xD009
View Source
const DPC_CASIO_UNKNOWN_5 = 0xD00A
View Source
const DPC_CASIO_UNKNOWN_6 = 0xD012
View Source
const DPC_CASIO_UNKNOWN_7 = 0xD013
View Source
const DPC_CASIO_UNKNOWN_8 = 0xD015
View Source
const DPC_CASIO_UNKNOWN_9 = 0xD017
View Source
const DPC_CaptureDelay = 0x5012
View Source
const DPC_CompressionSetting = 0x5004
View Source
const DPC_Contrast = 0x5014
View Source
const DPC_CopyrightInfo = 0x501F
View Source
const DPC_DateTime = 0x5011
View Source
const DPC_DigitalZoom = 0x5016
View Source
const DPC_EK_BeepMode = 0xD003
View Source
const DPC_EK_ColorTemperature = 0xD001
View Source
const DPC_EK_DateTimeStampFormat = 0xD002
View Source
const DPC_EK_PowerSaving = 0xD005
View Source
const DPC_EK_UI_Language = 0xD006
View Source
const DPC_EK_VideoOut = 0xD004
View Source
const DPC_EXTENSION = 0xD000
View Source
const DPC_EXTENSION_MASK = 0xF000
View Source
const DPC_EffectMode = 0x5017
View Source
const DPC_EnabledStreams = 0x5021
View Source
const DPC_ExposureBiasCompensation = 0x5010
View Source
const DPC_ExposureIndex = 0x500F
View Source
const DPC_ExposureMeteringMode = 0x500B
View Source
const DPC_ExposureProgramMode = 0x500E
View Source
const DPC_ExposureTime = 0x500D
View Source
const DPC_FNumber = 0x5007
View Source
const DPC_FUJI_AELock = 0xD213
View Source
const DPC_FUJI_Aperture = 0xD218
View Source
const DPC_FUJI_ColorTemperature = 0xD017
View Source
const DPC_FUJI_FocusAreas = 0xD206
View Source
const DPC_FUJI_Quality = 0xD018
View Source
const DPC_FUJI_ReleaseMode = 0xD201
View Source
const DPC_FUJI_ShutterSpeed = 0xD219
View Source
const DPC_FlashMode = 0x500C
View Source
const DPC_FocalLength = 0x5008
View Source
const DPC_FocusDistance = 0x5009
View Source
const DPC_FocusMeteringMode = 0x501C
View Source
const DPC_FocusMode = 0x500A
View Source
const DPC_FunctionalMode = 0x5002
View Source
const DPC_ImageSize = 0x5003
View Source
const DPC_MTP_DeviceCertificate = 0xD102
View Source
const DPC_MTP_DeviceFriendlyName = 0xD402
View Source
const DPC_MTP_DeviceIcon = 0xD405
View Source
const DPC_MTP_PerceivedDeviceType = 0xD407
View Source
const DPC_MTP_PlaybackContainerIndex = 0xD412
View Source
const DPC_MTP_PlaybackObject = 0xD411
View Source
const DPC_MTP_PlaybackPosition = 0xD413
View Source
const DPC_MTP_PlaybackRate = 0xD410
View Source
const DPC_MTP_PlaysForSureID = 0xD131
View Source
const DPC_MTP_RevocationInfo = 0xD103
View Source
const DPC_MTP_SecureTime = 0xD101
View Source
const DPC_MTP_SessionInitiatorInfo = 0xD406
View Source
const DPC_MTP_SynchronizationPartner = 0xD401
View Source
const DPC_MTP_VolumeLevel = 0xD403
View Source
const DPC_MTP_ZUNE_UNKNOWN1 = 0xD181
View Source
const DPC_MTP_ZUNE_UNKNOWN2 = 0xD132
View Source
const DPC_MTP_ZUNE_UNKNOWN3 = 0xD215
View Source
const DPC_MTP_ZUNE_UNKNOWN4 = 0xD216
View Source
const DPC_MTP_Zune_UnknownVersion = 0xD181
View Source
const DPC_NIKON_A1AFCModePriority = 0xD048
View Source
const DPC_NIKON_A2AFSModePriority = 0xD049
View Source
const DPC_NIKON_A3GroupDynamicAF = 0xD04A
View Source
const DPC_NIKON_A4AFActivation = 0xD04B
View Source
const DPC_NIKON_ACPower = 0xD101
View Source
const DPC_NIKON_AEAFLockButton2 = 0xD18B
View Source
const DPC_NIKON_AELAFLMode = 0xD05F
View Source
const DPC_NIKON_AELockMode = 0xD05E
View Source
const DPC_NIKON_AELockStatus = 0xD105
View Source
const DPC_NIKON_AFAreaIllumination = 0xD166
View Source
const DPC_NIKON_AFAreaPoint = 0xD08D
View Source
const DPC_NIKON_AFAssist = 0xD163
View Source
const DPC_NIKON_AFLockOn = 0xD051
View Source
const DPC_NIKON_AFLockStatus = 0xD104
View Source
const DPC_NIKON_AVLockSetting = 0xD113
View Source
const DPC_NIKON_ActivePicCtrlItem = 0xD200
View Source
const DPC_NIKON_AngleLevel = 0xD067
View Source
const DPC_NIKON_ArtistName = 0xD072
View Source
const DPC_NIKON_AutoDXCrop = 0xD033
View Source
const DPC_NIKON_AutoDistortionControl = 0xD0F8
View Source
const DPC_NIKON_AutoExposureBracketCount = 0xD0C3
View Source
const DPC_NIKON_AutoExposureBracketProgram = 0xD0C2
View Source
const DPC_NIKON_AutoExposureBracketStep = 0xD0C1
View Source
const DPC_NIKON_AutoFP = 0xD16F
View Source
const DPC_NIKON_AutoOffInfo = 0xD0F4
View Source
const DPC_NIKON_AutoOffMenu = 0xD0F3
View Source
const DPC_NIKON_AutoOffPhoto = 0xD0F2
View Source
const DPC_NIKON_AutoOffTimers = 0xD066
View Source
const DPC_NIKON_AutofocusArea = 0xD108
View Source
const DPC_NIKON_AutofocusLCDTopMode2 = 0xD107
View Source
const DPC_NIKON_AutofocusMode = 0xD161
View Source
const DPC_NIKON_BW_Contrast = 0xD145
View Source
const DPC_NIKON_BW_FillerEffect = 0xD143
View Source
const DPC_NIKON_BW_Setting_Type = 0xD146
View Source
const DPC_NIKON_BW_Sharpness = 0xD144
View Source
const DPC_NIKON_BatteryCellKind = 0xD182
View Source
const DPC_NIKON_BeepOff = 0xD160
View Source
const DPC_NIKON_BracketOrder = 0xD07A
View Source
const DPC_NIKON_Bracketing = 0xD0C0
View Source
const DPC_NIKON_BracketingFramesAndSteps = 0xD190
View Source
const DPC_NIKON_BracketingSet = 0xD07C
View Source
const DPC_NIKON_CCDNumber = 0xD10D
View Source
const DPC_NIKON_CSMMenu = 0xD180
View Source
const DPC_NIKON_CSMMenuBankSelect = 0xD040
View Source
const DPC_NIKON_CameraOrientation = 0xD10E
View Source
const DPC_NIKON_CellKindPriority = 0xD18E
View Source
const DPC_NIKON_CenterButtonPlaybackMode = 0xD081
View Source
const DPC_NIKON_CenterButtonZoomRatio = 0xD08B
View Source
const DPC_NIKON_CenterWeightArea = 0xD059
View Source
const DPC_NIKON_ChangePicCtrlItem = 0xD201
View Source
const DPC_NIKON_CleanImageSensor = 0xD08F
View Source
const DPC_NIKON_ColorModel = 0xD02C
View Source
const DPC_NIKON_ColorSpace = 0xD032
View Source
const DPC_NIKON_ContinuousSpeedHigh = 0xD186
View Source
const DPC_NIKON_ControlPanelFinderRearControl = 0xD06D
View Source
const DPC_NIKON_ControlPanelFinderViewfinder = 0xD06E
View Source
const DPC_NIKON_CopyrightInfo = 0xD073
View Source
const DPC_NIKON_D2MaximumShots = 0xD069
View Source
const DPC_NIKON_D7Illumination = 0xD06F
View Source
const DPC_NIKON_DynamicAFArea = 0xD184
View Source
const DPC_NIKON_E3AAFlashMode = 0xD076
View Source
const DPC_NIKON_E4ModelingFlash = 0xD077
View Source
const DPC_NIKON_EVISOStep = 0xD055
View Source
const DPC_NIKON_EVStepExposureComp = 0xD057
View Source
const DPC_NIKON_EffectMode = 0xD037
View Source
const DPC_NIKON_EnableCopyright = 0xD053
View Source
const DPC_NIKON_ExposureBaseCenter = 0xD05B
View Source
const DPC_NIKON_ExposureBaseMatrix = 0xD05A
View Source
const DPC_NIKON_ExposureBaseSpot = 0xD05C
View Source
const DPC_NIKON_ExposureCompensation = 0xD058
View Source
const DPC_NIKON_ExposureDelayMode = 0xD06A
View Source
const DPC_NIKON_ExposureDisplayStatus = 0xD1B0
View Source
const DPC_NIKON_ExposureIndicateLightup = 0xD1B3
View Source
const DPC_NIKON_ExposureIndicateStatus = 0xD1B1
View Source
const DPC_NIKON_ExternalFlashAttached = 0xD120
View Source
const DPC_NIKON_ExternalFlashCompensation = 0xD124
View Source
const DPC_NIKON_ExternalFlashMode = 0xD123
View Source
const DPC_NIKON_ExternalFlashSort = 0xD122
View Source
const DPC_NIKON_ExternalFlashStatus = 0xD121
View Source
const DPC_NIKON_F1CenterButtonShootingMode = 0xD080
View Source
const DPC_NIKON_F2Multiselector = 0xD082
View Source
const DPC_NIKON_FNumberLock = 0xD110
View Source
const DPC_NIKON_FVLockStatus = 0xD106
View Source
const DPC_NIKON_FileNumberSequence = 0xD06C
View Source
const DPC_NIKON_FinderISODisp = 0xD0F0
View Source
const DPC_NIKON_FlashCharged = 0xD1C1
View Source
const DPC_NIKON_FlashCommandACompensation = 0xD1D8
View Source
const DPC_NIKON_FlashCommandAMode = 0xD1D7
View Source
const DPC_NIKON_FlashCommandAValue = 0xD1D9
View Source
const DPC_NIKON_FlashCommandBCompensation = 0xD1DB
View Source
const DPC_NIKON_FlashCommandBMode = 0xD1DA
View Source
const DPC_NIKON_FlashCommandBValue = 0xD1DC
View Source
const DPC_NIKON_FlashCommandChannel = 0xD1D3
View Source
const DPC_NIKON_FlashCommandSelfCompensation = 0xD1D5
View Source
const DPC_NIKON_FlashCommandSelfMode = 0xD1D4
View Source
const DPC_NIKON_FlashCommandSelfValue = 0xD1D6
View Source
const DPC_NIKON_FlashCommanderMode = 0xD168
View Source
const DPC_NIKON_FlashExposureCompensation = 0xD126
View Source
const DPC_NIKON_FlashMRepeatCount = 0xD1D1
View Source
const DPC_NIKON_FlashMRepeatInterval = 0xD1D2
View Source
const DPC_NIKON_FlashMRepeatValue = 0xD1D0
View Source
const DPC_NIKON_FlashMode = 0xD167
View Source
const DPC_NIKON_FlashModeCommanderPower = 0xD16E
View Source
const DPC_NIKON_FlashModeManualPower = 0xD16D
View Source
const DPC_NIKON_FlashOpen = 0xD1C0
View Source
const DPC_NIKON_FlashSign = 0xD169
View Source
const DPC_NIKON_FlashSyncSpeed = 0xD074
View Source
const DPC_NIKON_FlexibleProgram = 0xD109
View Source
const DPC_NIKON_FlourescentType = 0xD14F
View Source
const DPC_NIKON_FocalLengthMax = 0xD0E4
View Source
const DPC_NIKON_FocalLengthMin = 0xD0E3
View Source
const DPC_NIKON_FocusAreaIllumContinuous = 0xD04D
View Source
const DPC_NIKON_FocusAreaIllumManualFocus = 0xD04C
View Source
const DPC_NIKON_FocusAreaIllumWhenSelected = 0xD04E
View Source
const DPC_NIKON_FocusAreaZone = 0xD052
View Source
const DPC_NIKON_FocusPointBright = 0xD115
View Source
const DPC_NIKON_FunctionButton2 = 0xD08C
View Source
const DPC_NIKON_GridDisplay = 0xD16C
View Source
const DPC_NIKON_GroupPtnType = 0xD10F
View Source
const DPC_NIKON_HDRHighDynamic = 0xD131
View Source
const DPC_NIKON_HDRMode = 0xD130
View Source
const DPC_NIKON_HDRSmoothing = 0xD132
View Source
const DPC_NIKON_HueAdjustment = 0xD02D
View Source
const DPC_NIKON_ISOAuto = 0xD054
View Source
const DPC_NIKON_ISOAutoHiLimit = 0xD183
View Source
const DPC_NIKON_ISOAutoTime = 0xD14E
View Source
const DPC_NIKON_ISO_Auto = 0xD16A
View Source
const DPC_NIKON_IllumSetting = 0xD114
View Source
const DPC_NIKON_ImageCommentEnable = 0xD091
View Source
const DPC_NIKON_ImageCommentString = 0xD090
View Source
const DPC_NIKON_ImageReview = 0xD165
View Source
const DPC_NIKON_ImageRotation = 0xD092
View Source
const DPC_NIKON_ImageSharpening = 0xD02A
View Source
const DPC_NIKON_ImgConfTime = 0xD065
View Source
const DPC_NIKON_IndicatorDisp = 0xD18D
View Source
const DPC_NIKON_InfoDispErrStatus = 0xD1B2
View Source
const DPC_NIKON_InfoDispSetting = 0xD187
View Source
const DPC_NIKON_JPEG_Compression_Policy = 0xD031
View Source
const DPC_NIKON_LensID = 0xD0E0
View Source
const DPC_NIKON_LensSort = 0xD0E1
View Source
const DPC_NIKON_LensType = 0xD0E2
View Source
const DPC_NIKON_LiveViewAFArea = 0xD05D
View Source
const DPC_NIKON_LiveViewAFFocus = 0xD061
View Source
const DPC_NIKON_LiveViewDriveMode = 0xD1A1
View Source
const DPC_NIKON_LiveViewImageZoomRatio = 0xD1A3
View Source
const DPC_NIKON_LiveViewMode = 0xD1A0
View Source
const DPC_NIKON_LiveViewProhibitCondition = 0xD1A4
View Source
const DPC_NIKON_LiveViewStatus = 0xD1A2
View Source
const DPC_NIKON_LongExposureNoiseReduction = 0xD06B
View Source
const DPC_NIKON_ManualSetLensNo = 0xD093
View Source
const DPC_NIKON_MaxApAtMaxFocalLength = 0xD0E6
View Source
const DPC_NIKON_MaxApAtMinFocalLength = 0xD0E5
View Source
const DPC_NIKON_MenuBankNameA = 0xD041
View Source
const DPC_NIKON_MenuBankNameB = 0xD042
View Source
const DPC_NIKON_MenuBankNameC = 0xD043
View Source
const DPC_NIKON_MenuBankNameD = 0xD044
View Source
const DPC_NIKON_MeterOff = 0xD062
View Source
const DPC_NIKON_MonitorOff = 0xD064
View Source
const DPC_NIKON_MovMicrophone = 0xD0A2
View Source
const DPC_NIKON_MovScreenSize = 0xD0A0
View Source
const DPC_NIKON_MovVoice = 0xD0A1
View Source
const DPC_NIKON_NewExternalFlashMode = 0xD125
View Source
const DPC_NIKON_NormalAFOn = 0xD08E
View Source
const DPC_NIKON_NrHighISO = 0xD070
View Source
const DPC_NIKON_OptimizeImage = 0xD140
View Source
const DPC_NIKON_PreviewButton = 0xD189
View Source
const DPC_NIKON_PreviewButton2 = 0xD18A
View Source
const DPC_NIKON_RawBitMode = 0xD149
View Source
const DPC_NIKON_RawCompression = 0xD016
View Source
const DPC_NIKON_RemoteTimeout = 0xD16B
View Source
const DPC_NIKON_ResetBank = 0xD045
View Source
const DPC_NIKON_ResetBank0 = 0xD015
View Source
const DPC_NIKON_SHSET_CH_GUID_DISP = 0xD071
View Source
const DPC_NIKON_Saturation = 0xD142
View Source
const DPC_NIKON_SceneMode = 0xD0F9
View Source
const DPC_NIKON_SelfTimer = 0xD063
View Source
const DPC_NIKON_SelfTimerShootNum = 0xD0F5
View Source
const DPC_NIKON_ShootingBank = 0xD010
View Source
const DPC_NIKON_ShootingBankNameA = 0xD011
View Source
const DPC_NIKON_ShootingBankNameB = 0xD012
View Source
const DPC_NIKON_ShootingBankNameC = 0xD013
View Source
const DPC_NIKON_ShootingBankNameD = 0xD014
View Source
const DPC_NIKON_ShootingMode = 0xD030
View Source
const DPC_NIKON_Slot2SaveMode = 0xD148
View Source
const DPC_NIKON_TVLockSetting = 0xD112
View Source
const DPC_NIKON_ToneCompensation = 0xD02B
View Source
const DPC_NIKON_TuneColourTemperature = 0xD150
View Source
const DPC_NIKON_TunePreset0 = 0xD151
View Source
const DPC_NIKON_TunePreset1 = 0xD152
View Source
const DPC_NIKON_TunePreset2 = 0xD153
View Source
const DPC_NIKON_TunePreset3 = 0xD154
View Source
const DPC_NIKON_TunePreset4 = 0xD155
View Source
const DPC_NIKON_USBSpeed = 0xD10C
View Source
const DPC_NIKON_VerticalAFON = 0xD050
View Source
const DPC_NIKON_VideoMode = 0xD036
View Source
const DPC_NIKON_VignetteCtrl = 0xD0F7
View Source
const DPC_NIKON_WarningDisplay = 0xD181
View Source
const DPC_NIKON_WarningStatus = 0xD102
View Source
const DPC_NIKON_WhiteBalanceAutoBias = 0xD017
View Source
const DPC_NIKON_WhiteBalanceBracketProgram = 0xD0C5
View Source
const DPC_NIKON_WhiteBalanceBracketStep = 0xD0C4
View Source
const DPC_NIKON_WhiteBalanceCloudyBias = 0xD01C
View Source
const DPC_NIKON_WhiteBalanceColorTemperature = 0xD01E
View Source
const DPC_NIKON_WhiteBalanceDaylightBias = 0xD01A
View Source
const DPC_NIKON_WhiteBalanceFlashBias = 0xD01B
View Source
const DPC_NIKON_WhiteBalanceFluorescentBias = 0xD019
View Source
const DPC_NIKON_WhiteBalancePresetName0 = 0xD020
View Source
const DPC_NIKON_WhiteBalancePresetName1 = 0xD021
View Source
const DPC_NIKON_WhiteBalancePresetName2 = 0xD022
View Source
const DPC_NIKON_WhiteBalancePresetName3 = 0xD023
View Source
const DPC_NIKON_WhiteBalancePresetName4 = 0xD024
View Source
const DPC_NIKON_WhiteBalancePresetNo = 0xD01F
View Source
const DPC_NIKON_WhiteBalancePresetVal0 = 0xD025
View Source
const DPC_NIKON_WhiteBalancePresetVal1 = 0xD026
View Source
const DPC_NIKON_WhiteBalancePresetVal2 = 0xD027
View Source
const DPC_NIKON_WhiteBalancePresetVal3 = 0xD028
View Source
const DPC_NIKON_WhiteBalancePresetVal4 = 0xD029
View Source
const DPC_NIKON_WhiteBalanceShadeBias = 0xD01D
View Source
const DPC_NIKON_WhiteBalanceTungstenBias = 0xD018
View Source
const DPC_OLYMPUS_AEBracket = 0xD159
View Source
const DPC_OLYMPUS_AEBracketingFrame = 0xD110
View Source
const DPC_OLYMPUS_AEBracketingStep = 0xD111
View Source
const DPC_OLYMPUS_AELAFLMode = 0xD135
View Source
const DPC_OLYMPUS_AELButtonStatus = 0xD136
View Source
const DPC_OLYMPUS_AFTargetSize = 0xD157
View Source
const DPC_OLYMPUS_AUXLightMode = 0xD11E
View Source
const DPC_OLYMPUS_AntiMirrorMode = 0xD10F
View Source
const DPC_OLYMPUS_BeepStatus = 0xD120
View Source
const DPC_OLYMPUS_BulbLimiterValue = 0xD152
View Source
const DPC_OLYMPUS_BulbMFMode = 0xD14E
View Source
const DPC_OLYMPUS_BulbMode = 0xD10E
View Source
const DPC_OLYMPUS_BurstFPSValue = 0xD14F
View Source
const DPC_OLYMPUS_ColorMatching = 0xD123
View Source
const DPC_OLYMPUS_ColorSpace = 0xD122
View Source
const DPC_OLYMPUS_ColorTune = 0xD12D
View Source
const DPC_OLYMPUS_CompressionSettingEx = 0xD137
View Source
const DPC_OLYMPUS_CustomDevelop = 0xD141
View Source
const DPC_OLYMPUS_CustomWB = 0xD10B
View Source
const DPC_OLYMPUS_CustomWBValue = 0xD10C
View Source
const DPC_OLYMPUS_DPICustomValue = 0xD154
View Source
const DPC_OLYMPUS_DPIMode = 0xD153
View Source
const DPC_OLYMPUS_DateTimeFormat = 0xD105
View Source
const DPC_OLYMPUS_DevelopMode = 0xD13B
View Source
const DPC_OLYMPUS_DriveMode = 0xD104
View Source
const DPC_OLYMPUS_ExposureBiasStep = 0xD106
View Source
const DPC_OLYMPUS_ExposureIndexBiasStep = 0xD12B
View Source
const DPC_OLYMPUS_ExposureTimeEx = 0xD10D
View Source
const DPC_OLYMPUS_ExtendInnerFlashMode = 0xD13C
View Source
const DPC_OLYMPUS_FLBracketingFrame = 0xD118
View Source
const DPC_OLYMPUS_FLBracketingStep = 0xD119
View Source
const DPC_OLYMPUS_FilterEffect = 0xD12C
View Source
const DPC_OLYMPUS_FlashBiasCompensation = 0xD11A
View Source
const DPC_OLYMPUS_FlashBracket = 0xD15C
View Source
const DPC_OLYMPUS_FlashRCChannelValue = 0xD145
View Source
const DPC_OLYMPUS_FlashRCFPMode = 0xD146
View Source
const DPC_OLYMPUS_FlashRCGroupValue = 0xD144
View Source
const DPC_OLYMPUS_FlashRCMode = 0xD143
View Source
const DPC_OLYMPUS_FlashRCPhotoChromicBias = 0xD148
View Source
const DPC_OLYMPUS_FlashRCPhotoChromicManualBias = 0xD149
View Source
const DPC_OLYMPUS_FlashRCPhotoChromicMode = 0xD147
View Source
const DPC_OLYMPUS_FlashRCQuantityLightLevel = 0xD14A
View Source
const DPC_OLYMPUS_FocusMeteringValue = 0xD14B
View Source
const DPC_OLYMPUS_FocusPriority = 0xD103
View Source
const DPC_OLYMPUS_GradationAutoBias = 0xD142
View Source
const DPC_OLYMPUS_GradationMode = 0xD13A
View Source
const DPC_OLYMPUS_ISOAutoBaseValue = 0xD150
View Source
const DPC_OLYMPUS_ISOAutoMaxValue = 0xD151
View Source
const DPC_OLYMPUS_ISOBoostMode = 0xD12A
View Source
const DPC_OLYMPUS_ISOBracket = 0xD15D
View Source
const DPC_OLYMPUS_ISOBracketingFrame = 0xD14C
View Source
const DPC_OLYMPUS_ISOBracketingStep = 0xD14D
View Source
const DPC_OLYMPUS_LCDBacklight = 0xD140
View Source
const DPC_OLYMPUS_Language = 0xD12E
View Source
const DPC_OLYMPUS_LanguageCode = 0xD12F
View Source
const DPC_OLYMPUS_LensSinkMode = 0xD11F
View Source
const DPC_OLYMPUS_LightSensorMode = 0xD158
View Source
const DPC_OLYMPUS_LiveViewMode = 0xD13E
View Source
const DPC_OLYMPUS_ManualFocusMode = 0xD11B
View Source
const DPC_OLYMPUS_ManualWB = 0xD109
View Source
const DPC_OLYMPUS_ManualWBGMBias = 0xD132
View Source
const DPC_OLYMPUS_ManualWBRBBias = 0xD10A
View Source
const DPC_OLYMPUS_MyModeStatus = 0xD15E
View Source
const DPC_OLYMPUS_NoiseReductionPattern = 0xD126
View Source
const DPC_OLYMPUS_NoiseReductionRandom = 0xD127
View Source
const DPC_OLYMPUS_OneTouchWB = 0xD108
View Source
const DPC_OLYMPUS_OutputDeviceMode = 0xD13D
View Source
const DPC_OLYMPUS_RawSaveMode = 0xD11D
View Source
const DPC_OLYMPUS_RecviewMode = 0xD130
View Source
const DPC_OLYMPUS_ResolutionMode = 0xD102
View Source
const DPC_OLYMPUS_ResolutionValueSetting = 0xD155
View Source
const DPC_OLYMPUS_Saturation = 0xD124
View Source
const DPC_OLYMPUS_ShadingMode = 0xD129
View Source
const DPC_OLYMPUS_SleepTime = 0xD131
View Source
const DPC_OLYMPUS_ToneMode = 0xD139
View Source
const DPC_OLYMPUS_WBBracketingFrame = 0xD112
View Source
const DPC_OLYMPUS_WBBracketingGMFrame = 0xD114
View Source
const DPC_OLYMPUS_WBBracketingGMRange = 0xD115
View Source
const DPC_OLYMPUS_WBBracketingRBRange = 0xD113
View Source
const DPC_OLYMPUS_WBGMBracket = 0xD15B
View Source
const DPC_OLYMPUS_WBMode = 0xD107
View Source
const DPC_OLYMPUS_WBRBBracket = 0xD15A
View Source
const DPC_RGBGain = 0x5006
View Source
const DPC_Sharpness = 0x5015
View Source
const DPC_StillCaptureMode = 0x5013
View Source
const DPC_SupportedStreams = 0x5020
View Source
const DPC_TimelapseInterval = 0x501B
View Source
const DPC_TimelapseNumber = 0x501A
View Source
const DPC_Undefined = 0x5000

device property code

View Source
const DPC_UploadURL = 0x501D
View Source
const DPC_VideoBrightness = 0x5027
View Source
const DPC_VideoContrast = 0x5026
View Source
const DPC_VideoFormat = 0x5022
View Source
const DPC_VideoFrameRate = 0x5025
View Source
const DPC_VideoQuality = 0x5024
View Source
const DPC_VideoResolution = 0x5023
View Source
const DPC_WhiteBalance = 0x5005
View Source
const DPFF_Enumeration = 0x02
View Source
const DPFF_None = 0x00

device property form field

View Source
const DPFF_Range = 0x01
View Source
const DPGS_Get = 0x00

device property get/set

View Source
const DPGS_GetSet = 0x01
View Source
const DTC_ARRAY_MASK = 0x4000
View Source
const DTC_INT128 = 0x0009
View Source
const DTC_INT16 = 0x0003
View Source
const DTC_INT32 = 0x0005
View Source
const DTC_INT64 = 0x0007
View Source
const DTC_INT8 = 0x0001
View Source
const DTC_STR = 0xFFFF
View Source
const DTC_UINT128 = 0x000A
View Source
const DTC_UINT16 = 0x0004
View Source
const DTC_UINT32 = 0x0006
View Source
const DTC_UINT64 = 0x0008
View Source
const DTC_UINT8 = 0x0002
View Source
const DTC_UNDEF = 0x0000

data type code

View Source
const EC_CANON_CameraModeChanged = 0xC00C
View Source
const EC_CANON_EOS_AfResult = 0xc1a3
View Source
const EC_CANON_EOS_AvailListChanged = 0xc18a
View Source
const EC_CANON_EOS_BulbExposureTime = 0xc194
View Source
const EC_CANON_EOS_CameraStatusChanged = 0xc18b
View Source
const EC_CANON_EOS_ObjectAddedEx = 0xc181
View Source
const EC_CANON_EOS_ObjectContentChanged = 0xc188
View Source
const EC_CANON_EOS_ObjectInfoChangedEx = 0xc187
View Source
const EC_CANON_EOS_ObjectRemoved = 0xc182
View Source
const EC_CANON_EOS_PropValueChanged = 0xc189
View Source
const EC_CANON_EOS_RecordingTime = 0xc195
View Source
const EC_CANON_EOS_RequestCancelTransfer = 0xc18f
View Source
const EC_CANON_EOS_RequestCancelTransferDT = 0xc191
View Source
const EC_CANON_EOS_RequestGetEvent = 0xc101
View Source
const EC_CANON_EOS_RequestGetObjectInfoEx = 0xc183
View Source
const EC_CANON_EOS_RequestObjectTransfer = 0xc186
View Source
const EC_CANON_EOS_RequestObjectTransferDT = 0xc190
View Source
const EC_CANON_EOS_RequestObjectTransferTS = 0xC1a2
View Source
const EC_CANON_EOS_ShutdownTimerUpdated = 0xc18e
View Source
const EC_CANON_EOS_StorageInfoChanged = 0xc185
View Source
const EC_CANON_EOS_StorageStatusChanged = 0xc184
View Source
const EC_CANON_EOS_StoreAdded = 0xc192
View Source
const EC_CANON_EOS_StoreRemoved = 0xc193
View Source
const EC_CANON_EOS_WillSoonShutdown = 0xc18d
View Source
const EC_CANON_ObjectInfoChanged = 0xC008
View Source
const EC_CANON_RequestObjectTransfer = 0xC009
View Source
const EC_CANON_ShutterButtonPressed = 0xC00E
View Source
const EC_CANON_StartDirectTransfer = 0xC011
View Source
const EC_CANON_StopDirectTransfer = 0xC013
View Source
const EC_CancelTransaction = 0x4001
View Source
const EC_CaptureComplete = 0x400D
View Source
const EC_DeviceInfoChanged = 0x4008
View Source
const EC_DevicePropChanged = 0x4006
View Source
const EC_DeviceReset = 0x400B
View Source
const EC_MTP_ObjectPropChanged = 0xC801
View Source
const EC_MTP_ObjectPropDescChanged = 0xC802
View Source
const EC_MTP_ObjectReferencesChanged = 0xC803
View Source
const EC_Nikon_AdvancedTransfer = 0xC103
View Source
const EC_Nikon_CaptureCompleteRecInSdram = 0xC102
View Source
const EC_Nikon_ObjectAddedInSDRAM = 0xC101
View Source
const EC_Nikon_PreviewImageAdded = 0xC104
View Source
const EC_ObjectAdded = 0x4002
View Source
const EC_ObjectInfoChanged = 0x4007
View Source
const EC_ObjectRemoved = 0x4003
View Source
const EC_RequestObjectTransfer = 0x4009
View Source
const EC_StorageInfoChanged = 0x400C
View Source
const EC_StoreAdded = 0x4004
View Source
const EC_StoreFull = 0x400A
View Source
const EC_StoreRemoved = 0x4005
View Source
const EC_Undefined = 0x4000

event code

View Source
const EC_UnreportedStatus = 0x400E
View Source
const ERROR_BADPARAM = 0x02FC
View Source
const ERROR_CANCEL = 0x02FB
View Source
const ERROR_DATA_EXPECTED = 0x02FE
View Source
const ERROR_IO = 0x02FF
View Source
const ERROR_RESP_EXPECTED = 0x02FD
View Source
const ERROR_TIMEOUT = 0x02FA
View Source
const FST_DCF = 0x0003
View Source
const FST_GenericFlat = 0x0001
View Source
const FST_GenericHierarchical = 0x0002
View Source
const FST_Undefined = 0x0000
View Source
const GOH_ALL_ASSOCS = 0x00000000

get object handles

View Source
const GOH_ALL_FORMATS = 0x00000000
View Source
const GOH_ALL_STORAGE = 0xffffffff
View Source
const GOH_ROOT_PARENT = 0xffffffff
View Source
const HANDLER_ROOT = 0x00000000
View Source
const HANDLER_SPECIAL = 0xffffffff
View Source
const NIKON_MaxCurvePoints = 19
View Source
const OC_ANDROID_BEGIN_EDIT_OBJECT = 0x95C4

Must be called before using SendPartialObject and TruncateObject

View Source
const OC_ANDROID_END_EDIT_OBJECT = 0x95C5

Called to commit changes made by SendPartialObject and TruncateObject

View Source
const OC_ANDROID_GET_PARTIAL_OBJECT64 = 0x95C1

Same as GetPartialObject, but with 64 bit offset

View Source
const OC_ANDROID_SEND_PARTIAL_OBJECT = 0x95C2

Same as GetPartialObject64, but copying host to device

View Source
const OC_ANDROID_TRUNCATE_OBJECT = 0x95C3

Truncates file to 64 bit length

View Source
const OC_CANON_902C = 0x902C
View Source
const OC_CANON_AskAboutPcEvf = 0x9018
View Source
const OC_CANON_ChangeUSBProtocol = 0x901F
View Source
const OC_CANON_CheckEvent = 0x9013
View Source
const OC_CANON_DeletePairingInfo = 0x9032
View Source
const OC_CANON_DoAeAfAwb = 0x900D
View Source
const OC_CANON_EOS_AfCancel = 0x9160
View Source
const OC_CANON_EOS_BulbEnd = 0x9126
View Source
const OC_CANON_EOS_BulbStart = 0x9125
View Source
const OC_CANON_EOS_CancelTransfer = 0x9118
View Source
const OC_CANON_EOS_CancelTransferDT = 0x9121
View Source
const OC_CANON_EOS_ClickWB = 0x9157
View Source
const OC_CANON_EOS_DeleteObject = 0x9105
View Source
const OC_CANON_EOS_DepthOfFieldPreview = 0x9156
View Source
const OC_CANON_EOS_DoAf = 0x9154
View Source
const OC_CANON_EOS_DriveLens = 0x9155
View Source
const OC_CANON_EOS_FAPIMessageRX = 0x91FF
View Source
const OC_CANON_EOS_FAPIMessageTX = 0x91FE
View Source
const OC_CANON_EOS_FormatStore = 0x9106
View Source
const OC_CANON_EOS_GetDeviceInfoEx = 0x9108
View Source
const OC_CANON_EOS_GetEvent = 0x9116
View Source
const OC_CANON_EOS_GetObject = 0x9104
View Source
const OC_CANON_EOS_GetObjectInfo = 0x9103
View Source
const OC_CANON_EOS_GetObjectInfoEx = 0x9109
View Source
const OC_CANON_EOS_GetObjectTime = 0x910D
View Source
const OC_CANON_EOS_GetPartialObject = 0x9107
View Source
const OC_CANON_EOS_GetRemoteMode = 0x9113
View Source
const OC_CANON_EOS_GetStorageIDs = 0x9101
View Source
const OC_CANON_EOS_GetStorageInfo = 0x9102
View Source
const OC_CANON_EOS_GetThumbEx = 0x910A
View Source
const OC_CANON_EOS_GetViewFinderData = 0x9153
View Source
const OC_CANON_EOS_GetWftProfile = 0x9122
View Source
const OC_CANON_EOS_InitiateViewfinder = 0x9151
View Source
const OC_CANON_EOS_KeepDeviceOn = 0x911D
View Source
const OC_CANON_EOS_PCHDDCapacity = 0x911A
View Source
const OC_CANON_EOS_RemoteRelease = 0x910F
View Source
const OC_CANON_EOS_RemoteReleaseOff = 0x9129
View Source
const OC_CANON_EOS_RemoteReleaseOn = 0x9128
View Source
const OC_CANON_EOS_RequestDevicePropValue = 0x9127
View Source
const OC_CANON_EOS_ResetTransfer = 0x9119
View Source
const OC_CANON_EOS_ResetUILock = 0x911C
View Source
const OC_CANON_EOS_SendPartialObject = 0x910B
View Source
const OC_CANON_EOS_SetDevicePropValueEx = 0x9110
View Source
const OC_CANON_EOS_SetEventMode = 0x9115
View Source
const OC_CANON_EOS_SetLiveAfFrame = 0x915a
View Source
const OC_CANON_EOS_SetNullPacketMode = 0x911E
View Source
const OC_CANON_EOS_SetObjectAttributes = 0x910C
View Source
const OC_CANON_EOS_SetObjectTime = 0x910E
View Source
const OC_CANON_EOS_SetProfileToWft = 0x9124
View Source
const OC_CANON_EOS_SetRemoteMode = 0x9114
View Source
const OC_CANON_EOS_SetUILock = 0x911B
View Source
const OC_CANON_EOS_SetWftProfile = 0x9122
View Source
const OC_CANON_EOS_TerminateViewfinder = 0x9152
View Source
const OC_CANON_EOS_TransferComplete = 0x9117
View Source
const OC_CANON_EOS_TransferCompleteDT = 0x9120
View Source
const OC_CANON_EOS_UpdateFirmware = 0x911F
View Source
const OC_CANON_EOS_Zoom = 0x9158
View Source
const OC_CANON_EOS_ZoomPosition = 0x9159
View Source
const OC_CANON_FocusLock = 0x9014
View Source
const OC_CANON_FocusUnlock = 0x9015
View Source
const OC_CANON_GetAncillaryObjectHandles = 0x9027
View Source
const OC_CANON_GetCaptureStatus = 0x9012
View Source
const OC_CANON_GetChanges = 0x9020
View Source
const OC_CANON_GetCustomizeData = 0x9010
View Source
const OC_CANON_GetCustomizeItemInfo = 0x900F
View Source
const OC_CANON_GetCustomizeSpec = 0x900E
View Source
const OC_CANON_GetDirectory = 0x902D
View Source
const OC_CANON_GetLocalReleaseParam = 0x9016
View Source
const OC_CANON_GetMACAddress = 0x9033
View Source
const OC_CANON_GetObjectAttributes = 0x901E
View Source
const OC_CANON_GetObjectHandleByName = 0x9006
View Source
const OC_CANON_GetObjectInfoEx = 0x9021
View Source
const OC_CANON_GetPairingInfo = 0x9031
View Source
const OC_CANON_GetPartialObjectEx = 0x901B
View Source
const OC_CANON_GetPartialObjectInfo = 0x9001
View Source
const OC_CANON_GetTreeInfo = 0x9028
View Source
const OC_CANON_GetTreeSize = 0x9029
View Source
const OC_CANON_GetViewfinderImage = 0x901D
View Source
const OC_CANON_GetWirelessMAXChannel = 0x9036
View Source
const OC_CANON_InitiateCaptureInMemory = 0x901A
View Source
const OC_CANON_InitiateDirectTansferEx = 0x9026
View Source
const OC_CANON_InitiateDirectTransfer = 0x9022
View Source
const OC_CANON_InitiateReleaseControl = 0x9008
View Source
const OC_CANON_KeepDeviceOn = 0x9003
View Source
const OC_CANON_LockDeviceUI = 0x9004
View Source
const OC_CANON_NotifyCancelAccepted = 0x902B
View Source
const OC_CANON_NotifyProgress = 0x902A
View Source
const OC_CANON_PairingComplete = 0x9035
View Source
const OC_CANON_SendObjectByPath = 0x9025
View Source
const OC_CANON_SendObjectInfoByPath = 0x9024
View Source
const OC_CANON_SendPartialObject = 0x9019
View Source
const OC_CANON_SetCustomizeData = 0x9011
View Source
const OC_CANON_SetDisplayMonitor = 0x9034
View Source
const OC_CANON_SetLocalReleaseParam = 0x9017
View Source
const OC_CANON_SetObjectArchive = 0x9002
View Source
const OC_CANON_SetObjectTime = 0x901C
View Source
const OC_CANON_SetPairingInfo = 0x9030
View Source
const OC_CANON_TerminateDirectTransfer = 0x9023
View Source
const OC_CANON_TerminatePlaybackMode = 0x900A
View Source
const OC_CANON_TerminateReleaseControl = 0x9009
View Source
const OC_CANON_UnlockDeviceUI = 0x9005
View Source
const OC_CANON_ViewfinderOff = 0x900C
View Source
const OC_CANON_ViewfinderOn = 0x900B
View Source
const OC_CASIO_CF_PRESS = 0x9009
View Source
const OC_CASIO_CF_RELEASE = 0x900A
View Source
const OC_CASIO_CS_PRESS = 0x902B
View Source
const OC_CASIO_CS_RELEASE = 0x902C
View Source
const OC_CASIO_CZ_PRESS = 0x902E
View Source
const OC_CASIO_CZ_RELEASE = 0x902F
View Source
const OC_CASIO_FOCUS = 0x9007
View Source
const OC_CASIO_GET_MOVIE_HANDLES = 0x9045
View Source
const OC_CASIO_GET_OBJECT = 0x9025
View Source
const OC_CASIO_GET_OBJECT_INFO = 0x900C
View Source
const OC_CASIO_GET_STILL_HANDLES = 0x9027
View Source
const OC_CASIO_GET_THUMBNAIL = 0x9026
View Source
const OC_CASIO_HALF_PRESS = 0x9029
View Source
const OC_CASIO_HALF_RELEASE = 0x902A
View Source
const OC_CASIO_MOVIE_PRESS = 0x9043
View Source
const OC_CASIO_MOVIE_RELEASE = 0x9044
View Source
const OC_CASIO_MOVIE_RESET = 0x9046
View Source
const OC_CASIO_MOVIE_START = 0x9041
View Source
const OC_CASIO_MOVIE_STOP = 0x9042
View Source
const OC_CASIO_SHUTTER = 0x9024
View Source
const OC_CASIO_STILL_RESET = 0x9028
View Source
const OC_CASIO_STILL_START = 0x9001
View Source
const OC_CASIO_STILL_STOP = 0x9002
View Source
const OC_CASIO_ZOOM = 0x902D
View Source
const OC_CHDK = 0x9999
View Source
const OC_CloseSession = 0x1003
View Source
const OC_CopyObject = 0x101A
View Source
const OC_DeleteObject = 0x100B
View Source
const OC_EK_GetSerial = 0x9003
View Source
const OC_EK_SendFileObject = 0x9006
View Source
const OC_EK_SendFileObjectInfo = 0x9005
View Source
const OC_EK_SetSerial = 0x9004
View Source
const OC_EK_SetText = 0x9008
View Source
const OC_EXTENSION = 0x9000
View Source
const OC_EXTENSION_MASK = 0xF000
View Source
const OC_EnumHandles = 0x101E
View Source
const OC_FormatStore = 0x100F
View Source
const OC_GetDeviceInfo = 0x1001
View Source
const OC_GetDevicePropDesc = 0x1014
View Source
const OC_GetDevicePropValue = 0x1015
View Source
const OC_GetFilesystemManifest = 0x1023
View Source
const OC_GetNumObjects = 0x1006
View Source
const OC_GetObject = 0x1009
View Source
const OC_GetObjectHandles = 0x1007
View Source
const OC_GetObjectInfo = 0x1008
View Source
const OC_GetPartialObject = 0x101B
View Source
const OC_GetResizedImageObject = 0x1022
View Source
const OC_GetStorageIDs = 0x1004
View Source
const OC_GetStorageInfo = 0x1005
View Source
const OC_GetStream = 0x1025
View Source
const OC_GetStreamInfo = 0x1024
View Source
const OC_GetThumb = 0x100A
View Source
const OC_GetVendorDeviceInfo = 0x1021
View Source
const OC_GetVendorExtensionMaps = 0x1020
View Source
const OC_InitiateCapture = 0x100E
View Source
const OC_InitiateOpenCapture = 0x101C
View Source
const OC_MTP_AAVT_CloseMediaSession = 0x9171
View Source
const OC_MTP_AAVT_GetNextDataBlock = 0x9172
View Source
const OC_MTP_AAVT_OpenMediaSession = 0x9170
View Source
const OC_MTP_AAVT_SetCurrentTimePosition = 0x9173
View Source
const OC_MTP_GetInterdependendPropdesc = 0x9807
View Source
const OC_MTP_GetObjPropList = 0x9805
View Source
const OC_MTP_GetObjectPropDesc = 0x9802
View Source
const OC_MTP_GetObjectPropValue = 0x9803
View Source
const OC_MTP_GetObjectPropsSupported = 0x9801
View Source
const OC_MTP_GetObjectReferences = 0x9810
View Source
const OC_MTP_SendObjectPropList = 0x9808
View Source
const OC_MTP_SetObjPropList = 0x9806
View Source
const OC_MTP_SetObjectPropValue = 0x9804
View Source
const OC_MTP_SetObjectReferences = 0x9811
View Source
const OC_MTP_Skip = 0x9820
View Source
const OC_MTP_UpdateDeviceFirmware = 0x9812
View Source
const OC_MTP_WMDRMND_GetProximityChallenge = 0x9182
View Source
const OC_MTP_WMDRMND_GetRegistrationResponse = 0x9181
View Source
const OC_MTP_WMDRMND_GetWMDRMNDLicenseResponse = 0x9185
View Source
const OC_MTP_WMDRMND_SendProximityResponse = 0x9183
View Source
const OC_MTP_WMDRMND_SendRegistrationRequest = 0x9180
View Source
const OC_MTP_WMDRMND_SendWMDRMNDLicenseRequest = 0x9184
View Source
const OC_MTP_WMDRMPD_CleanDataStore = 0x9108
View Source
const OC_MTP_WMDRMPD_DisableTrustedFilesOperations = 0x9215
View Source
const OC_MTP_WMDRMPD_EnableTrustedFilesOperations = 0x9214
View Source
const OC_MTP_WMDRMPD_EndTrustedAppSession = 0x9216
View Source
const OC_MTP_WMDRMPD_GetLicenseState = 0x9109
View Source
const OC_MTP_WMDRMPD_GetMeterChallenge = 0x9106
View Source
const OC_MTP_WMDRMPD_GetSecureTimeChallenge = 0x9101
View Source
const OC_MTP_WMDRMPD_GetSecureTimeResponse = 0x9102
View Source
const OC_MTP_WMDRMPD_GetSyncList = 0x9104
View Source
const OC_MTP_WMDRMPD_GetWMDRMPDAppResponse = 0x9213
View Source
const OC_MTP_WMDRMPD_SendMeterChallengeQuery = 0x9105
View Source
const OC_MTP_WMDRMPD_SendWMDRMPDAppRequest = 0x9212
View Source
const OC_MTP_WMDRMPD_SendWMDRMPDCommand = 0x910A
View Source
const OC_MTP_WMDRMPD_SendWMDRMPDRequest = 0x910B
View Source
const OC_MTP_WMDRMPD_SetLicenseResponse = 0x9103
View Source
const OC_MTP_WMDRMPD_SetMeterResponse = 0x9107
View Source
const OC_MTP_WMPPD_PlaylistObjectPref = 0x9203
View Source
const OC_MTP_WMPPD_ReportAcquiredItems = 0x9202
View Source
const OC_MTP_WMPPD_ReportAddedDeletedItems = 0x9201
View Source
const OC_MTP_WPDWCN_ProcessWFCObject = 0x9122
View Source
const OC_MTP_ZUNE_GETUNDEFINED001 = 0x9204
View Source
const OC_MoveObject = 0x1019
View Source
const OC_NIKON_AdvancedTransfer = 0x9010
View Source
const OC_NIKON_AfDriveCancel = 0x9206
View Source
const OC_NIKON_ChangeAfArea = 0x9205
View Source
const OC_NIKON_DelCstPicCtrl = 0x90CE
View Source
const OC_NIKON_DeleteProfile = 0x9008
View Source
const OC_NIKON_EndLiveView = 0x9202
View Source
const OC_NIKON_GetDevicePTPIPInfo = 0x90E0
View Source
const OC_NIKON_GetFileInfoInBlock = 0x9011
View Source
const OC_NIKON_GetLargeThumb = 0x90C4
View Source
const OC_NIKON_GetLiveViewImg = 0x9203
View Source
const OC_NIKON_GetPicCtrlCapability = 0x90CF
View Source
const OC_NIKON_GetPictCtrlData = 0x90CC
View Source
const OC_NIKON_GetPreviewImg = 0x9200
View Source
const OC_NIKON_GetProfileAllData = 0x9006
View Source
const OC_NIKON_MfDrive = 0x9204
View Source
const OC_NIKON_SendProfileData = 0x9007
View Source
const OC_NIKON_SetPictCtrlData = 0x90CD
View Source
const OC_NIKON_SetProfileData = 0x9009
View Source
const OC_NIKON_StartLiveView = 0x9201
View Source
const OC_OLYMPUS_Capture = 0x9101
View Source
const OC_OLYMPUS_GetCameraControlMode = 0x910a
View Source
const OC_OLYMPUS_GetCameraID = 0x9581
View Source
const OC_OLYMPUS_GetDateTime = 0x9482
View Source
const OC_OLYMPUS_GetDeviceInfo = 0x9301
View Source
const OC_OLYMPUS_Init1 = 0x9302
View Source
const OC_OLYMPUS_SelfCleaning = 0x9103
View Source
const OC_OLYMPUS_SetCameraControlMode = 0x910b
View Source
const OC_OLYMPUS_SetCameraID = 0x9501
View Source
const OC_OLYMPUS_SetDateTime = 0x9402
View Source
const OC_OLYMPUS_SetPresetMode = 0x9107
View Source
const OC_OLYMPUS_SetRGBGain = 0x9106
View Source
const OC_OLYMPUS_SetWBBiasAll = 0x9108
View Source
const OC_OLYMPUS_SetWBRGBGain = 0x910c
View Source
const OC_OpenSession = 0x1002
View Source
const OC_PowerDown = 0x1013
View Source
const OC_ResetDevice = 0x1010
View Source
const OC_ResetDevicePropValue = 0x1017
View Source
const OC_SelfTest = 0x1011
View Source
const OC_SendObject = 0x100D
View Source
const OC_SendObjectInfo = 0x100C
View Source
const OC_SetDevicePropValue = 0x1016
View Source
const OC_SetObjectProtection = 0x1012
View Source
const OC_StartEnumHandles = 0x101D
View Source
const OC_StopEnumHandles = 0x101F
View Source
const OC_TerminateOpenCapture = 0x1018
View Source
const OC_Undefined = 0x1000

operation code

View Source
const OFC_AIFF = 0x3007
View Source
const OFC_ASF = 0x300C
View Source
const OFC_AVI = 0x300A
View Source
const OFC_Association = 0x3001
View Source
const OFC_BMP = 0x3804
View Source
const OFC_CANON_CHDK_CRW = 0xb1ff
View Source
const OFC_CANON_CRW = 0xb101
View Source
const OFC_CANON_CRW3 = 0xb103
View Source
const OFC_CANON_MOV = 0xb104
View Source
const OFC_CIFF = 0x3805
View Source
const OFC_DNG = 0x3811
View Source
const OFC_DPOF = 0x3006
View Source
const OFC_Defined = 0x3800
View Source
const OFC_EK_M3U = 0xb002
View Source
const OFC_EXIF_JPEG = 0x3801
View Source
const OFC_Executable = 0x3003
View Source
const OFC_FlashPix = 0x3803
View Source
const OFC_GIF = 0x3807
View Source
const OFC_HTML = 0x3005
View Source
const OFC_JFIF = 0x3808
View Source
const OFC_JP2 = 0x380F
View Source
const OFC_JPX = 0x3810
View Source
const OFC_MP3 = 0x3009
View Source
const OFC_MPEG = 0x300B
View Source
const OFC_MTP_3GP = 0xb984
View Source
const OFC_MTP_AAC = 0xb903
View Source
const OFC_MTP_ASXPlaylist = 0xba13
View Source
const OFC_MTP_AbstractAudioAlbum = 0xba03
View Source
const OFC_MTP_AbstractAudioPlaylist = 0xba09
View Source
const OFC_MTP_AbstractAudioVideoPlaylist = 0xba05
View Source
const OFC_MTP_AbstractCalendarItem = 0xbe01
View Source
const OFC_MTP_AbstractChapteredProduction = 0xba08
View Source
const OFC_MTP_AbstractContact = 0xbb81
View Source
const OFC_MTP_AbstractContactGroup = 0xba06
View Source
const OFC_MTP_AbstractDocument = 0xba81
View Source
const OFC_MTP_AbstractImageAlbum = 0xba02
View Source
const OFC_MTP_AbstractMediacast = 0xba0b
View Source
const OFC_MTP_AbstractMessage = 0xbb01
View Source
const OFC_MTP_AbstractMessageFolder = 0xba07
View Source
const OFC_MTP_AbstractMultimediaAlbum = 0xba01
View Source
const OFC_MTP_AbstractVideoAlbum = 0xba04
View Source
const OFC_MTP_AbstractVideoPlaylist = 0xba0a
View Source
const OFC_MTP_AudibleCodec = 0xb904
View Source
const OFC_MTP_Encounter = 0xb213
View Source
const OFC_MTP_EncounterBox = 0xb214
View Source
const OFC_MTP_FLAC = 0xb906
View Source
const OFC_MTP_Firmware = 0xb802
View Source
const OFC_MTP_M3UPlaylist = 0xba11
View Source
const OFC_MTP_M4A = 0xb215
View Source
const OFC_MTP_MHTCompiledHTMLDocument = 0xba84
View Source
const OFC_MTP_MP2 = 0xb983
View Source
const OFC_MTP_MP4 = 0xb982
View Source
const OFC_MTP_MPLPlaylist = 0xba12
View Source
const OFC_MTP_MSExcelSpreadsheetXLS = 0xba85
View Source
const OFC_MTP_MSPowerpointPresentationPPT = 0xba86
View Source
const OFC_MTP_MSWordDocument = 0xba83
View Source
const OFC_MTP_MediaCard = 0xb211
View Source
const OFC_MTP_MediaCardGroup = 0xb212
View Source
const OFC_MTP_MediaCast = 0xbe81
View Source
const OFC_MTP_OGG = 0xb902
View Source
const OFC_MTP_PLSPlaylist = 0xba14
View Source
const OFC_MTP_SamsungPlaylist = 0xb909
View Source
const OFC_MTP_Section = 0xbe82
View Source
const OFC_MTP_UndefinedAudio = 0xb900
View Source
const OFC_MTP_UndefinedCalendarItem = 0xbe00
View Source
const OFC_MTP_UndefinedCollection = 0xba00
View Source
const OFC_MTP_UndefinedContact = 0xbb80
View Source
const OFC_MTP_UndefinedDocument = 0xba80
View Source
const OFC_MTP_UndefinedMessage = 0xbb00
View Source
const OFC_MTP_UndefinedVideo = 0xb980
View Source
const OFC_MTP_UndefinedWindowsExecutable = 0xbe80
View Source
const OFC_MTP_WMA = 0xb901
View Source
const OFC_MTP_WMV = 0xb981
View Source
const OFC_MTP_WPLPlaylist = 0xba10
View Source
const OFC_MTP_WindowsImageFormat = 0xb881
View Source
const OFC_MTP_XMLDocument = 0xba82
View Source
const OFC_MTP_vCalendar1 = 0xbe02
View Source
const OFC_MTP_vCalendar2 = 0xbe03
View Source
const OFC_MTP_vCard2 = 0xbb82
View Source
const OFC_MTP_vCard3 = 0xbb83
View Source
const OFC_PCD = 0x3809
View Source
const OFC_PICT = 0x380A
View Source
const OFC_PNG = 0x380B
View Source
const OFC_Script = 0x3002
View Source
const OFC_TIFF = 0x380D
View Source
const OFC_TIFF_EP = 0x3802
View Source
const OFC_TIFF_IT = 0x380E
View Source
const OFC_Text = 0x3004
View Source
const OFC_Undefined = 0x3000

object format code

View Source
const OFC_Undefined_0x3806 = 0x3806
View Source
const OFC_Undefined_0x380C = 0x380C
View Source
const OFC_WAV = 0x3008
View Source
const OPC_ActivityAccepted = 0xDD57
View Source
const OPC_ActivityBeginTime = 0xDD50
View Source
const OPC_ActivityEndTime = 0xDD51
View Source
const OPC_ActivityLocation = 0xDD52
View Source
const OPC_ActivityOptionalAttendees = 0xDD55
View Source
const OPC_ActivityRequiredAttendees = 0xDD54
View Source
const OPC_ActivityResources = 0xDD56
View Source
const OPC_AlbumArtist = 0xDC9B
View Source
const OPC_AlbumName = 0xDC9A
View Source
const OPC_AllowedFolderContents = 0xDC0C
View Source
const OPC_Artist = 0xDC46
View Source
const OPC_AssociationDesc = 0xDC06
View Source
const OPC_AssociationType = 0xDC05
View Source
const OPC_AudioBitDepth = 0xDE95
View Source
const OPC_AudioBitRate = 0xDE9A
View Source
const OPC_AudioWAVECodec = 0xDE99
View Source
const OPC_Birthdate = 0xDD37
View Source
const OPC_BitRateType = 0xDE92
View Source
const OPC_BodyText = 0xDCE1
View Source
const OPC_BufferSize = 0xDE9F
View Source
const OPC_BusinessWebAddress = 0xDD1B
View Source
const OPC_BuyFlag = 0xD901
View Source
const OPC_ByteBookmark = 0xDD64
View Source
const OPC_Composer = 0xDC96
View Source
const OPC_CopyrightInformation = 0xDC4B
View Source
const OPC_CorruptOrUnplayable = 0xDC50
View Source
const OPC_CreatedBy = 0xDC45
View Source
const OPC_Credits = 0xDC8D
View Source
const OPC_DRMStatus = 0xDC9D
View Source
const OPC_DateAdded = 0xDC4E
View Source
const OPC_DateAuthored = 0xDC47
View Source
const OPC_DateCreated = 0xDC08
View Source
const OPC_DateModified = 0xDC09
View Source
const OPC_Description = 0xDC48
View Source
const OPC_DisplayName = 0xDCE0
View Source
const OPC_Duration = 0xDC89
View Source
const OPC_Editor = 0xDD5E
View Source
const OPC_EffectiveRating = 0xDC97
View Source
const OPC_EmailBusiness1 = 0xDD0A
View Source
const OPC_EmailBusiness2 = 0xDD0B
View Source
const OPC_EmailOthers = 0xDD0C
View Source
const OPC_EmailPersonal1 = 0xDD08
View Source
const OPC_EmailPersonal2 = 0xDD09
View Source
const OPC_EmailPrimary = 0xDD07
View Source
const OPC_EncodingProfile = 0xDEA1
View Source
const OPC_EncodingQuality = 0xDEA0
View Source
const OPC_ExposureIndex = 0xDCD6
View Source
const OPC_ExposureTime = 0xDCD5
View Source
const OPC_FamilyName = 0xDD02
View Source
const OPC_FaxNumberBusiness = 0xDD16
View Source
const OPC_FaxNumberPersonal = 0xDD15
View Source
const OPC_FaxNumberPrimary = 0xDD14
View Source
const OPC_Fnumber = 0xDCD4
View Source
const OPC_FramesPerThousandSeconds = 0xDE9D
View Source
const OPC_Genre = 0xDC8C
View Source
const OPC_GivenName = 0xDD00
View Source
const OPC_Height = 0xDC88
View Source
const OPC_Hidden = 0xDC0D
View Source
const OPC_ImageBitDepth = 0xDCD3
View Source
const OPC_InstantMessengerAddress = 0xDD1C
View Source
const OPC_InstantMessengerAddress2 = 0xDD1D
View Source
const OPC_InstantMessengerAddress3 = 0xDD1E
View Source
const OPC_IsColorCorrected = 0xDCD2
View Source
const OPC_IsCropped = 0xDCD1
View Source
const OPC_KeyFrameDistance = 0xDE9E
View Source
const OPC_Keywords = 0xDC0A
View Source
const OPC_LanguageLocale = 0xDC4A
View Source
const OPC_LastAccessed = 0xDC93
View Source
const OPC_LastBuildDate = 0xDD70
View Source
const OPC_Lyrics = 0xDC8E
View Source
const OPC_MediaGUID = 0xDD72
View Source
const OPC_MessageBCC = 0xDD42
View Source
const OPC_MessageCC = 0xDD41
View Source
const OPC_MessageRead = 0xDD43
View Source
const OPC_MessageReceivedTime = 0xDD44
View Source
const OPC_MessageSender = 0xDD45
View Source
const OPC_MessageTo = 0xDD40
View Source
const OPC_MetaGenre = 0xDC95
View Source
const OPC_MiddleNames = 0xDD01
View Source
const OPC_Mood = 0xDC9C
View Source
const OPC_Name = 0xDC44
View Source
const OPC_NonConsumable = 0xDC4F
View Source
const OPC_NumberOfChannels = 0xDE94
View Source
const OPC_ObjectBookmark = 0xDD63
View Source
const OPC_ObjectFileName = 0xDC07
View Source
const OPC_ObjectFormat = 0xDC02
View Source
const OPC_ObjectSize = 0xDC04
View Source
const OPC_OrganizationName = 0xDD34
View Source
const OPC_OriginLocation = 0xDC4D
View Source
const OPC_OriginalReleaseDate = 0xDC99
View Source
const OPC_Owner = 0xDD5D
View Source
const OPC_PagerNumber = 0xDD17
View Source
const OPC_ParentObject = 0xDC0B
View Source
const OPC_ParentalRating = 0xDC94
View Source
const OPC_PersistantUniqueObjectIdentifier = 0xDC41
View Source
const OPC_PersonalWebAddress = 0xDD1A
View Source
const OPC_PhoneNumberBusiness = 0xDD10
View Source
const OPC_PhoneNumberBusiness2 = 0xDD11
View Source
const OPC_PhoneNumberMobile = 0xDD12
View Source
const OPC_PhoneNumberMobile2 = 0xDD13
View Source
const OPC_PhoneNumberOthers = 0xDD18
View Source
const OPC_PhoneNumberPersonal = 0xDD0E
View Source
const OPC_PhoneNumberPersonal2 = 0xDD0F
View Source
const OPC_PhoneNumberPrimary = 0xDD0D
View Source
const OPC_PhoneticFamilyName = 0xDD06
View Source
const OPC_PhoneticGivenName = 0xDD05
View Source
const OPC_PhoneticOrganizationName = 0xDD35
View Source
const OPC_PostalAddressBusinessCity = 0xDD29
View Source
const OPC_PostalAddressBusinessCountry = 0xDD2C
View Source
const OPC_PostalAddressBusinessFull = 0xDD26
View Source
const OPC_PostalAddressBusinessLine1 = 0xDD27
View Source
const OPC_PostalAddressBusinessLine2 = 0xDD28
View Source
const OPC_PostalAddressBusinessPostalCode = 0xDD2B
View Source
const OPC_PostalAddressBusinessRegion = 0xDD2A
View Source
const OPC_PostalAddressOtherCity = 0xDD30
View Source
const OPC_PostalAddressOtherCountry = 0xDD33
View Source
const OPC_PostalAddressOtherFull = 0xDD2D
View Source
const OPC_PostalAddressOtherLine1 = 0xDD2E
View Source
const OPC_PostalAddressOtherLine2 = 0xDD2F
View Source
const OPC_PostalAddressOtherPostalCode = 0xDD32
View Source
const OPC_PostalAddressOtherRegion = 0xDD31
View Source
const OPC_PostalAddressPersonalFull = 0xDD1F
View Source
const OPC_PostalAddressPersonalFullCity = 0xDD22
View Source
const OPC_PostalAddressPersonalFullCountry = 0xDD25
View Source
const OPC_PostalAddressPersonalFullLine1 = 0xDD20
View Source
const OPC_PostalAddressPersonalFullLine2 = 0xDD21
View Source
const OPC_PostalAddressPersonalFullPostalCode = 0xDD24
View Source
const OPC_PostalAddressPersonalFullRegion = 0xDD23
View Source
const OPC_Prefix = 0xDD03
View Source
const OPC_PrimaryWebAddress = 0xDD19
View Source
const OPC_Priority = 0xDCE3
View Source
const OPC_ProducedBy = 0xDC90
View Source
const OPC_ProducerSerialNumber = 0xDC51
View Source
const OPC_PropertyBag = 0xDC43
View Source
const OPC_ProtectionStatus = 0xDC03
View Source
const OPC_Rating = 0xDC8A
View Source
const OPC_RepresentativeSampleData = 0xDC86
View Source
const OPC_RepresentativeSampleDuration = 0xDC85
View Source
const OPC_RepresentativeSampleFormat = 0xDC81
View Source
const OPC_RepresentativeSampleHeight = 0xDC83
View Source
const OPC_RepresentativeSampleSize = 0xDC82
View Source
const OPC_RepresentativeSampleWidth = 0xDC84
View Source
const OPC_Role = 0xDD36
View Source
const OPC_SampleRate = 0xDE93
View Source
const OPC_ScanDepth = 0xDE97
View Source
const OPC_SkipCount = 0xDC92
View Source
const OPC_Source = 0xDC4C
View Source
const OPC_StorageID = 0xDC01
View Source
const OPC_SubDescription = 0xDC9E
View Source
const OPC_Subject = 0xDCE2
View Source
const OPC_SubscriptionContentID = 0xDC8F
View Source
const OPC_Subtitle = 0xDC98
View Source
const OPC_Suffix = 0xDD04
View Source
const OPC_SyncID = 0xDC42
View Source
const OPC_SystemObject = 0xDC0E
View Source
const OPC_TimeBookmark = 0xDD62
View Source
const OPC_TimetoLive = 0xDD71
View Source
const OPC_TotalBitRate = 0xDE91
View Source
const OPC_Track = 0xDC8B
View Source
const OPC_URLDestination = 0xDD61
View Source
const OPC_URLReference = 0xDC49
View Source
const OPC_URLSource = 0xDD60
View Source
const OPC_UseCount = 0xDC91
View Source
const OPC_VideoBitRate = 0xDE9C
View Source
const OPC_VideoFourCCCodec = 0xDE9B
View Source
const OPC_Webmaster = 0xDD5F
View Source
const OPC_Width = 0xDC87
View Source
const OPC_WirelessConfigurationFile = 0xB104

object property code

View Source
const OPFF_ByteArray = 0x06
View Source
const OPFF_DateTime = 0x03
View Source
const OPFF_Enumeration = 0x02
View Source
const OPFF_FixedLengthArray = 0x04
View Source
const OPFF_LongString = 0xFF
View Source
const OPFF_None = 0x00
View Source
const OPFF_Range = 0x01
View Source
const OPFF_RegularExpression = 0x05
View Source
const PS_MTP_NonTransferableData = 0x8003
View Source
const PS_MTP_ReadOnlyData = 0x8002
View Source
const PS_NoProtection = 0x0000
View Source
const PS_ReadOnly = 0x0001
View Source
const RC_AccessDenied = 0x200F
View Source
const RC_CANON_A009 = 0xA009
View Source
const RC_CANON_BATTERY_LOW = 0xA101
View Source
const RC_CANON_LENS_COVER = 0xA006
View Source
const RC_CANON_NOT_READY = 0xA102
View Source
const RC_CANON_OPERATION_REFUSED = 0xA005
View Source
const RC_CANON_UNKNOWN_COMMAND = 0xA001
View Source
const RC_CaptureAlreadyTerminated = 0x2018
View Source
const RC_DeviceBusy = 0x2019
View Source
const RC_DevicePropNotSupported = 0x200A
View Source
const RC_EK_FilenameConflicts = 0xA002
View Source
const RC_EK_FilenameInvalid = 0xA003
View Source
const RC_EK_FilenameRequired = 0xA001
View Source
const RC_GeneralError = 0x2002
View Source
const RC_IncompleteTransfer = 0x2007
View Source
const RC_InvalidCodeFormat = 0x2016
View Source
const RC_InvalidDataSet = 0x2023
View Source
const RC_InvalidDevicePropFormat = 0x201B
View Source
const RC_InvalidDevicePropValue = 0x201C
View Source
const RC_InvalidEnumHandle = 0x2021
View Source
const RC_InvalidObjectFormatCode = 0x200B
View Source
const RC_InvalidObjectHandle = 0x2009
View Source
const RC_InvalidParameter = 0x201D
View Source
const RC_InvalidParentObject = 0x201A
View Source
const RC_InvalidStorageId = 0x2008
View Source
const RC_InvalidTransactionID = 0x2004
View Source
const RC_MTP_Invalid_Dataset = 0xA806
View Source
const RC_MTP_Invalid_ObjectPropCode = 0xA801
View Source
const RC_MTP_Invalid_ObjectProp_Format = 0xA802
View Source
const RC_MTP_Invalid_ObjectProp_Value = 0xA803
View Source
const RC_MTP_Invalid_ObjectReference = 0xA804
View Source
const RC_MTP_Invalid_WFC_Syntax = 0xA121
View Source
const RC_MTP_Media_Session_Limit_Reached = 0xA171
View Source
const RC_MTP_No_More_Data = 0xA172
View Source
const RC_MTP_ObjectProp_Not_Supported = 0xA80A
View Source
const RC_MTP_Object_Too_Large = 0xA809
View Source
const RC_MTP_Specification_By_Depth_Unsupported = 0xA808
View Source
const RC_MTP_Specification_By_Group_Unsupported = 0xA807
View Source
const RC_MTP_Undefined = 0xA800
View Source
const RC_MTP_WFC_Version_Not_Supported = 0xA122
View Source
const RC_NIKON_AdvancedTransferCancel = 0xA022
View Source
const RC_NIKON_CameraModeNotAdjustFNumber = 0xA00A
View Source
const RC_NIKON_ChangeCameraModeFailed = 0xA003
View Source
const RC_NIKON_DustReferenceError = 0xA007
View Source
const RC_NIKON_HardwareError = 0xA001
View Source
const RC_NIKON_InvalidStatus = 0xA004
View Source
const RC_NIKON_MfDriveStepEnd = 0xA00C
View Source
const RC_NIKON_MfDriveStepInsufficiency = 0xA00E
View Source
const RC_NIKON_MirrorUpSequence = 0xA009
View Source
const RC_NIKON_NotLiveView = 0xA00B
View Source
const RC_NIKON_OutOfFocus = 0xA002
View Source
const RC_NIKON_SetPropertyNotSupported = 0xA005
View Source
const RC_NIKON_ShutterSpeedBulb = 0xA008
View Source
const RC_NIKON_WbResetError = 0xA006
View Source
const RC_NoStreamEnabled = 0x2022
View Source
const RC_NoThumbnailPresent = 0x2010
View Source
const RC_NoValidObjectInfo = 0x2015
View Source
const RC_OK = 0x2001
View Source
const RC_ObjectWriteProtected = 0x200D
View Source
const RC_OperationNotSupported = 0x2005
View Source
const RC_ParameterNotSupported = 0x2006
View Source
const RC_PartialDeletion = 0x2012
View Source
const RC_SelfTestFailed = 0x2011
View Source
const RC_SessionAlreadyOpened = 0x201E
View Source
const RC_SessionNotOpen = 0x2003
View Source
const RC_SpecificationByFormatUnsupported = 0x2014
View Source
const RC_SpecificationOfDestinationUnsupported = 0x2020
View Source
const RC_StoreFull = 0x200C
View Source
const RC_StoreNotAvailable = 0x2013
View Source
const RC_StoreReadOnly = 0x200E
View Source
const RC_TransactionCanceled = 0x201F
View Source
const RC_Undefined = 0x2000

return code

View Source
const RC_UnknownVendorCode = 0x2017
View Source
const ST_FixedRAM = 0x0003
View Source
const ST_FixedROM = 0x0001
View Source
const ST_RemovableRAM = 0x0004
View Source
const ST_RemovableROM = 0x0002
View Source
const ST_Undefined = 0x0000

storage

View Source
const USB_BULK_HS_MAX_PACKET_LEN_READ = 512
View Source
const USB_BULK_HS_MAX_PACKET_LEN_WRITE = 512
View Source
const USB_CONTAINER_COMMAND = 0x0001
View Source
const USB_CONTAINER_DATA = 0x0002
View Source
const USB_CONTAINER_EVENT = 0x0004
View Source
const USB_CONTAINER_RESPONSE = 0x0003
View Source
const USB_CONTAINER_UNDEFINED = 0x0000
View Source
const VENDOR_AGFA_GEVAERT = 0x00000005
View Source
const VENDOR_AGILENT = 0x00000003
View Source
const VENDOR_CANON = 0x0000000B
View Source
const VENDOR_EASTMAN_KODAK = 0x00000001
View Source
const VENDOR_EQUINOX = 0x00000007
View Source
const VENDOR_FOTONATION = 0x0000000C
View Source
const VENDOR_FUJI = 0x0000000E
View Source
const VENDOR_MICROSOFT = 0x00000006
View Source
const VENDOR_NIKON = 0x0000000A
View Source
const VENDOR_PENTAX = 0x0000000D
View Source
const VENDOR_POLAROID = 0x00000004
View Source
const VENDOR_SEIKO_EPSON = 0x00000002
View Source
const VENDOR_STMICROELECTRONICS = 0x00000009
View Source
const VENDOR_VIEWQUEST = 0x00000008

Variables

View Source
var AC_names = map[int]string{0x0000: "ReadWrite",
	0x0001: "ReadOnly",
	0x0002: "ReadOnly_with_Object_Deletion",
}
View Source
var AT_names = map[int]string{0x0000: "Undefined",
	0x0001: "GenericFolder",
	0x0002: "Album",
	0x0003: "TimeSequence",
	0x0004: "HorizontalPanoramic",
	0x0005: "VerticalPanoramic",
	0x0006: "2DPanoramic",
	0x0007: "AncillaryData",
}
View Source
var DL_names = map[int]string{0x0F: "LE",
	0xF0: "BE",
}
View Source
var DPC_names = map[int]string{0x5000: "Undefined",
	0x5001: "BatteryLevel",
	0x5002: "FunctionalMode",
	0x5003: "ImageSize",
	0x5004: "CompressionSetting",
	0x5005: "WhiteBalance",
	0x5006: "RGBGain",
	0x5007: "FNumber",
	0x5008: "FocalLength",
	0x5009: "FocusDistance",
	0x500A: "FocusMode",
	0x500B: "ExposureMeteringMode",
	0x500C: "FlashMode",
	0x500D: "ExposureTime",
	0x500E: "ExposureProgramMode",
	0x500F: "ExposureIndex",
	0x5010: "ExposureBiasCompensation",
	0x5011: "DateTime",
	0x5012: "CaptureDelay",
	0x5013: "StillCaptureMode",
	0x5014: "Contrast",
	0x5015: "Sharpness",
	0x5016: "DigitalZoom",
	0x5017: "EffectMode",
	0x5018: "BurstNumber",
	0x5019: "BurstInterval",
	0x501A: "TimelapseNumber",
	0x501B: "TimelapseInterval",
	0x501C: "FocusMeteringMode",
	0x501D: "UploadURL",
	0x501E: "Artist",
	0x501F: "CopyrightInfo",
	0x5020: "SupportedStreams",
	0x5021: "EnabledStreams",
	0x5022: "VideoFormat",
	0x5023: "VideoResolution",
	0x5024: "VideoQuality",
	0x5025: "VideoFrameRate",
	0x5026: "VideoContrast",
	0x5027: "VideoBrightness",
	0x5028: "AudioFormat",
	0x5029: "AudioBitrate",
	0x502A: "AudioSamplingRate",
	0x502B: "AudioBitPerSample",
	0x502C: "AudioVolume",
	0xD000: "EXTENSION",
	0xD080: "CASIO_UNKNOWN_18",
	0xD118: "OLYMPUS_FLBracketingFrame",
	0xD127: "OLYMPUS_NoiseReductionRandom",
	0xD129: "OLYMPUS_ShadingMode",
	0xD12A: "OLYMPUS_ISOBoostMode",
	0xD12B: "OLYMPUS_ExposureIndexBiasStep",
	0xD12C: "OLYMPUS_FilterEffect",
	0xD12D: "OLYMPUS_ColorTune",
	0xD12E: "OLYMPUS_Language",
	0xD12F: "OLYMPUS_LanguageCode",
	0xD135: "OLYMPUS_AELAFLMode",
	0xD136: "OLYMPUS_AELButtonStatus",
	0xD137: "OLYMPUS_CompressionSettingEx",
	0xD139: "OLYMPUS_ToneMode",
	0xD13A: "OLYMPUS_GradationMode",
	0xD13B: "OLYMPUS_DevelopMode",
	0xD13C: "OLYMPUS_ExtendInnerFlashMode",
	0xD13D: "OLYMPUS_OutputDeviceMode",
	0xD13E: "OLYMPUS_LiveViewMode",
	0xD147: "OLYMPUS_FlashRCPhotoChromicMode",
	0xD14A: "OLYMPUS_FlashRCQuantityLightLevel",
	0xD14B: "OLYMPUS_FocusMeteringValue",
	0xD14C: "OLYMPUS_ISOBracketingFrame",
	0xD14D: "OLYMPUS_ISOBracketingStep",
	0xD157: "OLYMPUS_AFTargetSize",
	0xD158: "OLYMPUS_LightSensorMode",
	0xD159: "OLYMPUS_AEBracket",
	0xD15A: "OLYMPUS_WBRBBracket",
	0xD15B: "OLYMPUS_WBGMBracket",
	0xD15C: "OLYMPUS_FlashBracket",
	0xD15D: "OLYMPUS_ISOBracket",
	0xD15E: "OLYMPUS_MyModeStatus",
	0xD215: "MTP_ZUNE_UNKNOWN3",
	0xD216: "MTP_ZUNE_UNKNOWN4",
	0xD401: "MTP_SynchronizationPartner",
	0xD402: "MTP_DeviceFriendlyName",
	0xD403: "MTP_VolumeLevel",
	0xD405: "MTP_DeviceIcon",
	0xD406: "MTP_SessionInitiatorInfo",
	0xD407: "MTP_PerceivedDeviceType",
	0xD410: "MTP_PlaybackRate",
	0xD411: "MTP_PlaybackObject",
	0xD412: "MTP_PlaybackContainerIndex",
	0xD413: "MTP_PlaybackPosition",
	0xF000: "EXTENSION_MASK",
}
View Source
var DPFF_names = map[int]string{0x00: "None",
	0x01: "Range",
	0x02: "Enumeration",
}
View Source
var DPGS_names = map[int]string{0x00: "Get",
	0x01: "GetSet",
}
View Source
var DTC_names = map[int]string{0x0000: "UNDEF",
	0x0001: "INT8",
	0x0002: "UINT8",
	0x0003: "INT16",
	0x0004: "UINT16",
	0x0005: "INT32",
	0x0006: "UINT32",
	0x0007: "INT64",
	0x0008: "UINT64",
	0x0009: "INT128",
	0x000A: "UINT128",
	0x4000: "ARRAY_MASK",
	0xFFFF: "STR",
}
View Source
var EC_names = map[int]string{0x4000: "Undefined",
	0x4001: "CancelTransaction",
	0x4002: "ObjectAdded",
	0x4003: "ObjectRemoved",
	0x4004: "StoreAdded",
	0x4005: "StoreRemoved",
	0x4006: "DevicePropChanged",
	0x4007: "ObjectInfoChanged",
	0x4008: "DeviceInfoChanged",
	0x4009: "RequestObjectTransfer",
	0x400A: "StoreFull",
	0x400B: "DeviceReset",
	0x400C: "StorageInfoChanged",
	0x400D: "CaptureComplete",
	0x400E: "UnreportedStatus",
	0xC101: "Nikon_ObjectAddedInSDRAM",
	0xC102: "Nikon_CaptureCompleteRecInSdram",
	0xC103: "Nikon_AdvancedTransfer",
	0xC104: "Nikon_PreviewImageAdded",
	0xC801: "MTP_ObjectPropChanged",
	0xC802: "MTP_ObjectPropDescChanged",
	0xC803: "MTP_ObjectReferencesChanged",
}
View Source
var ERROR_names = map[int]string{0x02FA: "TIMEOUT",
	0x02FB: "CANCEL",
	0x02FC: "BADPARAM",
	0x02FD: "RESP_EXPECTED",
	0x02FE: "DATA_EXPECTED",
	0x02FF: "IO",
}
View Source
var FST_names = map[int]string{0x0000: "Undefined",
	0x0001: "GenericFlat",
	0x0002: "GenericHierarchical",
	0x0003: "DCF",
}
View Source
var GOH_names = map[int64]string{0x00000000: "ALL_ASSOCS",
	0xffffffff: "ALL_STORAGE",
}
View Source
var HANDLER_names = map[int64]string{0x00000000: "ROOT",
	0xffffffff: "SPECIAL",
}
View Source
var NIKON_names = map[int]string{19: "MaxCurvePoints"}
View Source
var OC_names = map[int]string{0x1000: "Undefined",
	0x1001: "GetDeviceInfo",
	0x1002: "OpenSession",
	0x1003: "CloseSession",
	0x1004: "GetStorageIDs",
	0x1005: "GetStorageInfo",
	0x1006: "GetNumObjects",
	0x1007: "GetObjectHandles",
	0x1008: "GetObjectInfo",
	0x1009: "GetObject",
	0x100A: "GetThumb",
	0x100B: "DeleteObject",
	0x100C: "SendObjectInfo",
	0x100D: "SendObject",
	0x100E: "InitiateCapture",
	0x100F: "FormatStore",
	0x1010: "ResetDevice",
	0x1011: "SelfTest",
	0x1012: "SetObjectProtection",
	0x1013: "PowerDown",
	0x1014: "GetDevicePropDesc",
	0x1015: "GetDevicePropValue",
	0x1016: "SetDevicePropValue",
	0x1017: "ResetDevicePropValue",
	0x1018: "TerminateOpenCapture",
	0x1019: "MoveObject",
	0x101A: "CopyObject",
	0x101B: "GetPartialObject",
	0x101C: "InitiateOpenCapture",
	0x101D: "StartEnumHandles",
	0x101E: "EnumHandles",
	0x101F: "StopEnumHandles",
	0x1020: "GetVendorExtensionMaps",
	0x1021: "GetVendorDeviceInfo",
	0x1022: "GetResizedImageObject",
	0x1023: "GetFilesystemManifest",
	0x1024: "GetStreamInfo",
	0x1025: "GetStream",
	0x9000: "EXTENSION",
	0x9007: "CASIO_FOCUS",
	0x902E: "CASIO_CZ_PRESS",
	0x902F: "CASIO_CZ_RELEASE",
	0x9041: "CASIO_MOVIE_START",
	0x9042: "CASIO_MOVIE_STOP",
	0x9043: "CASIO_MOVIE_PRESS",
	0x9044: "CASIO_MOVIE_RELEASE",
	0x9045: "CASIO_GET_MOVIE_HANDLES",
	0x9046: "CASIO_MOVIE_RESET",
	0x9170: "MTP_AAVT_OpenMediaSession",
	0x9171: "MTP_AAVT_CloseMediaSession",
	0x9172: "MTP_AAVT_GetNextDataBlock",
	0x9173: "MTP_AAVT_SetCurrentTimePosition",
	0x9180: "MTP_WMDRMND_SendRegistrationRequest",
	0x9181: "MTP_WMDRMND_GetRegistrationResponse",
	0x9182: "MTP_WMDRMND_GetProximityChallenge",
	0x9183: "MTP_WMDRMND_SendProximityResponse",
	0x9184: "MTP_WMDRMND_SendWMDRMNDLicenseRequest",
	0x9185: "MTP_WMDRMND_GetWMDRMNDLicenseResponse",
	0x9201: "MTP_WMPPD_ReportAddedDeletedItems",
	0x9202: "MTP_WMPPD_ReportAcquiredItems",
	0x9203: "MTP_WMPPD_PlaylistObjectPref",
	0x9204: "MTP_ZUNE_GETUNDEFINED001",
	0x9212: "MTP_WMDRMPD_SendWMDRMPDAppRequest",
	0x9213: "MTP_WMDRMPD_GetWMDRMPDAppResponse",
	0x9214: "MTP_WMDRMPD_EnableTrustedFilesOperations",
	0x9215: "MTP_WMDRMPD_DisableTrustedFilesOperations",
	0x9216: "MTP_WMDRMPD_EndTrustedAppSession",
	0x9301: "OLYMPUS_GetDeviceInfo",
	0x9302: "OLYMPUS_Init1",
	0x9402: "OLYMPUS_SetDateTime",
	0x9482: "OLYMPUS_GetDateTime",
	0x9501: "OLYMPUS_SetCameraID",
	0x9581: "OLYMPUS_GetCameraID",
	0x9801: "MTP_GetObjectPropsSupported",
	0x9802: "MTP_GetObjectPropDesc",
	0x9803: "MTP_GetObjectPropValue",
	0x9804: "MTP_SetObjectPropValue",
	0x9805: "MTP_GetObjPropList",
	0x9806: "MTP_SetObjPropList",
	0x9807: "MTP_GetInterdependendPropdesc",
	0x9808: "MTP_SendObjectPropList",
	0x9810: "MTP_GetObjectReferences",
	0x9811: "MTP_SetObjectReferences",
	0x9812: "MTP_UpdateDeviceFirmware",
	0x9820: "MTP_Skip",
	0x9999: "CHDK",
	0xF000: "EXTENSION_MASK",
}
View Source
var OFC_names = map[int]string{0x3000: "Undefined",
	0x3001: "Association",
	0x3002: "Script",
	0x3003: "Executable",
	0x3004: "Text",
	0x3005: "HTML",
	0x3006: "DPOF",
	0x3007: "AIFF",
	0x3008: "WAV",
	0x3009: "MP3",
	0x300A: "AVI",
	0x300B: "MPEG",
	0x300C: "ASF",
	0x3800: "Defined",
	0x3801: "EXIF_JPEG",
	0x3802: "TIFF_EP",
	0x3803: "FlashPix",
	0x3804: "BMP",
	0x3805: "CIFF",
	0x3806: "Undefined_0x3806",
	0x3807: "GIF",
	0x3808: "JFIF",
	0x3809: "PCD",
	0x380A: "PICT",
	0x380B: "PNG",
	0x380C: "Undefined_0x380C",
	0x380D: "TIFF",
	0x380E: "TIFF_IT",
	0x380F: "JP2",
	0x3810: "JPX",
	0x3811: "DNG",
	0xb211: "MTP_MediaCard",
	0xb212: "MTP_MediaCardGroup",
	0xb213: "MTP_Encounter",
	0xb214: "MTP_EncounterBox",
	0xb215: "MTP_M4A",
	0xb802: "MTP_Firmware",
	0xb881: "MTP_WindowsImageFormat",
	0xb900: "MTP_UndefinedAudio",
	0xb901: "MTP_WMA",
	0xb902: "MTP_OGG",
	0xb903: "MTP_AAC",
	0xb904: "MTP_AudibleCodec",
	0xb906: "MTP_FLAC",
	0xb909: "MTP_SamsungPlaylist",
	0xb980: "MTP_UndefinedVideo",
	0xb981: "MTP_WMV",
	0xb982: "MTP_MP4",
	0xb983: "MTP_MP2",
	0xb984: "MTP_3GP",
	0xba00: "MTP_UndefinedCollection",
	0xba01: "MTP_AbstractMultimediaAlbum",
	0xba02: "MTP_AbstractImageAlbum",
	0xba03: "MTP_AbstractAudioAlbum",
	0xba04: "MTP_AbstractVideoAlbum",
	0xba05: "MTP_AbstractAudioVideoPlaylist",
	0xba06: "MTP_AbstractContactGroup",
	0xba07: "MTP_AbstractMessageFolder",
	0xba08: "MTP_AbstractChapteredProduction",
	0xba09: "MTP_AbstractAudioPlaylist",
	0xba0a: "MTP_AbstractVideoPlaylist",
	0xba0b: "MTP_AbstractMediacast",
	0xba10: "MTP_WPLPlaylist",
	0xba11: "MTP_M3UPlaylist",
	0xba12: "MTP_MPLPlaylist",
	0xba13: "MTP_ASXPlaylist",
	0xba14: "MTP_PLSPlaylist",
	0xba80: "MTP_UndefinedDocument",
	0xba81: "MTP_AbstractDocument",
	0xba82: "MTP_XMLDocument",
	0xba83: "MTP_MSWordDocument",
	0xba84: "MTP_MHTCompiledHTMLDocument",
	0xba85: "MTP_MSExcelSpreadsheetXLS",
	0xba86: "MTP_MSPowerpointPresentationPPT",
	0xbb00: "MTP_UndefinedMessage",
	0xbb01: "MTP_AbstractMessage",
	0xbb80: "MTP_UndefinedContact",
	0xbb81: "MTP_AbstractContact",
	0xbb82: "MTP_vCard2",
	0xbb83: "MTP_vCard3",
	0xbe00: "MTP_UndefinedCalendarItem",
	0xbe01: "MTP_AbstractCalendarItem",
	0xbe02: "MTP_vCalendar1",
	0xbe03: "MTP_vCalendar2",
	0xbe80: "MTP_UndefinedWindowsExecutable",
	0xbe81: "MTP_MediaCast",
	0xbe82: "MTP_Section",
}
View Source
var OPC_names = map[int]string{}/* 168 elements not displayed */
View Source
var OPFF_names = map[int]string{0x00: "None",
	0x01: "Range",
	0x02: "Enumeration",
	0x03: "DateTime",
	0x04: "FixedLengthArray",
	0x05: "RegularExpression",
	0x06: "ByteArray",
	0xFF: "LongString",
}
View Source
var PS_names = map[int]string{0x0000: "NoProtection",
	0x0001: "ReadOnly",
	0x8002: "MTP_ReadOnlyData",
	0x8003: "MTP_NonTransferableData",
}
View Source
var RC_names = map[int]string{0x2000: "Undefined",
	0x2001: "OK",
	0x2002: "GeneralError",
	0x2003: "SessionNotOpen",
	0x2004: "InvalidTransactionID",
	0x2005: "OperationNotSupported",
	0x2006: "ParameterNotSupported",
	0x2007: "IncompleteTransfer",
	0x2008: "InvalidStorageId",
	0x2009: "InvalidObjectHandle",
	0x200A: "DevicePropNotSupported",
	0x200B: "InvalidObjectFormatCode",
	0x200C: "StoreFull",
	0x200D: "ObjectWriteProtected",
	0x200E: "StoreReadOnly",
	0x200F: "AccessDenied",
	0x2010: "NoThumbnailPresent",
	0x2011: "SelfTestFailed",
	0x2012: "PartialDeletion",
	0x2013: "StoreNotAvailable",
	0x2014: "SpecificationByFormatUnsupported",
	0x2015: "NoValidObjectInfo",
	0x2016: "InvalidCodeFormat",
	0x2017: "UnknownVendorCode",
	0x2018: "CaptureAlreadyTerminated",
	0x2019: "DeviceBusy",
	0x201A: "InvalidParentObject",
	0x201B: "InvalidDevicePropFormat",
	0x201C: "InvalidDevicePropValue",
	0x201D: "InvalidParameter",
	0x201E: "SessionAlreadyOpened",
	0x201F: "TransactionCanceled",
	0x2020: "SpecificationOfDestinationUnsupported",
	0x2021: "InvalidEnumHandle",
	0x2022: "NoStreamEnabled",
	0x2023: "InvalidDataSet",
	0xA121: "MTP_Invalid_WFC_Syntax",
	0xA122: "MTP_WFC_Version_Not_Supported",
	0xA171: "MTP_Media_Session_Limit_Reached",
	0xA172: "MTP_No_More_Data",
	0xA800: "MTP_Undefined",
	0xA801: "MTP_Invalid_ObjectPropCode",
	0xA802: "MTP_Invalid_ObjectProp_Format",
	0xA803: "MTP_Invalid_ObjectProp_Value",
	0xA804: "MTP_Invalid_ObjectReference",
	0xA806: "MTP_Invalid_Dataset",
	0xA807: "MTP_Specification_By_Group_Unsupported",
	0xA808: "MTP_Specification_By_Depth_Unsupported",
	0xA809: "MTP_Object_Too_Large",
	0xA80A: "MTP_ObjectProp_Not_Supported",
}
View Source
var ST_names = map[int]string{0x0000: "Undefined",
	0x0001: "FixedROM",
	0x0002: "RemovableROM",
	0x0003: "FixedRAM",
	0x0004: "RemovableRAM",
}
View Source
var USB_names = map[int]string{0x0000: "CONTAINER_UNDEFINED",
	0x0001: "CONTAINER_COMMAND",
	0x0002: "CONTAINER_DATA",
	0x0003: "CONTAINER_RESPONSE",
	0x0004: "CONTAINER_EVENT",
	512:    "BULK_HS_MAX_PACKET_LEN_READ",
}
View Source
var VENDOR_names = map[int]string{0x00000001: "EASTMAN_KODAK",
	0x00000002: "SEIKO_EPSON",
	0x00000003: "AGILENT",
	0x00000004: "POLAROID",
	0x00000005: "AGFA_GEVAERT",
	0x00000006: "MICROSOFT",
	0x00000007: "EQUINOX",
	0x00000008: "VIEWQUEST",
	0x00000009: "STMICROELECTRONICS",
	0x0000000A: "NIKON",
	0x0000000B: "CANON",
	0x0000000C: "FOTONATION",
	0x0000000D: "PENTAX",
	0x0000000E: "FUJI",
}

Functions

func Decode

func Decode(r io.Reader, iface interface{}) error

Decode MTP data stream into data structure.

func Encode

func Encode(w io.Writer, iface interface{}) error

Encode MTP data stream into data structure.

func InstantiateType

func InstantiateType(t DataTypeSelector) reflect.Value

Instantiates an object of wanted type as addressable value.

Types

type Container

type Container struct {
	Code          uint16
	SessionID     uint32
	TransactionID uint32
	Param         []uint32
}

Container is the data type for sending/receiving MTP requests and responses.

type DataDependentType

type DataDependentType interface{}

type DataTypeSelector

type DataTypeSelector uint16

DataTypeSelector is the special type to indicate the actual type of fields of DataDependentType.

type Decoder

type Decoder interface {
	Decode(r io.Reader) error
}

The Decoder interface is for types that need special decoding support, eg. the ones using DataDependentType.

type Device

type Device struct {

	// In milliseconds. Defaults to 2 seconds.
	Timeout int

	// Print request/response codes.
	MTPDebug bool

	// Print USB calls.
	USBDebug bool

	// Print data as it passes over the USB connection.
	DataDebug bool

	// If set, send header in separate write.
	SeparateHeader bool
	// contains filtered or unexported fields
}

An MTP device.

func FindDevices

func FindDevices(c *usb.Context) ([]*Device, error)

FindDevices finds likely MTP devices without opening them.

func SelectDevice

func SelectDevice(pattern string) (*Device, error)

Return opened MTP device that matches given pattern.

func (*Device) AndroidBeginEditObject

func (d *Device) AndroidBeginEditObject(handle uint32) error

func (*Device) AndroidEndEditObject

func (d *Device) AndroidEndEditObject(handle uint32) error

func (*Device) AndroidGetPartialObject64

func (d *Device) AndroidGetPartialObject64(handle uint32, w io.Writer, offset int64, size uint32) error

func (*Device) AndroidSendPartialObject

func (d *Device) AndroidSendPartialObject(handle uint32, offset int64, size uint32, r io.Reader) error

func (*Device) AndroidTruncate

func (d *Device) AndroidTruncate(handle uint32, offset int64) error

func (*Device) Close

func (d *Device) Close() error

Close releases the interface, and closes the device.

func (*Device) CloseSession

func (d *Device) CloseSession() error

Closes a sessions. This is done automatically if the device is closed.

func (*Device) Configure

func (d *Device) Configure() error

Configure is a robust version of OpenSession. On failure, it resets the device and reopens the device and the session.

func (*Device) DeleteObject

func (d *Device) DeleteObject(handle uint32) error

func (*Device) Done

func (d *Device) Done()

Done releases the libusb device reference.

func (*Device) GetData

func (d *Device) GetData(req *Container, info interface{}) error

func (*Device) GetDeviceInfo

func (d *Device) GetDeviceInfo(info *DeviceInfo) error

func (*Device) GetDevicePropDesc

func (d *Device) GetDevicePropDesc(propCode uint16, info *DevicePropDesc) error

func (*Device) GetDevicePropValue

func (d *Device) GetDevicePropValue(propCode uint32, dest interface{}) error

func (*Device) GetNumObjects

func (d *Device) GetNumObjects(storageId uint32, formatCode uint16, parent uint32) (uint32, error)

func (*Device) GetObject

func (d *Device) GetObject(handle uint32, w io.Writer) error

func (*Device) GetObjectHandles

func (d *Device) GetObjectHandles(storageID, objFormatCode, parent uint32, info *Uint32Array) error

func (*Device) GetObjectInfo

func (d *Device) GetObjectInfo(handle uint32, info *ObjectInfo) error

func (*Device) GetObjectPropDesc

func (d *Device) GetObjectPropDesc(objPropCode, objFormatCode uint16, info *ObjectPropDesc) error

func (*Device) GetObjectPropValue

func (d *Device) GetObjectPropValue(objHandle uint32, objPropCode uint16, value interface{}) error

func (*Device) GetObjectPropsSupported

func (d *Device) GetObjectPropsSupported(objFormatCode uint16, props *Uint16Array) error

func (*Device) GetPartialObject

func (d *Device) GetPartialObject(handle uint32, w io.Writer, offset uint32, size uint32) error

func (*Device) GetStorageIDs

func (d *Device) GetStorageIDs(info *Uint32Array) error

func (*Device) GetStorageInfo

func (d *Device) GetStorageInfo(ID uint32, info *StorageInfo) error

func (*Device) ID

func (d *Device) ID() (string, error)

ID is the manufacturer + product + serial

func (*Device) Open

func (d *Device) Open() error

Open opens an MTP device.

func (*Device) OpenSession

func (d *Device) OpenSession() error

OpenSession opens a session, which is necesary for any command that queries or modifies storage. It is an error to open a session twice. If OpenSession() fails, it will not attempt to close the device.

func (*Device) ResetDevicePropValue

func (d *Device) ResetDevicePropValue(propCode uint32) error

func (*Device) RunTransaction

func (d *Device) RunTransaction(req *Container, rep *Container,
	dest io.Writer, src io.Reader, writeSize int64) error

Runs a single MTP transaction. dest and src cannot be specified at the same time. The request should fill out Code and Param as necessary. The response is provided here, but usually only the return code is of interest. If the return code is an error, this function will return an RCError instance.

Errors that are likely to affect future transactions lead to closing the connection. Such errors include: invalid transaction IDs, USB errors (BUSY, IO, ACCESS etc.), and receiving data for operations that expect no data.

func (*Device) SendData

func (d *Device) SendData(req *Container, rep *Container, value interface{}) error

func (*Device) SendObject

func (d *Device) SendObject(r io.Reader, size int64) error

func (*Device) SendObjectInfo

func (d *Device) SendObjectInfo(wantStorageID, wantParent uint32, info *ObjectInfo) (storageID, parent, handle uint32, err error)

func (*Device) SetDevicePropValue

func (d *Device) SetDevicePropValue(propCode uint32, src interface{}) error

func (*Device) SetObjectPropValue

func (d *Device) SetObjectPropValue(objHandle uint32, objPropCode uint16, value interface{}) error

type DeviceInfo

type DeviceInfo struct {
	StandardVersion           uint16
	MTPVendorExtensionID      uint32
	MTPVersion                uint16
	MTPExtension              string
	FunctionalMode            uint16
	OperationsSupported       []uint16
	EventsSupported           []uint16
	DevicePropertiesSupported []uint16
	CaptureFormats            []uint16
	PlaybackFormats           []uint16
	Manufacturer              string
	Model                     string
	DeviceVersion             string
	SerialNumber              string
}

func (*DeviceInfo) String

func (i *DeviceInfo) String() string

type DevicePropDesc

type DevicePropDesc struct {
	DevicePropDescFixed
	Form interface{}
}

func (*DevicePropDesc) Decode

func (pd *DevicePropDesc) Decode(r io.Reader) (err error)

func (*DevicePropDesc) Encode

func (pd *DevicePropDesc) Encode(w io.Writer) (err error)

type DevicePropDescFixed

type DevicePropDescFixed struct {
	DevicePropertyCode  uint16
	DataType            DataTypeSelector
	GetSet              uint8
	FactoryDefaultValue DataDependentType
	CurrentValue        DataDependentType
	FormFlag            uint8
}

type Encoder

type Encoder interface {
	Encode(w io.Writer) error
}

type NullReader

type NullReader struct{}

func (*NullReader) Read

func (nr *NullReader) Read(dest []byte) (n int, err error)

type NullWriter

type NullWriter struct{}

func (*NullWriter) Write

func (nw *NullWriter) Write(dest []byte) (n int, err error)

type ObjectInfo

type ObjectInfo struct {
	StorageID           uint32
	ObjectFormat        uint16
	ProtectionStatus    uint16
	CompressedSize      uint32
	ThumbFormat         uint16
	ThumbCompressedSize uint32
	ThumbPixWidth       uint32
	ThumbPixHeight      uint32
	ImagePixWidth       uint32
	ImagePixHeight      uint32
	ImageBitDepth       uint32
	ParentObject        uint32
	AssociationType     uint16
	AssociationDesc     uint32
	SequenceNumber      uint32
	Filename            string
	CaptureDate         time.Time
	ModificationDate    time.Time
	Keywords            string
}

type ObjectPropDesc

type ObjectPropDesc struct {
	ObjectPropDescFixed
	Form interface{}
}

func (*ObjectPropDesc) Decode

func (pd *ObjectPropDesc) Decode(r io.Reader) (err error)

func (*ObjectPropDesc) Encode

func (pd *ObjectPropDesc) Encode(w io.Writer) (err error)

type ObjectPropDescFixed

type ObjectPropDescFixed struct {
	ObjectPropertyCode  uint16
	DataType            DataTypeSelector
	GetSet              uint8
	FactoryDefaultValue DataDependentType
	GroupCode           uint32
	FormFlag            uint8
}

type PropDescEnumForm

type PropDescEnumForm struct {
	Values []DataDependentType
}

type PropDescRangeForm

type PropDescRangeForm struct {
	MinimumValue DataDependentType
	MaximumValue DataDependentType
	StepSize     DataDependentType
}

type RCError

type RCError uint16

RCError are return codes from the Container.Code field.

func (RCError) Error

func (e RCError) Error() string

type StorageInfo

type StorageInfo struct {
	StorageType        uint16
	FilesystemType     uint16
	AccessCapability   uint16
	MaxCapability      uint64
	FreeSpaceInBytes   uint64
	FreeSpaceInImages  uint32
	StorageDescription string
	VolumeLabel        string
}

func (*StorageInfo) IsHierarchical

func (d *StorageInfo) IsHierarchical() bool

func (*StorageInfo) IsRemovable

func (d *StorageInfo) IsRemovable() bool

type StringValue

type StringValue struct {
	Value string
}

type SyncError

type SyncError string

SyncError is an error type that indicates lost transaction synchronization in the protocol.

func (SyncError) Error

func (s SyncError) Error() string

type Uint16Array

type Uint16Array struct {
	Values []uint16
}

type Uint32Array

type Uint32Array struct {
	Values []uint32
}

type Uint64Value

type Uint64Value struct {
	Value uint64
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL